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.002043/0.002043, allocations: 108.7 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.002542/0.002542, 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.475/1.475, allocations: 230.6 MB / 252.8 MB, free: 8.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.1387/0.1387, allocations: 23.84 MB / 332.7 MB, free: 12.38 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: "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.Phosphate,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate",fmuType="me",version="2.0",platforms={"static"}) [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.002072/0.002072, allocations: 63.91 kB / 466 MB, free: 10.11 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3025, allocations: 59.82 MB / 0.5135 GB, free: 8.887 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.04415/0.3466, allocations: 29.56 MB / 0.5424 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03832/0.3849, allocations: 28.84 MB / 0.5705 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001536/0.3865, allocations: 35.69 kB / 0.5706 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001926/0.3884, allocations: 0.5739 MB / 0.5711 GB, free: 288 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0081/0.3965, allocations: 2.6 MB / 0.5737 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01079/0.4073, allocations: 3.542 MB / 0.5771 GB, free: 10.1 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00474/0.412, allocations: 2.723 MB / 0.5798 GB, free: 7.363 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002206/0.4142, allocations: 1.41 MB / 0.5812 GB, free: 5.918 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.4164, allocations: 1.45 MB / 0.5826 GB, free: 4.465 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002642/0.4191, allocations: 1.643 MB / 0.5842 GB, free: 2.816 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005544/0.4196, allocations: 255.9 kB / 0.5844 GB, free: 2.566 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009717/0.4293, allocations: 3.194 MB / 0.5875 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000947/0.4303, allocations: 0.6155 MB / 0.5881 GB, free: 14.75 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001668/0.432, allocations: 1.214 MB / 0.5893 GB, free: 13.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01391/0.4459, allocations: 6.125 MB / 0.5953 GB, free: 7.383 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4459, allocations: 0 / 0.5953 GB, free: 7.383 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4459, allocations: 0 / 0.5953 GB, free: 7.383 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.632e-05/0.4459, allocations: 0 / 0.5953 GB, free: 7.383 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.007528/0.4535, allocations: 3.018 MB / 0.5983 GB, free: 4.301 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.4535, allocations: 8.031 kB / 0.5983 GB, free: 4.293 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004256/0.4539, allocations: 262 kB / 0.5985 GB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002447/0.4564, allocations: 474.6 kB / 0.599 GB, free: 3.562 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003099/0.4595, allocations: 1.116 MB / 0.6001 GB, free: 2.406 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003663/0.4599, allocations: 247 kB / 0.6003 GB, free: 2.141 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008892/0.4608, allocations: 200.3 kB / 0.6005 GB, free: 1.945 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006277/0.467, allocations: 2.535 MB / 0.603 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.903e-05/0.4671, allocations: 0 / 0.603 GB, free: 15.38 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002726/0.4673, allocations: 72 kB / 0.603 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/0.4674, allocations: 44 kB / 0.6031 GB, free: 15.26 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006534/0.4739, allocations: 3.211 MB / 0.6062 GB, free: 12.04 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.01646/0.4904, allocations: 8.473 MB / 0.6145 GB, free: 3.27 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/0.5007, allocations: 5.287 MB / 0.6196 GB, free: 13.84 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002503/0.5032, allocations: 1.164 MB / 0.6208 GB, free: 12.68 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01753/0.5207, allocations: 10.32 MB / 0.6309 GB, free: 1.27 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.677e-05/0.5208, allocations: 55.86 kB / 0.6309 GB, free: 1.207 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001517/0.5223, allocations: 306.7 kB / 0.6312 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of pre-optimization done (n=158): time 6.082e-06/0.5223, allocations: 4 kB / 0.6312 GB, free: 0.9023 MB / 478.1 MB Notification: Performance of matching and sorting (n=187): time 0.03207/0.5544, allocations: 7.581 MB / 0.6386 GB, free: 9.227 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/0.5544, allocations: 77.41 kB / 0.6387 GB, free: 9.141 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001437/0.5559, allocations: 0.8936 MB / 0.6396 GB, free: 8.23 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003553/0.5562, allocations: 57.7 kB / 0.6396 GB, free: 8.168 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007437/0.557, allocations: 0.8169 MB / 0.6404 GB, free: 7.34 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007759/0.5578, allocations: 0.6779 MB / 0.6411 GB, free: 6.656 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006855/0.5584, allocations: 419.8 kB / 0.6415 GB, free: 6.238 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.5586, allocations: 305.1 kB / 0.6418 GB, free: 5.938 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001587/0.5602, allocations: 0.7851 MB / 0.6425 GB, free: 5.148 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002125/0.5623, allocations: 1.375 MB / 0.6439 GB, free: 3.512 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004077/0.5664, allocations: 2.364 MB / 0.6462 GB, free: 0.8945 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/0.5664, allocations: 4 kB / 0.6462 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.01313/0.5795, allocations: 3.384 MB / 0.6495 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.5795, allocations: 12 kB / 0.6495 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.59e-05/0.5796, allocations: 20.16 kB / 0.6495 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0042/0.5838, allocations: 0.8179 MB / 0.6503 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002287/0.5861, allocations: 0.5227 MB / 0.6508 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006362/0.5924, allocations: 3.884 MB / 0.6546 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001814/0.5942, allocations: 71.98 kB / 0.6547 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/0.5945, allocations: 123.9 kB / 0.6548 GB, free: 7.754 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.0009009/0.5954, allocations: 397.1 kB / 0.6552 GB, free: 7.355 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004305/0.5959, allocations: 159 kB / 0.6553 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/0.6089, allocations: 3.327 MB / 0.6586 GB, free: 3.852 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.562e-05/0.609, allocations: 20 kB / 0.6586 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/0.609, allocations: 3.938 kB / 0.6586 GB, free: 3.828 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-05/0.609, allocations: 7.969 kB / 0.6586 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01592/0.6249, allocations: 5.228 MB / 0.6637 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.808e-05/0.6249, allocations: 48 / 0.6637 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/0.6268, allocations: 367.5 kB / 0.6641 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003968/0.6308, allocations: 0.7983 MB / 0.6649 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002898/0.631, allocations: 67.89 kB / 0.6649 GB, free: 13.29 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005764/0.6368, allocations: 3.795 MB / 0.6686 GB, free: 9.215 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.6368, allocations: 4 kB / 0.6686 GB, free: 9.211 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01453/0.6513, allocations: 4.245 MB / 0.6728 GB, free: 4.941 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004689/0.6518, allocations: 212.2 kB / 0.673 GB, free: 4.715 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003189/0.6521, allocations: 36 kB / 0.673 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.6532, allocations: 47.98 kB / 0.6731 GB, free: 4.633 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005392/0.6537, allocations: 193.7 kB / 0.6732 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001891/0.6539, allocations: 79.95 kB / 0.6733 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008558/0.6547, allocations: 0.5742 MB / 0.6739 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/0.6547, allocations: 0 / 0.6739 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003478/0.6582, allocations: 1.196 MB / 0.675 GB, free: 2.582 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.01824/0.6765, allocations: 6.044 MB / 0.681 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005716/0.6822, allocations: 2.418 MB / 0.6833 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.6822, allocations: 0 / 0.6833 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003238/0.6854, allocations: 1.385 MB / 0.6847 GB, free: 8.609 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.6873, allocations: 316.2 kB / 0.685 GB, free: 8.297 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04223/0.7296, allocations: 15.83 MB / 0.7004 GB, free: 7.699 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001139/0.7307, allocations: 1.329 MB / 0.7017 GB, free: 6.336 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.001695/0.7324, allocations: 428 kB / 0.7021 GB, free: 5.914 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/0.7338, allocations: 0.8349 MB / 0.7029 GB, free: 5.082 MB / 0.545 GB Notification: Performance of SimCode: time 1.042e-06/0.7338, allocations: 0 / 0.7029 GB, free: 5.082 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3521/1.086, allocations: 60.91 MB / 0.7624 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.31/18.39, allocations: 8.312 kB / 0.7624 GB, free: 159.3 MB / 0.5606 GB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate_fmu --startTime=0 --stopTime=0.05 --stepSize=2e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_AcidBase_Phosphate.fmu > Chemical_Chemical.Obsolete.Examples.AcidBase.Phosphate.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.161398134194314] Failed to read output from testmodel.py, exit status != 0: 18.519941881066188 18.53197089 18.08352224 Calling exit ...