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.001891/0.001891, allocations: 108.3 kB / 16.46 MB, free: 6.453 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.002182/0.002182, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.504/1.504, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.1509/0.1509, allocations: 23.89 MB / 332.7 MB, free: 12.32 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.002116/0.002116, allocations: 71.89 kB / 466.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3433, allocations: 59.84 MB / 0.514 GB, free: 9.105 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.04136/0.3846, allocations: 29.61 MB / 0.543 GB, free: 11.22 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03934/0.424, allocations: 28.83 MB / 0.5711 GB, free: 0.6484 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00176/0.4257, allocations: 35.69 kB / 0.5711 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001711/0.4274, allocations: 0.5793 MB / 0.5717 GB, free: 104 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00812/0.4356, allocations: 2.592 MB / 0.5742 GB, free: 13.49 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01/0.4456, allocations: 3.542 MB / 0.5777 GB, free: 9.93 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004185/0.4498, allocations: 2.728 MB / 0.5804 GB, free: 7.188 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00194/0.4517, allocations: 1.403 MB / 0.5817 GB, free: 5.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00203/0.4537, allocations: 1.45 MB / 0.5832 GB, free: 4.297 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002637/0.4564, allocations: 1.651 MB / 0.5848 GB, free: 2.641 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005277/0.4569, allocations: 252 kB / 0.585 GB, free: 2.395 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01034/0.4672, allocations: 3.187 MB / 0.5881 GB, free: 15.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.4683, allocations: 0.6271 MB / 0.5887 GB, free: 14.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002002/0.4703, allocations: 1.217 MB / 0.5899 GB, free: 13.35 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01492/0.4852, allocations: 6.125 MB / 0.5959 GB, free: 7.203 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.4852, allocations: 0 / 0.5959 GB, free: 7.203 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4852, allocations: 4 kB / 0.5959 GB, free: 7.199 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.403e-05/0.4853, allocations: 0 / 0.5959 GB, free: 7.199 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.00686/0.4921, allocations: 3.01 MB / 0.5988 GB, free: 4.125 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.4922, allocations: 8.031 kB / 0.5989 GB, free: 4.117 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00227/0.4945, allocations: 474.8 kB / 0.5993 GB, free: 3.652 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002064/0.4965, allocations: 1.112 MB / 0.6004 GB, free: 2.5 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.4968, allocations: 251 kB / 0.6006 GB, free: 2.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003888/0.4971, allocations: 192.3 kB / 0.6008 GB, free: 2.043 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004663/0.5018, allocations: 2.535 MB / 0.6033 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.247e-05/0.5018, allocations: 4 kB / 0.6033 GB, free: 15.46 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002177/0.5021, allocations: 68 kB / 0.6034 GB, free: 15.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-05/0.5021, allocations: 48 kB / 0.6034 GB, free: 15.35 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005679/0.5078, allocations: 3.211 MB / 0.6065 GB, free: 12.13 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.01573/0.5235, allocations: 8.473 MB / 0.6148 GB, free: 3.363 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01008/0.5336, allocations: 5.295 MB / 0.62 GB, free: 13.93 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002387/0.536, allocations: 1.157 MB / 0.6211 GB, free: 12.77 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01611/0.5521, allocations: 10.33 MB / 0.6312 GB, free: 1.355 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.241e-05/0.5522, allocations: 47.88 kB / 0.6312 GB, free: 1.301 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001511/0.5537, allocations: 310.7 kB / 0.6315 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.299e-06/0.5537, allocations: 3.938 kB / 0.6315 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03099/0.5847, allocations: 7.569 MB / 0.6389 GB, free: 9.328 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.362e-05/0.5847, allocations: 77.41 kB / 0.639 GB, free: 9.242 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.5861, allocations: 0.9052 MB / 0.6399 GB, free: 8.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002907/0.5863, allocations: 57.7 kB / 0.64 GB, free: 8.258 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006568/0.587, allocations: 0.8208 MB / 0.6408 GB, free: 7.426 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007695/0.5878, allocations: 0.6701 MB / 0.6414 GB, free: 6.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006595/0.5884, allocations: 411.9 kB / 0.6418 GB, free: 6.34 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.5886, allocations: 309.1 kB / 0.6421 GB, free: 6.035 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001525/0.5901, allocations: 0.7851 MB / 0.6429 GB, free: 5.246 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002163/0.5923, allocations: 1.375 MB / 0.6442 GB, free: 3.609 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003955/0.5962, allocations: 2.364 MB / 0.6465 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.5962, allocations: 4 kB / 0.6465 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01279/0.609, allocations: 3.388 MB / 0.6498 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.254e-05/0.609, allocations: 12 kB / 0.6498 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/0.6091, allocations: 16 kB / 0.6499 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003995/0.6131, allocations: 0.822 MB / 0.6507 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002204/0.6153, allocations: 0.5149 MB / 0.6512 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006359/0.6216, allocations: 3.896 MB / 0.655 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001767/0.6234, allocations: 71.98 kB / 0.655 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002764/0.6237, allocations: 120 kB / 0.6551 GB, free: 7.848 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.0008283/0.6245, allocations: 405.1 kB / 0.6555 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000399/0.6249, allocations: 159 kB / 0.6557 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01312/0.638, allocations: 3.323 MB / 0.6589 GB, free: 3.941 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.178e-05/0.638, allocations: 24 kB / 0.659 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.638, allocations: 0 / 0.659 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.168e-05/0.6381, allocations: 11.91 kB / 0.659 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01571/0.6538, allocations: 5.22 MB / 0.6641 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/0.6538, allocations: 4 kB / 0.6641 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/0.6555, allocations: 363.5 kB / 0.6644 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003944/0.6595, allocations: 0.7945 MB / 0.6652 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000326/0.6598, allocations: 67.94 kB / 0.6653 GB, free: 13.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005741/0.6656, allocations: 3.799 MB / 0.669 GB, free: 9.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.6656, allocations: 3.984 kB / 0.669 GB, free: 9.305 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01431/0.6799, allocations: 4.245 MB / 0.6731 GB, free: 5.035 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004215/0.6803, allocations: 216 kB / 0.6733 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002281/0.6805, allocations: 32 kB / 0.6733 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009801/0.6815, allocations: 43.98 kB / 0.6734 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005411/0.682, allocations: 193.7 kB / 0.6736 GB, free: 4.539 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002112/0.6823, allocations: 83.94 kB / 0.6737 GB, free: 4.457 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000872/0.6831, allocations: 0.5742 MB / 0.6742 GB, free: 3.875 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.6831, allocations: 0 / 0.6742 GB, free: 3.875 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003621/0.6868, allocations: 1.188 MB / 0.6754 GB, free: 2.684 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.002715/0.6895, allocations: 1.358 MB / 0.6767 GB, free: 1.312 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005042/0.6945, allocations: 2.418 MB / 0.6791 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.6945, allocations: 7.938 kB / 0.6791 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002679/0.6972, allocations: 1.381 MB / 0.6804 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001575/0.6988, allocations: 323.4 kB / 0.6807 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007032/0.7058, allocations: 3.397 MB / 0.684 GB, free: 9.668 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/0.7068, allocations: 1.329 MB / 0.6853 GB, free: 8.309 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001552/0.7084, allocations: 420.1 kB / 0.6857 GB, free: 7.895 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006609/0.7091, allocations: 271.1 kB / 0.686 GB, free: 7.629 MB / 0.5294 GB Notification: Performance of SimCode: time 9.62e-07/0.7091, allocations: 0 / 0.686 GB, free: 7.629 MB / 0.5294 GB Notification: Performance of Templates: time 0.2955/1.005, allocations: 46.88 MB / 0.7318 GB, free: 174.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: 7.027905909810215] Failed to read output from testmodel.py, exit status != 0: 1.0129186119884253 1.033969839 0.5446181889999999 Calling exit ...