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.001248/0.001248, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001477/0.001477, allocations: 213.5 kB / 22.24 MB, free: 5.242 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.412/1.412, allocations: 230.6 MB / 256 MB, free: 7.781 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.1375/0.1375, allocations: 23.99 MB / 336.4 MB, free: 10.92 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.002176/0.002176, allocations: 79.83 kB / 471.8 MB, free: 6.816 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2975, allocations: 59.88 MB / 0.5192 GB, free: 9.676 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.07152/0.369, allocations: 28.7 MB / 0.5473 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03476/0.4038, allocations: 25.29 MB / 0.572 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00167/0.4054, allocations: 31.75 kB / 0.572 GB, free: 3.629 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001695/0.4071, allocations: 0.5233 MB / 0.5725 GB, free: 3.102 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007886/0.415, allocations: 2.569 MB / 0.575 GB, free: 0.5156 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0102/0.4252, allocations: 3.573 MB / 0.5785 GB, free: 12.92 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004101/0.4293, allocations: 2.727 MB / 0.5812 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002082/0.4314, allocations: 1.341 MB / 0.5825 GB, free: 8.809 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002554/0.4339, allocations: 1.45 MB / 0.5839 GB, free: 7.355 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002905/0.4368, allocations: 1.495 MB / 0.5853 GB, free: 5.855 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008017/0.4377, allocations: 248 kB / 0.5856 GB, free: 5.613 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00834/0.446, allocations: 2.999 MB / 0.5885 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001074/0.4471, allocations: 0.6194 MB / 0.5891 GB, free: 1.988 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001954/0.449, allocations: 1.035 MB / 0.5901 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0134/0.4624, allocations: 6.113 MB / 0.5961 GB, free: 10.81 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.4624, allocations: 0 / 0.5961 GB, free: 10.81 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4624, allocations: 0 / 0.5961 GB, free: 10.81 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.293e-05/0.4625, allocations: 0 / 0.5961 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.007137/0.4697, allocations: 2.935 MB / 0.599 GB, free: 7.832 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.4697, allocations: 12.03 kB / 0.599 GB, free: 7.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002368/0.4721, allocations: 474.8 kB / 0.5994 GB, free: 7.355 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002283/0.4743, allocations: 1.046 MB / 0.6004 GB, free: 6.281 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002952/0.4746, allocations: 357.8 kB / 0.6008 GB, free: 5.883 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004334/0.4751, allocations: 188.3 kB / 0.601 GB, free: 5.699 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004599/0.4797, allocations: 2.531 MB / 0.6034 GB, free: 3.133 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.264e-05/0.4797, allocations: 7.938 kB / 0.6034 GB, free: 3.125 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002147/0.4799, allocations: 75.94 kB / 0.6035 GB, free: 3.051 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.234e-05/0.48, allocations: 48 kB / 0.6036 GB, free: 3.004 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005562/0.4855, allocations: 3.176 MB / 0.6067 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.01431/0.4998, allocations: 6.89 MB / 0.6134 GB, free: 8.828 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009353/0.5092, allocations: 4.659 MB / 0.6179 GB, free: 4.156 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002153/0.5113, allocations: 1.157 MB / 0.6191 GB, free: 3 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01354/0.5249, allocations: 5.757 MB / 0.6247 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/0.5249, allocations: 51.81 kB / 0.6247 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001416/0.5263, allocations: 302.8 kB / 0.625 GB, free: 12.85 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 6.051e-06/0.5264, allocations: 0 / 0.625 GB, free: 12.85 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.02955/0.5559, allocations: 7.354 MB / 0.6322 GB, free: 5.453 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.556, allocations: 77.34 kB / 0.6323 GB, free: 5.367 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.5572, allocations: 0.8581 MB / 0.6331 GB, free: 4.488 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002073/0.5574, allocations: 57.7 kB / 0.6332 GB, free: 4.426 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006604/0.558, allocations: 0.8363 MB / 0.634 GB, free: 3.578 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007229/0.5587, allocations: 0.6622 MB / 0.6346 GB, free: 2.91 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007133/0.5595, allocations: 415.9 kB / 0.635 GB, free: 2.496 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.5596, allocations: 305.1 kB / 0.6353 GB, free: 2.195 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001618/0.5612, allocations: 0.7851 MB / 0.6361 GB, free: 1.406 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.5633, allocations: 1.371 MB / 0.6374 GB, free: 15.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004002/0.5673, allocations: 2.364 MB / 0.6397 GB, free: 13.16 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.614e-05/0.5674, allocations: 8 kB / 0.6398 GB, free: 13.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01245/0.5798, allocations: 3.38 MB / 0.6431 GB, free: 9.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.553e-05/0.5798, allocations: 14.5 kB / 0.6431 GB, free: 9.738 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/0.5799, allocations: 16 kB / 0.6431 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003865/0.5837, allocations: 0.8179 MB / 0.6439 GB, free: 8.895 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/0.5859, allocations: 0.5266 MB / 0.6444 GB, free: 8.367 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005854/0.5918, allocations: 3.608 MB / 0.6479 GB, free: 4.555 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.5935, allocations: 71.98 kB / 0.648 GB, free: 4.484 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004199/0.5939, allocations: 131.9 kB / 0.6481 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.001014/0.5949, allocations: 401.1 kB / 0.6485 GB, free: 3.953 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004678/0.5954, allocations: 147.1 kB / 0.6486 GB, free: 3.809 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01236/0.6077, allocations: 3.326 MB / 0.6519 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.862e-05/0.6078, allocations: 20 kB / 0.6519 GB, free: 452 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.6078, allocations: 4 kB / 0.6519 GB, free: 448 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.008e-05/0.6078, allocations: 7.969 kB / 0.6519 GB, free: 440 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01488/0.6227, allocations: 4.742 MB / 0.6565 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/0.6227, allocations: 7.922 kB / 0.6566 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001709/0.6244, allocations: 359.6 kB / 0.6569 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003549/0.6279, allocations: 0.7945 MB / 0.6577 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003471/0.6283, allocations: 67.95 kB / 0.6577 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005308/0.6336, allocations: 3.508 MB / 0.6612 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.6336, allocations: 7.922 kB / 0.6612 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01402/0.6476, allocations: 4.23 MB / 0.6653 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003651/0.648, allocations: 131 kB / 0.6654 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003628/0.6484, allocations: 40 kB / 0.6655 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.6494, allocations: 39.98 kB / 0.6655 GB, free: 2.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005266/0.65, allocations: 205.6 kB / 0.6657 GB, free: 2.027 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002182/0.6502, allocations: 75.95 kB / 0.6658 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008297/0.651, allocations: 0.5369 MB / 0.6663 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.651, allocations: 0 / 0.6663 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003426/0.6544, allocations: 1.192 MB / 0.6675 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.003194/0.6576, allocations: 1.359 MB / 0.6688 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004919/0.6625, allocations: 2.343 MB / 0.6711 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.6625, allocations: 0 / 0.6711 GB, free: 12.47 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002649/0.6652, allocations: 1.31 MB / 0.6724 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.001532/0.6667, allocations: 310 kB / 0.6726 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006717/0.6734, allocations: 3.393 MB / 0.676 GB, free: 7.402 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008659/0.6743, allocations: 0.7517 MB / 0.6767 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001444/0.6758, allocations: 415.6 kB / 0.6771 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006436/0.6764, allocations: 267.1 kB / 0.6773 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of SimCode: time 7.21e-07/0.6764, allocations: 0 / 0.6773 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of Templates: time 0.07159/0.748, allocations: 49.12 MB / 0.7253 GB, free: 5.086 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 os._exit(0), Time elapsed: 6.689527353271842] Failed to read output from testmodel.py, exit status != 0: 0.7564300373196602 0.930203259 0.46508862999999995 Calling exit ...