Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001676/0.001676, allocations: 108.3 kB / 19.7 MB, free: 2.16 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.001493/0.001493, allocations: 218.3 kB / 22.99 MB, free: 4.988 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.409/1.409, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1316/0.1316, allocations: 23.93 MB / 337.1 MB, free: 10.93 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical.Obsolete.Examples.AcidBase.Phosphate") translateModel(Chemical.Obsolete.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_master_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.002088/0.002088, allocations: 71.89 kB / 472.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3118, allocations: 59.88 MB / 0.5198 GB, free: 9.777 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.06946/0.3813, allocations: 28.53 MB / 0.5477 GB, free: 11.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03426/0.4155, allocations: 25.29 MB / 0.5724 GB, free: 3.918 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002051/0.4176, allocations: 31.75 kB / 0.5724 GB, free: 3.887 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001693/0.4193, allocations: 0.5271 MB / 0.5729 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008063/0.4273, allocations: 2.561 MB / 0.5754 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01041/0.4377, allocations: 3.581 MB / 0.5789 GB, free: 13.18 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004238/0.442, allocations: 2.724 MB / 0.5816 GB, free: 10.45 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002031/0.444, allocations: 1.372 MB / 0.5829 GB, free: 9.039 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002123/0.4461, allocations: 1.45 MB / 0.5844 GB, free: 7.586 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002749/0.4489, allocations: 1.647 MB / 0.586 GB, free: 5.934 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000515/0.4494, allocations: 252 kB / 0.5862 GB, free: 5.688 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008627/0.458, allocations: 3.073 MB / 0.5892 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.459, allocations: 0.6155 MB / 0.5898 GB, free: 1.992 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00149/0.4605, allocations: 1.035 MB / 0.5908 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01388/0.4744, allocations: 6.113 MB / 0.5968 GB, free: 10.82 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.4744, allocations: 4 kB / 0.5968 GB, free: 10.81 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.4744, allocations: 0 / 0.5968 GB, free: 10.81 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.093e-05/0.4745, allocations: 0 / 0.5968 GB, free: 10.81 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.007004/0.4815, allocations: 2.935 MB / 0.5997 GB, free: 7.832 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.4815, allocations: 8.031 kB / 0.5997 GB, free: 7.824 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002401/0.4839, allocations: 470.8 kB / 0.6001 GB, free: 7.363 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002264/0.4862, allocations: 1.054 MB / 0.6011 GB, free: 6.281 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003332/0.4865, allocations: 353.8 kB / 0.6015 GB, free: 5.887 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004309/0.487, allocations: 200.3 kB / 0.6017 GB, free: 5.691 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004482/0.4914, allocations: 2.527 MB / 0.6041 GB, free: 3.129 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.832e-05/0.4915, allocations: 0 / 0.6041 GB, free: 3.129 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002168/0.4917, allocations: 76 kB / 0.6042 GB, free: 3.055 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.758e-05/0.4917, allocations: 48 kB / 0.6043 GB, free: 3.008 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005256/0.497, allocations: 3.176 MB / 0.6074 GB, free: 15.82 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.01411/0.5111, allocations: 6.905 MB / 0.6141 GB, free: 8.816 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009244/0.5203, allocations: 4.646 MB / 0.6186 GB, free: 4.156 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002283/0.5226, allocations: 1.153 MB / 0.6198 GB, free: 3.004 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01333/0.5359, allocations: 5.773 MB / 0.6254 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.012e-05/0.536, allocations: 47.81 kB / 0.6254 GB, free: 13.14 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001489/0.5375, allocations: 302.8 kB / 0.6257 GB, free: 12.84 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.819e-06/0.5375, allocations: 0 / 0.6257 GB, free: 12.84 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03244/0.5699, allocations: 7.343 MB / 0.6329 GB, free: 5.457 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.627e-05/0.57, allocations: 77.33 kB / 0.633 GB, free: 5.371 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/0.5712, allocations: 0.862 MB / 0.6338 GB, free: 4.488 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003696/0.5716, allocations: 57.7 kB / 0.6339 GB, free: 4.426 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006552/0.5723, allocations: 0.8324 MB / 0.6347 GB, free: 3.582 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007009/0.573, allocations: 0.6662 MB / 0.6353 GB, free: 2.91 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006364/0.5736, allocations: 415.9 kB / 0.6357 GB, free: 2.496 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.5737, allocations: 305.1 kB / 0.636 GB, free: 2.195 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.5752, allocations: 0.7812 MB / 0.6368 GB, free: 1.41 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001978/0.5771, allocations: 1.379 MB / 0.6381 GB, free: 15.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003642/0.5808, allocations: 2.368 MB / 0.6405 GB, free: 13.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.5808, allocations: 4 kB / 0.6405 GB, free: 13.14 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01271/0.5935, allocations: 3.384 MB / 0.6438 GB, free: 9.742 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/0.5935, allocations: 12 kB / 0.6438 GB, free: 9.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/0.5936, allocations: 20 kB / 0.6438 GB, free: 9.711 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004057/0.5976, allocations: 0.8222 MB / 0.6446 GB, free: 8.879 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002087/0.5997, allocations: 0.5149 MB / 0.6451 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005876/0.6056, allocations: 3.616 MB / 0.6486 GB, free: 4.543 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/0.6073, allocations: 71.98 kB / 0.6487 GB, free: 4.473 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/0.6075, allocations: 119.9 kB / 0.6488 GB, free: 4.355 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.0008342/0.6084, allocations: 405 kB / 0.6492 GB, free: 3.949 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003581/0.6087, allocations: 143.1 kB / 0.6493 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01295/0.6217, allocations: 3.326 MB / 0.6526 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-05/0.6217, allocations: 20 kB / 0.6526 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.505e-06/0.6217, allocations: 4 kB / 0.6526 GB, free: 448 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.504e-05/0.6217, allocations: 7.969 kB / 0.6526 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01507/0.6368, allocations: 4.746 MB / 0.6572 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/0.6368, allocations: 3.938 kB / 0.6572 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001728/0.6386, allocations: 363.5 kB / 0.6576 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003942/0.6425, allocations: 0.8022 MB / 0.6584 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003071/0.6428, allocations: 63.95 kB / 0.6584 GB, free: 10.4 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005465/0.6483, allocations: 3.512 MB / 0.6619 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/0.6483, allocations: 3.938 kB / 0.6619 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/0.6625, allocations: 4.23 MB / 0.666 GB, free: 2.43 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003641/0.6628, allocations: 134.9 kB / 0.6661 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000238/0.6631, allocations: 32 kB / 0.6662 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009989/0.6641, allocations: 43.98 kB / 0.6662 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004826/0.6646, allocations: 201.6 kB / 0.6664 GB, free: 2.023 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001772/0.6647, allocations: 79.94 kB / 0.6665 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007157/0.6655, allocations: 0.5331 MB / 0.667 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.1e-08/0.6655, allocations: 0 / 0.667 GB, free: 1.402 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003122/0.6686, allocations: 1.188 MB / 0.6682 GB, free: 216 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.002506/0.6711, allocations: 1.363 MB / 0.6695 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004784/0.6759, allocations: 2.335 MB / 0.6718 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.6759, allocations: 4 kB / 0.6718 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002662/0.6785, allocations: 1.306 MB / 0.673 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.6801, allocations: 320.3 kB / 0.6734 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006771/0.6869, allocations: 3.4 MB / 0.6767 GB, free: 7.395 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000805/0.6877, allocations: 0.7517 MB / 0.6774 GB, free: 6.609 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001482/0.6892, allocations: 415.5 kB / 0.6778 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006196/0.6898, allocations: 267.1 kB / 0.6781 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of SimCode: time 1.082e-06/0.6898, allocations: 0 / 0.6781 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of Templates: time 0.07337/0.7632, allocations: 49.74 MB / 0.7266 GB, free: 4.457 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.makefile [Timeout 660] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.sim & ./Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.774643128999742] Failed to read output from testmodel.py, exit status != 0: 0.7722958239901345 0.962413706 0.485199074 Calling exit ...