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.001779/0.001779, allocations: 110.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.001549/0.001549, allocations: 213.7 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.535/1.535, 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 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.1538/0.1538, allocations: 23.84 MB / 332.7 MB, free: 12.37 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.002009/0.002009, allocations: 67.91 kB / 466.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3553, allocations: 59.82 MB / 0.514 GB, free: 9.176 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.04395/0.3992, allocations: 29.34 MB / 0.5426 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.04371/0.4429, allocations: 28.85 MB / 0.5708 GB, free: 0.9531 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001948/0.4449, allocations: 35.69 kB / 0.5708 GB, free: 0.918 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002067/0.447, allocations: 0.571 MB / 0.5714 GB, free: 452 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01038/0.4573, allocations: 2.592 MB / 0.5739 GB, free: 13.83 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01208/0.4694, allocations: 3.546 MB / 0.5774 GB, free: 10.26 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.004973/0.4744, allocations: 2.727 MB / 0.58 GB, free: 7.523 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002341/0.4767, allocations: 1.411 MB / 0.5814 GB, free: 6.078 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.4789, allocations: 1.454 MB / 0.5828 GB, free: 4.621 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002786/0.4817, allocations: 1.643 MB / 0.5844 GB, free: 2.973 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000565/0.4822, allocations: 252 kB / 0.5847 GB, free: 2.727 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01147/0.4937, allocations: 3.194 MB / 0.5878 GB, free: 15.53 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001149/0.4949, allocations: 0.6194 MB / 0.5884 GB, free: 14.91 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00186/0.4967, allocations: 1.21 MB / 0.5896 GB, free: 13.69 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01657/0.5133, allocations: 6.129 MB / 0.5956 GB, free: 7.539 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.5133, allocations: 0 / 0.5956 GB, free: 7.539 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5133, allocations: 0 / 0.5956 GB, free: 7.539 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.906e-05/0.5134, allocations: 0 / 0.5956 GB, free: 7.539 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.008052/0.5214, allocations: 3.014 MB / 0.5985 GB, free: 4.461 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.066e-05/0.5215, allocations: 19.97 kB / 0.5985 GB, free: 4.441 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002472/0.5239, allocations: 474.6 kB / 0.599 GB, free: 3.977 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.5261, allocations: 1.112 MB / 0.6001 GB, free: 2.824 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002664/0.5263, allocations: 251 kB / 0.6003 GB, free: 2.555 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003918/0.5267, allocations: 188.3 kB / 0.6005 GB, free: 2.371 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004757/0.5315, allocations: 2.535 MB / 0.603 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.495e-05/0.5315, allocations: 3.938 kB / 0.603 GB, free: 15.8 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/0.5318, allocations: 80 kB / 0.603 GB, free: 15.72 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-05/0.5318, allocations: 44 kB / 0.6031 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005758/0.5376, allocations: 3.211 MB / 0.6062 GB, free: 12.46 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.01556/0.5531, allocations: 8.458 MB / 0.6145 GB, free: 3.699 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01035/0.5635, allocations: 5.295 MB / 0.6196 GB, free: 14.27 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00246/0.5659, allocations: 1.157 MB / 0.6208 GB, free: 13.11 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01638/0.5823, allocations: 10.32 MB / 0.6309 GB, free: 1.699 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/0.5824, allocations: 55.8 kB / 0.6309 GB, free: 1.637 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001433/0.5838, allocations: 318.6 kB / 0.6312 GB, free: 1.324 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 6.722e-06/0.5838, allocations: 0 / 0.6312 GB, free: 1.324 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03245/0.6163, allocations: 7.577 MB / 0.6386 GB, free: 9.652 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.6163, allocations: 73.39 kB / 0.6387 GB, free: 9.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001497/0.6178, allocations: 0.9013 MB / 0.6396 GB, free: 8.652 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003644/0.6182, allocations: 57.69 kB / 0.6396 GB, free: 8.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000737/0.6189, allocations: 0.8209 MB / 0.6404 GB, free: 7.758 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009673/0.6199, allocations: 0.6662 MB / 0.6411 GB, free: 7.086 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008729/0.6208, allocations: 419.9 kB / 0.6415 GB, free: 6.668 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.6209, allocations: 305.1 kB / 0.6418 GB, free: 6.367 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001695/0.6226, allocations: 0.7851 MB / 0.6425 GB, free: 5.578 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002244/0.6249, allocations: 1.379 MB / 0.6439 GB, free: 3.938 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004207/0.6291, allocations: 2.356 MB / 0.6462 GB, free: 1.328 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.316e-05/0.6291, allocations: 11.94 kB / 0.6462 GB, free: 1.316 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.0132/0.6423, allocations: 3.376 MB / 0.6495 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.2e-05/0.6423, allocations: 12 kB / 0.6495 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.132e-05/0.6424, allocations: 20.88 kB / 0.6495 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004069/0.6464, allocations: 0.8218 MB / 0.6503 GB, free: 13.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002237/0.6487, allocations: 0.5148 MB / 0.6508 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00664/0.6553, allocations: 3.9 MB / 0.6546 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00197/0.6573, allocations: 72.05 kB / 0.6547 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000566/0.6578, allocations: 124 kB / 0.6548 GB, free: 8.176 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.001217/0.6591, allocations: 397 kB / 0.6552 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005299/0.6596, allocations: 159 kB / 0.6553 GB, free: 7.621 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01337/0.673, allocations: 3.33 MB / 0.6586 GB, free: 4.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/0.673, allocations: 20 kB / 0.6586 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.673, allocations: 4 kB / 0.6586 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.928e-05/0.673, allocations: 11.91 kB / 0.6586 GB, free: 4.234 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/0.6906, allocations: 5.224 MB / 0.6637 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.6906, allocations: 0 / 0.6637 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001969/0.6926, allocations: 367.5 kB / 0.6641 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004011/0.6966, allocations: 0.7906 MB / 0.6649 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004176/0.697, allocations: 67.95 kB / 0.6649 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00608/0.7031, allocations: 3.799 MB / 0.6686 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.7031, allocations: 0 / 0.6686 GB, free: 9.637 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01562/0.7187, allocations: 4.242 MB / 0.6728 GB, free: 5.371 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005735/0.7193, allocations: 216.1 kB / 0.673 GB, free: 5.141 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005444/0.7198, allocations: 35.98 kB / 0.673 GB, free: 5.105 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.7212, allocations: 39.98 kB / 0.6731 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006638/0.7218, allocations: 193.7 kB / 0.6732 GB, free: 4.875 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003109/0.7221, allocations: 87.94 kB / 0.6733 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001029/0.7232, allocations: 0.5742 MB / 0.6739 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.7232, allocations: 0 / 0.6739 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004361/0.7275, allocations: 1.196 MB / 0.675 GB, free: 3.008 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.003705/0.7312, allocations: 1.362 MB / 0.6764 GB, free: 1.633 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00598/0.7372, allocations: 2.41 MB / 0.6787 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.7372, allocations: 0 / 0.6787 GB, free: 15.18 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003085/0.7403, allocations: 1.389 MB / 0.6801 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.7423, allocations: 313.8 kB / 0.6804 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008231/0.7505, allocations: 3.408 MB / 0.6837 GB, free: 10 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001378/0.7519, allocations: 1.329 MB / 0.685 GB, free: 8.641 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001839/0.7538, allocations: 420.1 kB / 0.6854 GB, free: 8.227 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008001/0.7546, allocations: 267.1 kB / 0.6857 GB, free: 7.965 MB / 0.5294 GB Notification: Performance of SimCode: time 7.52e-07/0.7546, allocations: 0 / 0.6857 GB, free: 7.965 MB / 0.5294 GB Notification: Performance of Templates: time 0.3275/1.082, allocations: 46.87 MB / 0.7314 GB, free: 174.2 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: 7.341898888349533] Failed to read output from testmodel.py, exit status != 0: 1.0908632725477219 1.101860943 0.585931271 Calling exit ...