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.001369/0.001369, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.001561/0.001561, allocations: 222.8 kB / 22.26 MB, free: 5.215 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.455/1.455, allocations: 230.6 MB / 256 MB, free: 8.012 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.1422/0.1422, allocations: 23.9 MB / 336.3 MB, free: 11.15 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.002099/0.002099, allocations: 64.17 kB / 471.7 MB, free: 7.121 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3113/0.3134, allocations: 59.87 MB / 0.5191 GB, free: 10.09 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.04182/0.3552, allocations: 29.65 MB / 0.5481 GB, free: 10.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03769/0.3929, allocations: 28.9 MB / 0.5763 GB, free: 15.55 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001633/0.3945, allocations: 35.69 kB / 0.5764 GB, free: 15.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001651/0.3962, allocations: 0.5778 MB / 0.5769 GB, free: 14.94 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007433/0.4036, allocations: 2.616 MB / 0.5795 GB, free: 12.3 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009583/0.4132, allocations: 3.573 MB / 0.583 GB, free: 8.711 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003986/0.4172, allocations: 2.731 MB / 0.5856 GB, free: 5.973 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001791/0.419, allocations: 1.364 MB / 0.587 GB, free: 4.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00189/0.4209, allocations: 1.442 MB / 0.5884 GB, free: 3.125 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002544/0.4234, allocations: 1.655 MB / 0.59 GB, free: 1.465 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004022/0.4238, allocations: 252 kB / 0.5902 GB, free: 1.219 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009459/0.4333, allocations: 3.187 MB / 0.5933 GB, free: 14.03 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008558/0.4341, allocations: 0.6232 MB / 0.5939 GB, free: 13.4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001564/0.4357, allocations: 1.21 MB / 0.5951 GB, free: 12.19 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.4483, allocations: 6.129 MB / 0.6011 GB, free: 6.035 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.4483, allocations: 4 kB / 0.6011 GB, free: 6.031 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.4483, allocations: 4 kB / 0.6011 GB, free: 6.027 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.14e-05/0.4483, allocations: 3.938 kB / 0.6011 GB, free: 6.023 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.006381/0.4547, allocations: 2.931 MB / 0.604 GB, free: 3.047 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.4548, allocations: 12.03 kB / 0.604 GB, free: 3.035 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002154/0.4569, allocations: 474.8 kB / 0.6044 GB, free: 2.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002069/0.459, allocations: 1.042 MB / 0.6055 GB, free: 1.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002997/0.4593, allocations: 361.8 kB / 0.6058 GB, free: 1.098 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003621/0.4596, allocations: 188.3 kB / 0.606 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004361/0.464, allocations: 2.535 MB / 0.6085 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.999e-05/0.464, allocations: 3.938 kB / 0.6085 GB, free: 14.34 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000225/0.4643, allocations: 72 kB / 0.6085 GB, free: 14.27 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.861e-05/0.4643, allocations: 44 kB / 0.6086 GB, free: 14.22 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005405/0.4697, allocations: 3.208 MB / 0.6117 GB, free: 11.01 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.01503/0.4847, allocations: 8.407 MB / 0.6199 GB, free: 2.309 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009344/0.4941, allocations: 4.774 MB / 0.6246 GB, free: 13.52 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002083/0.4962, allocations: 1.153 MB / 0.6257 GB, free: 12.37 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01323/0.5094, allocations: 6.074 MB / 0.6316 GB, free: 6.266 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.268e-05/0.5094, allocations: 47.88 kB / 0.6317 GB, free: 6.207 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001405/0.5108, allocations: 310.7 kB / 0.632 GB, free: 5.902 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.198e-06/0.5108, allocations: 0 / 0.632 GB, free: 5.902 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03034/0.5412, allocations: 7.362 MB / 0.6392 GB, free: 14.49 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.5412, allocations: 73.41 kB / 0.6392 GB, free: 14.41 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.5426, allocations: 0.9052 MB / 0.6401 GB, free: 13.49 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002959/0.5428, allocations: 53.7 kB / 0.6402 GB, free: 13.43 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006362/0.5435, allocations: 0.8248 MB / 0.641 GB, free: 12.59 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006858/0.5442, allocations: 0.6623 MB / 0.6416 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006138/0.5448, allocations: 415.9 kB / 0.642 GB, free: 11.51 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.5449, allocations: 313 kB / 0.6423 GB, free: 11.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.5464, allocations: 0.7812 MB / 0.6431 GB, free: 10.42 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002103/0.5485, allocations: 1.371 MB / 0.6444 GB, free: 8.785 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004035/0.5526, allocations: 2.372 MB / 0.6467 GB, free: 6.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.349e-05/0.5526, allocations: 8 kB / 0.6468 GB, free: 6.152 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01273/0.5653, allocations: 3.38 MB / 0.6501 GB, free: 2.754 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.426e-05/0.5654, allocations: 14.81 kB / 0.6501 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.5654, allocations: 20 kB / 0.6501 GB, free: 2.723 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004077/0.5695, allocations: 0.8181 MB / 0.6509 GB, free: 1.895 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002209/0.5717, allocations: 0.5188 MB / 0.6514 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006289/0.578, allocations: 3.693 MB / 0.655 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001704/0.5797, allocations: 71.98 kB / 0.6551 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000274/0.58, allocations: 119.9 kB / 0.6552 GB, free: 13.27 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.0008654/0.5808, allocations: 409.9 kB / 0.6556 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003816/0.5812, allocations: 155 kB / 0.6557 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01281/0.594, allocations: 3.323 MB / 0.659 GB, free: 9.359 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-05/0.594, allocations: 16 kB / 0.659 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.594, allocations: 4 kB / 0.659 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.108e-05/0.5941, allocations: 11.91 kB / 0.659 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01603/0.6101, allocations: 5.207 MB / 0.6641 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.6102, allocations: 0 / 0.6641 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001719/0.6119, allocations: 367.5 kB / 0.6644 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004107/0.616, allocations: 0.7984 MB / 0.6652 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/0.6162, allocations: 67.95 kB / 0.6653 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005683/0.6219, allocations: 3.581 MB / 0.6688 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.6219, allocations: 0 / 0.6688 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01431/0.6362, allocations: 4.246 MB / 0.6729 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003703/0.6366, allocations: 138.9 kB / 0.6731 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002426/0.6368, allocations: 32 kB / 0.6731 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009728/0.6378, allocations: 39.98 kB / 0.6731 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004987/0.6383, allocations: 205.6 kB / 0.6733 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001772/0.6385, allocations: 83.94 kB / 0.6734 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008179/0.6393, allocations: 0.5703 MB / 0.674 GB, free: 9.68 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.6393, allocations: 7.938 kB / 0.674 GB, free: 9.672 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003241/0.6425, allocations: 1.192 MB / 0.6751 GB, free: 8.477 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.002565/0.6451, allocations: 1.355 MB / 0.6764 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004911/0.65, allocations: 2.339 MB / 0.6787 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.65, allocations: 0 / 0.6787 GB, free: 4.746 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002663/0.6527, allocations: 1.317 MB / 0.68 GB, free: 3.402 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.6542, allocations: 322.2 kB / 0.6803 GB, free: 3.094 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006816/0.661, allocations: 3.404 MB / 0.6837 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.662, allocations: 1.325 MB / 0.6849 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001502/0.6635, allocations: 420 kB / 0.6853 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006627/0.6642, allocations: 271.1 kB / 0.6856 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of SimCode: time 9.72e-07/0.6642, allocations: 0 / 0.6856 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of Templates: time 0.2897/0.9539, allocations: 48.29 MB / 0.7328 GB, free: 177.1 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 -lv LOG_STATS > Chemical_master_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.920884585939348] Failed to read output from testmodel.py, exit status != 0: 0.9625643598847091 0.9752636960000001 0.524132375 Calling exit ...