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.00165/0.00165, allocations: 106.2 kB / 19.69 MB, free: 2.277 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.001944/0.001944, allocations: 214 kB / 23 MB, free: 4.605 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.425/1.425, allocations: 230.6 MB / 256.8 MB, free: 8.039 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.1298/0.1298, allocations: 23.84 MB / 337 MB, free: 11.23 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.002031/0.002031, allocations: 67.89 kB / 472.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3038, allocations: 59.85 MB / 0.5198 GB, free: 9.871 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.03963/0.3434, allocations: 29.61 MB / 0.5487 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03648/0.3799, allocations: 28.91 MB / 0.5769 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001612/0.3815, allocations: 39.62 kB / 0.577 GB, free: 15.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.3832, allocations: 0.5739 MB / 0.5775 GB, free: 14.96 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00768/0.3909, allocations: 2.619 MB / 0.5801 GB, free: 12.32 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009864/0.4008, allocations: 3.569 MB / 0.5836 GB, free: 8.734 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005229/0.406, allocations: 2.735 MB / 0.5863 GB, free: 5.992 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00324/0.4092, allocations: 1.372 MB / 0.5876 GB, free: 4.582 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002527/0.4118, allocations: 1.446 MB / 0.589 GB, free: 3.133 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003136/0.4149, allocations: 1.643 MB / 0.5906 GB, free: 1.484 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007506/0.4156, allocations: 252 kB / 0.5909 GB, free: 1.238 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009635/0.4253, allocations: 3.19 MB / 0.594 GB, free: 14.04 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009576/0.4262, allocations: 0.6232 MB / 0.5946 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001809/0.428, allocations: 1.21 MB / 0.5958 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01294/0.441, allocations: 6.129 MB / 0.6018 GB, free: 6.051 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.441, allocations: 0 / 0.6018 GB, free: 6.051 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.441, allocations: 3.938 kB / 0.6018 GB, free: 6.047 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.757e-05/0.4411, allocations: 0 / 0.6018 GB, free: 6.047 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.006962/0.4481, allocations: 2.939 MB / 0.6046 GB, free: 3.062 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.4481, allocations: 11.97 kB / 0.6046 GB, free: 3.051 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002288/0.4504, allocations: 474.6 kB / 0.6051 GB, free: 2.586 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002257/0.4526, allocations: 1.05 MB / 0.6061 GB, free: 1.508 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002947/0.4529, allocations: 353.8 kB / 0.6065 GB, free: 1.113 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000402/0.4533, allocations: 196.3 kB / 0.6066 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004624/0.458, allocations: 2.524 MB / 0.6091 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.403e-05/0.458, allocations: 3.938 kB / 0.6091 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002172/0.4582, allocations: 76 kB / 0.6092 GB, free: 14.28 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-05/0.4583, allocations: 44 kB / 0.6092 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005563/0.4638, allocations: 3.211 MB / 0.6124 GB, free: 11.02 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.01512/0.4789, allocations: 8.399 MB / 0.6206 GB, free: 2.328 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009384/0.4883, allocations: 4.782 MB / 0.6252 GB, free: 13.53 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/0.4904, allocations: 1.16 MB / 0.6264 GB, free: 12.37 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01319/0.5036, allocations: 6.067 MB / 0.6323 GB, free: 6.277 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.916e-05/0.5037, allocations: 51.88 kB / 0.6323 GB, free: 6.215 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001411/0.5051, allocations: 306.7 kB / 0.6326 GB, free: 5.914 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 5.821e-06/0.5051, allocations: 4 kB / 0.6326 GB, free: 5.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03052/0.5356, allocations: 7.358 MB / 0.6398 GB, free: 14.5 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.5357, allocations: 73.39 kB / 0.6399 GB, free: 14.42 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.5369, allocations: 0.9013 MB / 0.6408 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001942/0.5371, allocations: 57.69 kB / 0.6408 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006658/0.5378, allocations: 0.817 MB / 0.6416 GB, free: 12.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007021/0.5385, allocations: 0.674 MB / 0.6423 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008137/0.5393, allocations: 415.9 kB / 0.6427 GB, free: 11.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.5394, allocations: 305.1 kB / 0.643 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.541, allocations: 0.789 MB / 0.6437 GB, free: 10.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002087/0.5431, allocations: 1.375 MB / 0.6451 GB, free: 8.789 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003932/0.547, allocations: 2.36 MB / 0.6474 GB, free: 6.176 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.48e-05/0.547, allocations: 8 kB / 0.6474 GB, free: 6.168 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01264/0.5597, allocations: 3.376 MB / 0.6507 GB, free: 2.773 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.5597, allocations: 12 kB / 0.6507 GB, free: 2.762 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.633e-05/0.5597, allocations: 24.12 kB / 0.6507 GB, free: 2.738 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004023/0.5637, allocations: 0.8218 MB / 0.6515 GB, free: 1.906 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002187/0.5659, allocations: 0.5188 MB / 0.652 GB, free: 1.387 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006435/0.5724, allocations: 3.689 MB / 0.6556 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.574, allocations: 71.98 kB / 0.6557 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002917/0.5743, allocations: 123.9 kB / 0.6558 GB, free: 13.28 MB / 0.4981 GB 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.0008521/0.5752, allocations: 401.8 kB / 0.6562 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000378/0.5755, allocations: 159 kB / 0.6564 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/0.588, allocations: 3.319 MB / 0.6596 GB, free: 9.379 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.15e-05/0.588, allocations: 20 kB / 0.6596 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.588, allocations: 0 / 0.6596 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/0.588, allocations: 15.89 kB / 0.6596 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01507/0.6031, allocations: 5.207 MB / 0.6647 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/0.6031, allocations: 0 / 0.6647 GB, free: 4.078 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/0.6046, allocations: 367.5 kB / 0.6651 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003695/0.6083, allocations: 0.8023 MB / 0.6659 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002066/0.6085, allocations: 63.94 kB / 0.6659 GB, free: 2.844 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005426/0.614, allocations: 3.585 MB / 0.6694 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.614, allocations: 3.938 kB / 0.6694 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/0.6277, allocations: 4.234 MB / 0.6736 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000393/0.6281, allocations: 135 kB / 0.6737 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/0.6284, allocations: 43.98 kB / 0.6737 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009322/0.6293, allocations: 43.98 kB / 0.6738 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004941/0.6298, allocations: 201.6 kB / 0.674 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001834/0.63, allocations: 75.95 kB / 0.674 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008225/0.6308, allocations: 0.578 MB / 0.6746 GB, free: 9.691 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.6308, allocations: 0 / 0.6746 GB, free: 9.691 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003272/0.6341, allocations: 1.196 MB / 0.6758 GB, free: 8.492 MB / 0.5137 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.002495/0.6366, allocations: 1.355 MB / 0.6771 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004833/0.6414, allocations: 2.343 MB / 0.6794 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.6414, allocations: 0 / 0.6794 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002558/0.6439, allocations: 1.325 MB / 0.6807 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.6454, allocations: 324.7 kB / 0.681 GB, free: 3.098 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006737/0.6521, allocations: 3.441 MB / 0.6843 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.6532, allocations: 1.325 MB / 0.6856 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009568/0.6541, allocations: 351 kB / 0.686 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of SimCode: time 6.42e-07/0.6541, allocations: 0 / 0.686 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of Templates: time 0.269/0.9231, allocations: 56.44 MB / 0.7411 GB, free: 175.3 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 -lv LOG_STATS > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.91505025420338] Failed to read output from testmodel.py, exit status != 0: 0.9319518711417913 0.942616863 0.49898842400000004 Calling exit ...