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.001374/0.001374, allocations: 92.42 kB / 19.7 MB, free: 2.137 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.00145/0.00145, allocations: 211.6 kB / 23 MB, free: 4.953 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.797 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.1378/0.1378, allocations: 23.92 MB / 337.1 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.002059/0.002059, allocations: 67.89 kB / 472.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3356, allocations: 59.88 MB / 0.5198 GB, free: 9.68 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.07375/0.4093, allocations: 28.62 MB / 0.5478 GB, free: 11.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0357/0.445, allocations: 25.29 MB / 0.5725 GB, free: 3.879 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001881/0.4469, allocations: 31.75 kB / 0.5725 GB, free: 3.848 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001705/0.4486, allocations: 0.5233 MB / 0.573 GB, free: 3.32 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008253/0.4569, allocations: 2.573 MB / 0.5755 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01072/0.4676, allocations: 3.573 MB / 0.579 GB, free: 13.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004333/0.4719, allocations: 2.724 MB / 0.5817 GB, free: 10.41 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001999/0.4739, allocations: 1.364 MB / 0.583 GB, free: 9.004 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.476, allocations: 1.45 MB / 0.5844 GB, free: 7.551 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002631/0.4787, allocations: 1.651 MB / 0.586 GB, free: 5.895 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005789/0.4792, allocations: 248 kB / 0.5863 GB, free: 5.652 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008713/0.4879, allocations: 3.073 MB / 0.5893 GB, free: 2.574 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008964/0.4888, allocations: 0.6193 MB / 0.5899 GB, free: 1.953 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001509/0.4904, allocations: 1.043 MB / 0.5909 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01357/0.5039, allocations: 6.109 MB / 0.5969 GB, free: 10.77 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.5039, allocations: 4 kB / 0.5969 GB, free: 10.77 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.5039, allocations: 0 / 0.5969 GB, free: 10.77 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.564e-05/0.504, allocations: 0 / 0.5969 GB, free: 10.77 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.006116/0.5101, allocations: 2.923 MB / 0.5997 GB, free: 7.801 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.5101, allocations: 15.97 kB / 0.5997 GB, free: 7.785 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002145/0.5123, allocations: 470.8 kB / 0.6002 GB, free: 7.324 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.5145, allocations: 1.05 MB / 0.6012 GB, free: 6.246 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000309/0.5148, allocations: 361.8 kB / 0.6016 GB, free: 5.844 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003827/0.5152, allocations: 184.3 kB / 0.6017 GB, free: 5.664 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004332/0.5195, allocations: 2.535 MB / 0.6042 GB, free: 3.094 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.158e-05/0.5196, allocations: 4 kB / 0.6042 GB, free: 3.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001975/0.5198, allocations: 72 kB / 0.6043 GB, free: 3.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.293e-05/0.5198, allocations: 48 kB / 0.6043 GB, free: 2.973 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005213/0.525, allocations: 3.18 MB / 0.6074 GB, free: 15.79 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.01453/0.5396, allocations: 6.901 MB / 0.6142 GB, free: 8.781 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009474/0.549, allocations: 4.654 MB / 0.6187 GB, free: 4.113 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002182/0.5512, allocations: 1.153 MB / 0.6199 GB, free: 2.961 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01298/0.5642, allocations: 5.766 MB / 0.6255 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.771e-05/0.5642, allocations: 55.81 kB / 0.6255 GB, free: 13.1 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001364/0.5656, allocations: 298.8 kB / 0.6258 GB, free: 12.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 5.72e-06/0.5656, allocations: 0 / 0.6258 GB, free: 12.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.02788/0.5935, allocations: 7.347 MB / 0.633 GB, free: 5.414 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.5936, allocations: 77.34 kB / 0.6331 GB, free: 5.328 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.5947, allocations: 0.862 MB / 0.6339 GB, free: 4.445 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000217/0.595, allocations: 53.7 kB / 0.634 GB, free: 4.387 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006642/0.5956, allocations: 0.8363 MB / 0.6348 GB, free: 3.539 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006661/0.5963, allocations: 0.6661 MB / 0.6354 GB, free: 2.867 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006374/0.5969, allocations: 415.9 kB / 0.6358 GB, free: 2.453 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.5971, allocations: 305.1 kB / 0.6361 GB, free: 2.152 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00145/0.5985, allocations: 0.7929 MB / 0.6369 GB, free: 1.355 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002003/0.6005, allocations: 1.367 MB / 0.6382 GB, free: 15.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003719/0.6042, allocations: 2.364 MB / 0.6405 GB, free: 13.11 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-05/0.6043, allocations: 8 kB / 0.6405 GB, free: 13.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.0118/0.6161, allocations: 3.38 MB / 0.6438 GB, free: 9.703 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.522e-05/0.6161, allocations: 12 kB / 0.6439 GB, free: 9.691 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.677e-05/0.6161, allocations: 20 kB / 0.6439 GB, free: 9.672 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003623/0.6197, allocations: 0.8183 MB / 0.6447 GB, free: 8.844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002141/0.6219, allocations: 0.5188 MB / 0.6452 GB, free: 8.324 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005949/0.6278, allocations: 3.612 MB / 0.6487 GB, free: 4.508 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.6295, allocations: 71.98 kB / 0.6488 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002661/0.6298, allocations: 123.9 kB / 0.6489 GB, free: 4.316 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.0008505/0.6306, allocations: 401 kB / 0.6493 GB, free: 3.914 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003468/0.631, allocations: 151 kB / 0.6494 GB, free: 3.766 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01177/0.6427, allocations: 3.326 MB / 0.6527 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.431e-05/0.6428, allocations: 20 kB / 0.6527 GB, free: 408 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.669e-06/0.6428, allocations: 4 kB / 0.6527 GB, free: 404 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.4e-05/0.6428, allocations: 7.969 kB / 0.6527 GB, free: 396 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01431/0.6571, allocations: 4.749 MB / 0.6573 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.6571, allocations: 0 / 0.6573 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/0.6587, allocations: 363.5 kB / 0.6577 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003482/0.6622, allocations: 0.7945 MB / 0.6585 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002415/0.6624, allocations: 67.95 kB / 0.6585 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005167/0.6676, allocations: 3.508 MB / 0.662 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.6676, allocations: 7.969 kB / 0.662 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01308/0.6807, allocations: 4.233 MB / 0.6661 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004526/0.6811, allocations: 131 kB / 0.6662 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/0.6814, allocations: 32 kB / 0.6662 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008716/0.6822, allocations: 39.98 kB / 0.6663 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004829/0.6827, allocations: 205.6 kB / 0.6665 GB, free: 1.984 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001787/0.6829, allocations: 79.95 kB / 0.6666 GB, free: 1.906 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007721/0.6837, allocations: 0.5292 MB / 0.6671 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.6837, allocations: 0 / 0.6671 GB, free: 1.367 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.003332/0.687, allocations: 1.192 MB / 0.6682 GB, free: 176 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.002419/0.6894, allocations: 1.363 MB / 0.6696 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.004654/0.6941, allocations: 2.339 MB / 0.6719 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.6941, allocations: 7.938 kB / 0.6719 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002544/0.6966, allocations: 1.31 MB / 0.6731 GB, free: 11.09 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00149/0.6981, allocations: 312.5 kB / 0.6734 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006721/0.7048, allocations: 3.445 MB / 0.6768 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008078/0.7057, allocations: 0.74 MB / 0.6775 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000907/0.7066, allocations: 359 kB / 0.6779 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of SimCode: time 8.91e-07/0.7066, allocations: 0 / 0.6779 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of Templates: time 0.2931/0.9996, allocations: 57.04 MB / 0.7336 GB, free: 174.6 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.666348824976012] Failed to read output from testmodel.py, exit status != 0: 1.0088063800358213 1.022376601 0.5153408770000001 Calling exit ...