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.001272/0.001272, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001348/0.001348, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.355/1.355, allocations: 230.6 MB / 256 MB, free: 7.973 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.1285/0.1285, allocations: 23.85 MB / 336.3 MB, free: 11.2 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.002019/0.002019, allocations: 63.91 kB / 471.7 MB, free: 7.199 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2861, allocations: 59.86 MB / 0.5191 GB, free: 9.805 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.03576/0.3218, allocations: 29.6 MB / 0.548 GB, free: 10.47 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03523/0.3571, allocations: 28.91 MB / 0.5762 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0014/0.3585, allocations: 31.75 kB / 0.5762 GB, free: 15.55 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.3599, allocations: 0.5739 MB / 0.5768 GB, free: 14.97 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006614/0.3665, allocations: 2.623 MB / 0.5794 GB, free: 12.33 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008907/0.3754, allocations: 3.569 MB / 0.5828 GB, free: 8.738 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.003344/0.3788, allocations: 2.727 MB / 0.5855 GB, free: 6.004 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.3803, allocations: 1.368 MB / 0.5868 GB, free: 4.598 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001582/0.3819, allocations: 1.454 MB / 0.5883 GB, free: 3.141 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.3842, allocations: 1.643 MB / 0.5899 GB, free: 1.492 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000349/0.3845, allocations: 252 kB / 0.5901 GB, free: 1.246 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008123/0.3926, allocations: 3.187 MB / 0.5932 GB, free: 14.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006142/0.3932, allocations: 0.6232 MB / 0.5938 GB, free: 13.43 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001358/0.3946, allocations: 1.221 MB / 0.595 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009744/0.4043, allocations: 6.125 MB / 0.601 GB, free: 6.055 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.4043, allocations: 0 / 0.601 GB, free: 6.055 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.4044, allocations: 0 / 0.601 GB, free: 6.055 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.185e-05/0.4044, allocations: 0 / 0.601 GB, free: 6.055 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.006225/0.4106, allocations: 2.935 MB / 0.6039 GB, free: 3.074 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.4107, allocations: 12.03 kB / 0.6039 GB, free: 3.062 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002036/0.4127, allocations: 474.6 kB / 0.6043 GB, free: 2.598 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.4146, allocations: 1.05 MB / 0.6054 GB, free: 1.52 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002824/0.4149, allocations: 353.8 kB / 0.6057 GB, free: 1.125 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000339/0.4153, allocations: 196.3 kB / 0.6059 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004064/0.4193, allocations: 2.527 MB / 0.6084 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.199e-05/0.4194, allocations: 4 kB / 0.6084 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001982/0.4196, allocations: 79.98 kB / 0.6084 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.302e-05/0.4196, allocations: 44 kB / 0.6085 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00507/0.4247, allocations: 3.215 MB / 0.6116 GB, free: 11.02 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.01445/0.4391, allocations: 8.388 MB / 0.6198 GB, free: 2.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009063/0.4482, allocations: 4.787 MB / 0.6245 GB, free: 13.54 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001923/0.4501, allocations: 1.157 MB / 0.6256 GB, free: 12.38 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01257/0.4627, allocations: 6.069 MB / 0.6315 GB, free: 6.285 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.4627, allocations: 51.88 kB / 0.6316 GB, free: 6.223 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001323/0.4641, allocations: 318.6 kB / 0.6319 GB, free: 5.91 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 2.896e-06/0.4641, allocations: 0 / 0.6319 GB, free: 5.91 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.02895/0.493, allocations: 7.354 MB / 0.6391 GB, free: 14.51 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.4931, allocations: 69.41 kB / 0.6391 GB, free: 14.43 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.4942, allocations: 0.9091 MB / 0.64 GB, free: 13.5 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.4943, allocations: 57.7 kB / 0.6401 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006163/0.4949, allocations: 0.8208 MB / 0.6409 GB, free: 12.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005612/0.4955, allocations: 0.6622 MB / 0.6415 GB, free: 11.94 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006046/0.4961, allocations: 423.9 kB / 0.6419 GB, free: 11.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4962, allocations: 305.1 kB / 0.6422 GB, free: 11.22 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001429/0.4977, allocations: 0.789 MB / 0.643 GB, free: 10.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001929/0.4996, allocations: 1.371 MB / 0.6443 GB, free: 8.793 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003566/0.5031, allocations: 2.36 MB / 0.6466 GB, free: 6.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.5032, allocations: 4 kB / 0.6466 GB, free: 6.176 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01217/0.5153, allocations: 3.383 MB / 0.6499 GB, free: 2.773 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.5154, allocations: 16 kB / 0.65 GB, free: 2.758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.102e-05/0.5154, allocations: 20.89 kB / 0.65 GB, free: 2.738 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003849/0.5192, allocations: 0.8101 MB / 0.6508 GB, free: 1.918 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00207/0.5213, allocations: 0.5149 MB / 0.6513 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005777/0.5271, allocations: 3.7 MB / 0.6549 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001428/0.5285, allocations: 76.05 kB / 0.655 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.5287, allocations: 120 kB / 0.6551 GB, free: 13.29 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.0007729/0.5295, allocations: 401.6 kB / 0.6555 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003131/0.5298, allocations: 159 kB / 0.6556 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01219/0.542, allocations: 3.33 MB / 0.6589 GB, free: 9.375 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/0.542, allocations: 20 kB / 0.6589 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.542, allocations: 0 / 0.6589 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.266e-05/0.5421, allocations: 11.91 kB / 0.6589 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/0.5565, allocations: 5.203 MB / 0.664 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.5565, allocations: 0 / 0.664 GB, free: 4.082 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00146/0.5579, allocations: 367.5 kB / 0.6643 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003673/0.5616, allocations: 0.7906 MB / 0.6651 GB, free: 2.922 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000151/0.5618, allocations: 67.94 kB / 0.6652 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005294/0.5671, allocations: 3.592 MB / 0.6687 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5671, allocations: 0 / 0.6687 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01297/0.58, allocations: 4.242 MB / 0.6728 GB, free: 10.77 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002745/0.5803, allocations: 135 kB / 0.6729 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002082/0.5805, allocations: 32 kB / 0.673 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000912/0.5814, allocations: 43.98 kB / 0.673 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004087/0.5818, allocations: 201.6 kB / 0.6732 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001596/0.582, allocations: 83.94 kB / 0.6733 GB, free: 10.28 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00075/0.5827, allocations: 0.5742 MB / 0.6738 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.5827, allocations: 0 / 0.6738 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00296/0.5857, allocations: 1.192 MB / 0.675 GB, free: 8.504 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.002169/0.5879, allocations: 1.359 MB / 0.6763 GB, free: 7.133 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004356/0.5922, allocations: 2.346 MB / 0.6786 GB, free: 4.762 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.5922, allocations: 3.938 kB / 0.6786 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002473/0.5947, allocations: 1.314 MB / 0.6799 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.596, allocations: 322.2 kB / 0.6802 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006264/0.6023, allocations: 3.404 MB / 0.6835 GB, free: 15.67 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009737/0.6033, allocations: 1.333 MB / 0.6849 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001326/0.6046, allocations: 412.1 kB / 0.6852 GB, free: 13.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006175/0.6052, allocations: 271.1 kB / 0.6855 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of SimCode: time 7.41e-07/0.6052, allocations: 0 / 0.6855 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of Templates: time 0.2527/0.8579, allocations: 48.28 MB / 0.7327 GB, free: 177 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 sys.exit(0), Time elapsed: 6.551211901009083] Failed to read output from testmodel.py, exit status != 0: 0.8658653311431408 0.8769025659999999 0.47008701499999994 Calling exit ...