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.00134/0.00134, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001563/0.001563, allocations: 218.7 kB / 23.01 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.455/1.455, allocations: 230.6 MB / 256.8 MB, free: 7.965 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.1661/0.1661, allocations: 23.89 MB / 337.1 MB, free: 11.14 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.002067/0.002067, allocations: 71.89 kB / 472.5 MB, free: 7.105 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3563, allocations: 59.87 MB / 0.5199 GB, free: 9.809 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.04396/0.4003, allocations: 29.7 MB / 0.5489 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03928/0.4395, allocations: 28.91 MB / 0.5771 GB, free: 15.39 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002404/0.4419, allocations: 35.69 kB / 0.5772 GB, free: 15.35 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002004/0.4439, allocations: 0.5739 MB / 0.5777 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009222/0.4532, allocations: 2.623 MB / 0.5803 GB, free: 12.13 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01172/0.4649, allocations: 3.57 MB / 0.5838 GB, free: 8.543 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004819/0.4697, allocations: 2.731 MB / 0.5864 GB, free: 5.805 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002061/0.4718, allocations: 1.356 MB / 0.5878 GB, free: 4.41 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002077/0.4738, allocations: 1.446 MB / 0.5892 GB, free: 2.961 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002821/0.4767, allocations: 1.651 MB / 0.5908 GB, free: 1.305 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004706/0.4771, allocations: 248 kB / 0.591 GB, free: 1.062 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01078/0.4879, allocations: 3.194 MB / 0.5941 GB, free: 13.86 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001051/0.489, allocations: 0.6232 MB / 0.5947 GB, free: 13.24 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001719/0.4907, allocations: 1.21 MB / 0.5959 GB, free: 12.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01585/0.5065, allocations: 6.133 MB / 0.6019 GB, free: 5.867 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.5065, allocations: 0 / 0.6019 GB, free: 5.867 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.5065, allocations: 3.938 kB / 0.6019 GB, free: 5.863 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.92e-05/0.5066, allocations: 0 / 0.6019 GB, free: 5.863 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.006777/0.5134, allocations: 2.935 MB / 0.6048 GB, free: 2.883 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.5134, allocations: 12.03 kB / 0.6048 GB, free: 2.871 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002242/0.5157, allocations: 470.8 kB / 0.6052 GB, free: 2.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.5179, allocations: 1.046 MB / 0.6063 GB, free: 1.336 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003216/0.5183, allocations: 361.8 kB / 0.6066 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003956/0.5187, allocations: 192.3 kB / 0.6068 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004776/0.5234, allocations: 2.531 MB / 0.6093 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.016e-05/0.5235, allocations: 3.938 kB / 0.6093 GB, free: 14.17 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002139/0.5237, allocations: 72 kB / 0.6093 GB, free: 14.1 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.991e-05/0.5237, allocations: 48 kB / 0.6094 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00559/0.5293, allocations: 3.208 MB / 0.6125 GB, free: 10.84 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.01547/0.5448, allocations: 8.399 MB / 0.6207 GB, free: 2.148 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00915/0.5539, allocations: 4.779 MB / 0.6254 GB, free: 13.35 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002355/0.5563, allocations: 1.163 MB / 0.6265 GB, free: 12.19 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01285/0.5692, allocations: 6.073 MB / 0.6324 GB, free: 6.094 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.5692, allocations: 43.88 kB / 0.6325 GB, free: 6.039 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001357/0.5706, allocations: 322.6 kB / 0.6328 GB, free: 5.723 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 4.428e-06/0.5706, allocations: 0 / 0.6328 GB, free: 5.723 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.02889/0.5995, allocations: 7.354 MB / 0.64 GB, free: 14.32 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.45e-05/0.5995, allocations: 77.41 kB / 0.6401 GB, free: 14.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001274/0.6008, allocations: 0.8974 MB / 0.6409 GB, free: 13.32 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003174/0.6011, allocations: 57.7 kB / 0.641 GB, free: 13.26 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006218/0.6017, allocations: 0.8208 MB / 0.6418 GB, free: 12.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006919/0.6024, allocations: 0.674 MB / 0.6424 GB, free: 11.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006127/0.603, allocations: 415.9 kB / 0.6428 GB, free: 11.33 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.6032, allocations: 309.1 kB / 0.6431 GB, free: 11.03 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.6046, allocations: 0.7851 MB / 0.6439 GB, free: 10.24 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002003/0.6066, allocations: 1.375 MB / 0.6452 GB, free: 8.602 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003726/0.6103, allocations: 2.36 MB / 0.6476 GB, free: 5.988 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-06/0.6104, allocations: 4 kB / 0.6476 GB, free: 5.984 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.012/0.6224, allocations: 3.384 MB / 0.6509 GB, free: 2.582 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.6224, allocations: 12 kB / 0.6509 GB, free: 2.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.672e-05/0.6224, allocations: 16 kB / 0.6509 GB, free: 2.555 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003806/0.6262, allocations: 0.8264 MB / 0.6517 GB, free: 1.719 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/0.6284, allocations: 0.5149 MB / 0.6522 GB, free: 1.203 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006155/0.6345, allocations: 3.693 MB / 0.6558 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002058/0.6366, allocations: 63.98 kB / 0.6559 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006218/0.6372, allocations: 132 kB / 0.656 GB, free: 13.09 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.00125/0.6385, allocations: 397.6 kB / 0.6564 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005978/0.6391, allocations: 159 kB / 0.6565 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01286/0.6519, allocations: 3.319 MB / 0.6598 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-05/0.652, allocations: 20 kB / 0.6598 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.861e-05/0.652, allocations: 8 kB / 0.6598 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.348e-05/0.652, allocations: 15.89 kB / 0.6598 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/0.6678, allocations: 5.203 MB / 0.6649 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.347e-05/0.6678, allocations: 0 / 0.6649 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/0.6696, allocations: 371.4 kB / 0.6652 GB, free: 3.527 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003798/0.6734, allocations: 0.7906 MB / 0.666 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004126/0.6738, allocations: 71.94 kB / 0.6661 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005655/0.6795, allocations: 3.588 MB / 0.6696 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6795, allocations: 0 / 0.6696 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0141/0.6936, allocations: 4.23 MB / 0.6737 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004738/0.6941, allocations: 138.9 kB / 0.6738 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003531/0.6944, allocations: 36 kB / 0.6739 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009773/0.6954, allocations: 39.98 kB / 0.6739 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000499/0.6959, allocations: 201.6 kB / 0.6741 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/0.6961, allocations: 79.94 kB / 0.6742 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008612/0.697, allocations: 0.582 MB / 0.6748 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.11e-07/0.697, allocations: 0 / 0.6748 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003697/0.7007, allocations: 1.192 MB / 0.6759 GB, free: 8.312 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.002924/0.7036, allocations: 1.359 MB / 0.6772 GB, free: 6.941 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.005228/0.7088, allocations: 2.351 MB / 0.6795 GB, free: 4.566 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.7088, allocations: 0 / 0.6795 GB, free: 4.566 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002803/0.7116, allocations: 1.31 MB / 0.6808 GB, free: 3.23 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001661/0.7133, allocations: 326.5 kB / 0.6811 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007349/0.7206, allocations: 3.444 MB / 0.6845 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001045/0.7217, allocations: 1.325 MB / 0.6858 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/0.7227, allocations: 347 kB / 0.6861 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/0.7227, allocations: 0 / 0.6861 GB, free: 13.73 MB / 0.5294 GB Notification: Performance of Templates: time 0.3144/1.037, allocations: 56.45 MB / 0.7412 GB, free: 174.2 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: 11.316526100999909] Failed to read output from testmodel.py, exit status != 0: 1.0467130780161824 1.0684082609999999 0.557360334 Calling exit ...