Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 104.3 kB / 19.7 MB, free: 2.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 210.3 kB / 22.99 MB, free: 4.984 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.403/1.403, allocations: 230.6 MB / 256.8 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.133/0.133, allocations: 23.88 MB / 337.1 MB, free: 11.06 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate") translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate") [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.88 kB / 472.4 MB, free: 7.016 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2884, allocations: 59.86 MB / 0.5198 GB, free: 9.773 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.AcidBase.Phosphate): time 0.06942/0.3578, allocations: 28.53 MB / 0.5476 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0337/0.3915, allocations: 25.3 MB / 0.5723 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.3931, allocations: 31.75 kB / 0.5724 GB, free: 3.965 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.3946, allocations: 0.5194 MB / 0.5729 GB, free: 3.441 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007016/0.4016, allocations: 2.569 MB / 0.5754 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009189/0.4108, allocations: 3.577 MB / 0.5789 GB, free: 13.25 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003998/0.4148, allocations: 2.72 MB / 0.5815 GB, free: 10.53 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001767/0.4166, allocations: 1.38 MB / 0.5829 GB, free: 9.113 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001712/0.4183, allocations: 1.446 MB / 0.5843 GB, free: 7.664 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002252/0.4205, allocations: 1.643 MB / 0.5859 GB, free: 6.016 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004186/0.4209, allocations: 252 kB / 0.5861 GB, free: 5.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008001/0.4289, allocations: 3.077 MB / 0.5891 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007746/0.4297, allocations: 0.6194 MB / 0.5897 GB, free: 2.066 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001438/0.4312, allocations: 1.039 MB / 0.5908 GB, free: 1.023 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01166/0.4428, allocations: 6.113 MB / 0.5967 GB, free: 10.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.4428, allocations: 0 / 0.5967 GB, free: 10.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.4428, allocations: 0 / 0.5967 GB, free: 10.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.893e-05/0.4429, allocations: 0 / 0.5967 GB, free: 10.89 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.006388/0.4493, allocations: 2.931 MB / 0.5996 GB, free: 7.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.4493, allocations: 8.031 kB / 0.5996 GB, free: 7.902 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002191/0.4515, allocations: 478.6 kB / 0.6 GB, free: 7.434 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002094/0.4536, allocations: 1.046 MB / 0.6011 GB, free: 6.359 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003102/0.4539, allocations: 357.8 kB / 0.6014 GB, free: 5.961 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003903/0.4543, allocations: 192.3 kB / 0.6016 GB, free: 5.773 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005052/0.4593, allocations: 2.527 MB / 0.6041 GB, free: 3.211 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.13e-05/0.4594, allocations: 3.938 kB / 0.6041 GB, free: 3.207 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002204/0.4596, allocations: 76 kB / 0.6041 GB, free: 3.133 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-05/0.4597, allocations: 44 kB / 0.6042 GB, free: 3.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005642/0.4653, allocations: 3.18 MB / 0.6073 GB, free: 15.91 MB / 462.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01464/0.48, allocations: 6.905 MB / 0.614 GB, free: 8.895 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009366/0.4893, allocations: 4.642 MB / 0.6186 GB, free: 4.238 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002198/0.4915, allocations: 1.157 MB / 0.6197 GB, free: 3.082 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0136/0.5051, allocations: 5.777 MB / 0.6253 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.5052, allocations: 51.81 kB / 0.6254 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001494/0.5067, allocations: 294.9 kB / 0.6257 GB, free: 12.92 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.639e-06/0.5067, allocations: 0 / 0.6257 GB, free: 12.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03143/0.5381, allocations: 7.35 MB / 0.6328 GB, free: 5.527 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.5382, allocations: 81.39 kB / 0.6329 GB, free: 5.438 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.5394, allocations: 0.8542 MB / 0.6338 GB, free: 4.562 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003441/0.5398, allocations: 57.7 kB / 0.6338 GB, free: 4.5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006641/0.5404, allocations: 0.8324 MB / 0.6346 GB, free: 3.656 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008149/0.5413, allocations: 0.67 MB / 0.6353 GB, free: 2.98 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007098/0.542, allocations: 419.9 kB / 0.6357 GB, free: 2.562 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.5421, allocations: 305.1 kB / 0.636 GB, free: 2.262 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001533/0.5437, allocations: 0.7812 MB / 0.6367 GB, free: 1.477 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002279/0.5459, allocations: 1.379 MB / 0.6381 GB, free: 15.84 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003885/0.5498, allocations: 2.364 MB / 0.6404 GB, free: 13.22 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.254e-05/0.5498, allocations: 4 kB / 0.6404 GB, free: 13.21 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01262/0.5624, allocations: 3.375 MB / 0.6437 GB, free: 9.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.327e-05/0.5625, allocations: 17 kB / 0.6437 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.258e-05/0.5625, allocations: 16 kB / 0.6437 GB, free: 9.789 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004044/0.5665, allocations: 0.8179 MB / 0.6445 GB, free: 8.961 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/0.5685, allocations: 0.5149 MB / 0.645 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005929/0.5745, allocations: 3.623 MB / 0.6486 GB, free: 4.621 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001647/0.5761, allocations: 71.98 kB / 0.6486 GB, free: 4.551 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002521/0.5764, allocations: 123.9 kB / 0.6487 GB, free: 4.43 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (268): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0008801/0.5773, allocations: 405.1 kB / 0.6491 GB, free: 4.023 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003838/0.5776, allocations: 147.1 kB / 0.6493 GB, free: 3.879 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01353/0.5912, allocations: 3.318 MB / 0.6525 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-05/0.5912, allocations: 20 kB / 0.6525 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.5912, allocations: 0 / 0.6525 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.155e-05/0.5912, allocations: 11.97 kB / 0.6525 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01585/0.6071, allocations: 4.749 MB / 0.6572 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.638e-05/0.6071, allocations: 0 / 0.6572 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001772/0.6089, allocations: 367.5 kB / 0.6575 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004048/0.6129, allocations: 0.7867 MB / 0.6583 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003941/0.6133, allocations: 67.95 kB / 0.6584 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005672/0.619, allocations: 3.512 MB / 0.6618 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.008e-06/0.619, allocations: 3.938 kB / 0.6618 GB, free: 6.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01471/0.6337, allocations: 4.233 MB / 0.6659 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004325/0.6341, allocations: 127 kB / 0.6661 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002774/0.6344, allocations: 32 kB / 0.6661 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009855/0.6354, allocations: 43.98 kB / 0.6661 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005036/0.6359, allocations: 209.6 kB / 0.6663 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001866/0.6361, allocations: 79.94 kB / 0.6664 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007738/0.6369, allocations: 0.5292 MB / 0.6669 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6369, allocations: 0 / 0.6669 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003404/0.6403, allocations: 1.192 MB / 0.6681 GB, free: 300 kB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (solution.temperature,H.logn,H3PO4.logn,H2PO4.logn,HPO4.logn,PO4.logn,H2O.logn,OH.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002696/0.643, allocations: 1.362 MB / 0.6694 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004908/0.6479, allocations: 2.343 MB / 0.6717 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.6479, allocations: 0 / 0.6717 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002651/0.6505, allocations: 1.306 MB / 0.673 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.6521, allocations: 312.4 kB / 0.6733 GB, free: 10.91 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00681/0.6589, allocations: 3.4 MB / 0.6766 GB, free: 7.473 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008669/0.6597, allocations: 0.7478 MB / 0.6773 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001571/0.6613, allocations: 407.6 kB / 0.6777 GB, free: 6.289 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006657/0.662, allocations: 263.1 kB / 0.678 GB, free: 6.031 MB / 0.5137 GB Notification: Performance of SimCode: time 9.81e-07/0.662, allocations: 4 kB / 0.678 GB, free: 6.027 MB / 0.5137 GB Notification: Performance of Templates: time 0.07494/0.7369, allocations: 49.75 MB / 0.7266 GB, free: 4.535 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.makefile [Timeout 660] (rm -f Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & ./Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.7398163809994] Failed to read output from testmodel.py, exit status != 0: 0.7459803300007479 0.951107764 0.505405756 Calling exit ...