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.001821/0.001821, allocations: 109.1 kB / 18.99 MB, free: 2.609 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.002122/0.002122, allocations: 219.2 kB / 22.3 MB, free: 5.281 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.505/1.505, allocations: 230.6 MB / 256.1 MB, free: 7.801 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.1427/0.1427, allocations: 23.88 MB / 336.4 MB, free: 10.94 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.002072/0.002072, allocations: 67.89 kB / 471.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3205, allocations: 59.86 MB / 0.5191 GB, free: 9.84 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.07459/0.3951, allocations: 28.67 MB / 0.5471 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03748/0.4326, allocations: 25.3 MB / 0.5718 GB, free: 3.832 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001744/0.4343, allocations: 31.75 kB / 0.5719 GB, free: 3.801 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001713/0.436, allocations: 0.5155 MB / 0.5724 GB, free: 3.281 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008286/0.4443, allocations: 2.577 MB / 0.5749 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01029/0.4546, allocations: 3.577 MB / 0.5784 GB, free: 13.09 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004241/0.4588, allocations: 2.727 MB / 0.581 GB, free: 10.35 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.4609, allocations: 1.349 MB / 0.5824 GB, free: 8.965 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002069/0.4629, allocations: 1.446 MB / 0.5838 GB, free: 7.516 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002726/0.4657, allocations: 1.495 MB / 0.5852 GB, free: 6.016 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004842/0.4661, allocations: 252 kB / 0.5855 GB, free: 5.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008497/0.4746, allocations: 2.995 MB / 0.5884 GB, free: 2.77 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.4757, allocations: 0.6193 MB / 0.589 GB, free: 2.148 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001587/0.4772, allocations: 1.039 MB / 0.59 GB, free: 1.105 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01418/0.4914, allocations: 6.113 MB / 0.596 GB, free: 10.97 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.4914, allocations: 0 / 0.596 GB, free: 10.97 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4914, allocations: 4 kB / 0.596 GB, free: 10.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001504/0.4916, allocations: 0 / 0.596 GB, free: 10.96 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.008737/0.5003, allocations: 2.919 MB / 0.5988 GB, free: 8 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.5004, allocations: 12.03 kB / 0.5988 GB, free: 7.988 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002298/0.5027, allocations: 478.6 kB / 0.5993 GB, free: 7.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/0.5049, allocations: 1.046 MB / 0.6003 GB, free: 6.445 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003308/0.5052, allocations: 361.8 kB / 0.6007 GB, free: 6.043 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003859/0.5056, allocations: 188.3 kB / 0.6009 GB, free: 5.859 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0045/0.5101, allocations: 2.535 MB / 0.6033 GB, free: 3.289 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/0.5101, allocations: 0 / 0.6033 GB, free: 3.289 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.5103, allocations: 76 kB / 0.6034 GB, free: 3.215 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-05/0.5104, allocations: 44 kB / 0.6034 GB, free: 3.172 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00541/0.5158, allocations: 3.176 MB / 0.6065 GB, free: 15.99 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.01504/0.5308, allocations: 6.9 MB / 0.6133 GB, free: 8.988 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009321/0.5401, allocations: 4.651 MB / 0.6178 GB, free: 4.328 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002353/0.5425, allocations: 1.157 MB / 0.619 GB, free: 3.172 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01297/0.5555, allocations: 5.782 MB / 0.6246 GB, free: 13.36 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.5555, allocations: 47.88 kB / 0.6246 GB, free: 13.3 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001419/0.5569, allocations: 302.8 kB / 0.6249 GB, free: 13 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 6.402e-06/0.5569, allocations: 3.938 kB / 0.6249 GB, free: 13 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03051/0.5875, allocations: 7.343 MB / 0.6321 GB, free: 5.609 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.36e-05/0.5875, allocations: 69.41 kB / 0.6322 GB, free: 5.531 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.5888, allocations: 0.8658 MB / 0.633 GB, free: 4.645 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003877/0.5892, allocations: 61.7 kB / 0.6331 GB, free: 4.578 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007417/0.5899, allocations: 0.8363 MB / 0.6339 GB, free: 3.73 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009989/0.5909, allocations: 0.6622 MB / 0.6345 GB, free: 3.062 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006782/0.5916, allocations: 415.9 kB / 0.6349 GB, free: 2.648 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.5918, allocations: 313 kB / 0.6352 GB, free: 2.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.5933, allocations: 0.7812 MB / 0.636 GB, free: 1.555 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002288/0.5956, allocations: 1.375 MB / 0.6373 GB, free: 15.92 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003917/0.5995, allocations: 2.368 MB / 0.6397 GB, free: 13.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.5995, allocations: 4 kB / 0.6397 GB, free: 13.29 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01252/0.6121, allocations: 3.384 MB / 0.643 GB, free: 9.891 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.832e-05/0.6121, allocations: 12 kB / 0.643 GB, free: 9.879 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.972e-05/0.6121, allocations: 20 kB / 0.643 GB, free: 9.859 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003876/0.616, allocations: 0.8102 MB / 0.6438 GB, free: 9.039 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002226/0.6182, allocations: 0.5188 MB / 0.6443 GB, free: 8.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00649/0.6247, allocations: 3.616 MB / 0.6478 GB, free: 4.699 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.6266, allocations: 71.98 kB / 0.6479 GB, free: 4.629 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002786/0.6269, allocations: 120 kB / 0.648 GB, free: 4.512 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.0009967/0.6279, allocations: 409 kB / 0.6484 GB, free: 4.102 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004372/0.6283, allocations: 147.1 kB / 0.6485 GB, free: 3.957 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01248/0.6408, allocations: 3.322 MB / 0.6518 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.799e-05/0.6409, allocations: 16 kB / 0.6518 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-05/0.6409, allocations: 4 kB / 0.6518 GB, free: 0.5938 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.746e-05/0.6409, allocations: 11.95 kB / 0.6518 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/0.6563, allocations: 4.743 MB / 0.6564 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.705e-05/0.6564, allocations: 0 / 0.6564 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002038/0.6584, allocations: 363.5 kB / 0.6568 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003712/0.6621, allocations: 0.7944 MB / 0.6576 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003093/0.6624, allocations: 75.94 kB / 0.6576 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005442/0.6679, allocations: 3.519 MB / 0.6611 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.6679, allocations: 3.938 kB / 0.6611 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/0.6816, allocations: 4.222 MB / 0.6652 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004534/0.6821, allocations: 134.9 kB / 0.6653 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002253/0.6823, allocations: 36 kB / 0.6654 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009535/0.6833, allocations: 43.98 kB / 0.6654 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005338/0.6838, allocations: 205.6 kB / 0.6656 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/0.684, allocations: 75.95 kB / 0.6657 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0008335/0.6848, allocations: 0.5331 MB / 0.6662 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.6848, allocations: 0 / 0.6662 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003849/0.6887, allocations: 1.192 MB / 0.6674 GB, free: 368 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.002681/0.6914, allocations: 1.355 MB / 0.6687 GB, free: 14.99 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.004855/0.6962, allocations: 2.339 MB / 0.671 GB, free: 12.62 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.6962, allocations: 0 / 0.671 GB, free: 12.62 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.002695/0.6989, allocations: 1.313 MB / 0.6723 GB, free: 11.29 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.7006, allocations: 309.6 kB / 0.6725 GB, free: 10.99 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007285/0.7079, allocations: 3.397 MB / 0.6759 GB, free: 7.555 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008777/0.7088, allocations: 0.748 MB / 0.6766 GB, free: 6.773 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.001426/0.7102, allocations: 415.5 kB / 0.677 GB, free: 6.363 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006452/0.7108, allocations: 272.2 kB / 0.6773 GB, free: 6.094 MB / 0.5138 GB Notification: Performance of SimCode: time 1.192e-06/0.7108, allocations: 0 / 0.6773 GB, free: 6.094 MB / 0.5138 GB Notification: Performance of Templates: time 0.07393/0.7848, allocations: 46.71 MB / 0.7229 GB, free: 7.641 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 os._exit(0), Time elapsed: 7.128221640363336] Failed to read output from testmodel.py, exit status != 0: 0.7943912725895643 1.003803376 0.509430019 Calling exit ...