Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.Phosphate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 108.9 kB / 17.12 MB, free: 6.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 192.2 kB / 20.08 MB, free: 3.094 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 248.5 MB, free: 3.73 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08552/0.08552, allocations: 15.54 MB / 318.9 MB, free: 13.54 MB / 254.1 MB " [Timeout remaining time 180] Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") translateModel(Chemical.Examples.AcidBase.Phosphate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.Phosphate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001938/0.001938, allocations: 67.72 kB / 446.1 MB, free: 48.11 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1039, allocations: 56.55 MB / 0.4909 GB, free: 20.61 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.AcidBase.Phosphate): time 0.03433/0.1382, allocations: 29.05 MB / 0.5192 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03629/0.1745, allocations: 28.79 MB / 0.5474 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001833/0.1764, allocations: 31.75 kB / 0.5474 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001781/0.1781, allocations: 0.5778 MB / 0.5479 GB, free: 12.94 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008211/0.1863, allocations: 2.596 MB / 0.5505 GB, free: 10.33 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01009/0.1964, allocations: 3.53 MB / 0.5539 GB, free: 6.777 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004653/0.2011, allocations: 2.724 MB / 0.5566 GB, free: 4.043 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001934/0.203, allocations: 1.414 MB / 0.558 GB, free: 2.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001853/0.2049, allocations: 1.446 MB / 0.5594 GB, free: 1.141 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002318/0.2072, allocations: 1.651 MB / 0.561 GB, free: 15.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004547/0.2076, allocations: 248 kB / 0.5612 GB, free: 15.24 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009761/0.2174, allocations: 3.19 MB / 0.5643 GB, free: 12.05 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007524/0.2182, allocations: 0.6193 MB / 0.565 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001552/0.2197, allocations: 1.214 MB / 0.5661 GB, free: 10.21 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01435/0.2341, allocations: 5.969 MB / 0.572 GB, free: 4.215 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.947e-06/0.2341, allocations: 4 kB / 0.572 GB, free: 4.211 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.2341, allocations: 0 / 0.572 GB, free: 4.211 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.143e-05/0.2341, allocations: 0 / 0.572 GB, free: 4.211 MB / 430.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.006507/0.2406, allocations: 3.002 MB / 0.5749 GB, free: 1.145 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.2407, allocations: 8.031 kB / 0.5749 GB, free: 1.137 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002132/0.2428, allocations: 474.6 kB / 0.5754 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002042/0.2448, allocations: 1.116 MB / 0.5765 GB, free: 15.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002725/0.2451, allocations: 255 kB / 0.5767 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003572/0.2455, allocations: 188.3 kB / 0.5769 GB, free: 15.06 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004439/0.2499, allocations: 2.535 MB / 0.5794 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.15e-05/0.2499, allocations: 0 / 0.5794 GB, free: 12.49 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002138/0.2502, allocations: 76 kB / 0.5794 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.926e-05/0.2502, allocations: 44 kB / 0.5795 GB, free: 12.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005429/0.2556, allocations: 3.204 MB / 0.5826 GB, free: 9.164 MB / 446.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.01482/0.2704, allocations: 8.454 MB / 0.5909 GB, free: 420 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009499/0.2799, allocations: 5.301 MB / 0.596 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002269/0.2822, allocations: 1.16 MB / 0.5972 GB, free: 9.809 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2361/0.5183, allocations: 10.31 MB / 0.6072 GB, free: 98.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.5183, allocations: 51.05 kB / 0.6073 GB, free: 98.08 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001412/0.5197, allocations: 306 kB / 0.6076 GB, free: 98.08 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 4.469e-06/0.5197, allocations: 3.906 kB / 0.6076 GB, free: 98.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=187): time 0.03007/0.5498, allocations: 7.58 MB / 0.615 GB, free: 95.64 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.5498, allocations: 71.31 kB / 0.615 GB, free: 95.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.551, allocations: 0.896 MB / 0.6159 GB, free: 95.21 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003085/0.5513, allocations: 58.52 kB / 0.616 GB, free: 95.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003778/0.5517, allocations: 0.8263 MB / 0.6168 GB, free: 94.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004985/0.5522, allocations: 0.6712 MB / 0.6174 GB, free: 94.12 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005725/0.5528, allocations: 410.9 kB / 0.6178 GB, free: 93.95 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.189e-05/0.5528, allocations: 305.9 kB / 0.6181 GB, free: 93.65 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001333/0.5541, allocations: 0.7882 MB / 0.6189 GB, free: 93.35 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.5557, allocations: 1.375 MB / 0.6202 GB, free: 92.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002935/0.5586, allocations: 2.361 MB / 0.6225 GB, free: 90.78 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.5587, allocations: 3.906 kB / 0.6225 GB, free: 90.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01102/0.5697, allocations: 3.389 MB / 0.6259 GB, free: 89.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.5697, allocations: 15.42 kB / 0.6259 GB, free: 89.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/0.5697, allocations: 19.56 kB / 0.6259 GB, free: 89.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003404/0.5731, allocations: 0.8159 MB / 0.6267 GB, free: 89.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/0.575, allocations: 0.5125 MB / 0.6272 GB, free: 89.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004445/0.5795, allocations: 3.893 MB / 0.631 GB, free: 85.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.5813, allocations: 77.36 kB / 0.6311 GB, free: 85.69 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002116/0.5815, allocations: 123.3 kB / 0.6312 GB, free: 85.65 MB / 462.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.0007904/0.5823, allocations: 404.1 kB / 0.6316 GB, free: 85.34 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003758/0.5827, allocations: 156.2 kB / 0.6317 GB, free: 85.26 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01119/0.5939, allocations: 3.324 MB / 0.635 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/0.5939, allocations: 19.28 kB / 0.635 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.948e-06/0.5939, allocations: 1.453 kB / 0.635 GB, free: 83.43 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-05/0.594, allocations: 11.95 kB / 0.635 GB, free: 83.42 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01319/0.6072, allocations: 5.243 MB / 0.6401 GB, free: 79.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.6072, allocations: 0 / 0.6401 GB, free: 79.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.6086, allocations: 372.8 kB / 0.6405 GB, free: 79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003373/0.612, allocations: 0.7904 MB / 0.6412 GB, free: 78.23 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/0.6122, allocations: 71.94 kB / 0.6413 GB, free: 78.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003971/0.6161, allocations: 3.793 MB / 0.645 GB, free: 74.11 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.6161, allocations: 2.656 kB / 0.645 GB, free: 74.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/0.628, allocations: 4.23 MB / 0.6491 GB, free: 69.88 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004146/0.6284, allocations: 212.1 kB / 0.6493 GB, free: 69.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002368/0.6287, allocations: 36 kB / 0.6494 GB, free: 69.62 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009282/0.6296, allocations: 39.98 kB / 0.6494 GB, free: 69.58 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004307/0.63, allocations: 208.2 kB / 0.6496 GB, free: 69.38 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.6302, allocations: 79.95 kB / 0.6497 GB, free: 69.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005969/0.6308, allocations: 0.5742 MB / 0.6503 GB, free: 68.72 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6308, allocations: 0 / 0.6503 GB, free: 68.72 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002851/0.6336, allocations: 1.196 MB / 0.6514 GB, free: 67.52 MB / 462.1 MB 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.001926/0.6355, allocations: 1.336 MB / 0.6527 GB, free: 66.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003763/0.6393, allocations: 2.423 MB / 0.6551 GB, free: 63.95 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6393, allocations: 0 / 0.6551 GB, free: 63.95 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/0.6413, allocations: 1.385 MB / 0.6564 GB, free: 62.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.6428, allocations: 310.1 kB / 0.6567 GB, free: 62.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005288/0.6481, allocations: 3.443 MB / 0.6601 GB, free: 58.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005293/0.6486, allocations: 1.316 MB / 0.6614 GB, free: 57.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/0.6493, allocations: 353.6 kB / 0.6617 GB, free: 57.16 MB / 462.1 MB Notification: Performance of SimCode: time 1.392e-06/0.6493, allocations: 0 / 0.6617 GB, free: 57.16 MB / 462.1 MB Notification: Performance of Templates: time 0.04834/0.6977, allocations: 55.72 MB / 0.7161 GB, free: 2.258 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Chemical_Chemical.Examples.AcidBase.Phosphate.makefile [Timeout 660] (rm -f Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.Phosphate.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.Phosphate.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.Phosphate.sim & ./Chemical_Chemical.Examples.AcidBase.Phosphate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.625241228961386] Failed to read output from testmodel.py, exit status != 0: 0.8917874109465629 0.718672493 0.48160551599999996 Calling exit ...