Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 105.2 kB / 16.36 MB, free: 6.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 192 kB / 17.29 MB, free: 5.863 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0458/0.0458, allocations: 9.096 MB / 279.6 MB, free: 2.965 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 68.33 kB / 339.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2473, allocations: 48.14 MB / 387.6 MB, free: 51.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1294/0.3768, allocations: 128.9 MB / 0.5044 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.3291/0.7059, allocations: 111.1 MB / 0.6129 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009859/0.707, allocations: 8.938 kB / 0.6129 GB, free: 14.66 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003912/0.711, allocations: 1.364 MB / 0.6142 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004597/0.7156, allocations: 1.657 MB / 0.6158 GB, free: 13.95 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.07573/0.7913, allocations: 30.13 MB / 0.6453 GB, free: 9.273 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001954/0.7933, allocations: 1.405 MB / 0.6466 GB, free: 7.898 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002388/0.7936, allocations: 133.5 kB / 0.6468 GB, free: 7.777 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01779/0.8114, allocations: 11.68 MB / 0.6582 GB, free: 12.51 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005121/0.8119, allocations: 382.8 kB / 0.6585 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.851e-05/0.812, allocations: 40 kB / 0.6586 GB, free: 12.12 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06914/0.8811, allocations: 36.97 MB / 0.6947 GB, free: 8.262 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003126/0.8815, allocations: 118.3 kB / 0.6948 GB, free: 8.148 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006161/0.8821, allocations: 310.6 kB / 0.6951 GB, free: 7.848 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04654/0.9286, allocations: 14.51 MB / 0.7093 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.9287, allocations: 4 kB / 0.7093 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.116e-06/0.9287, allocations: 0 / 0.7093 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.497e-05/0.9287, allocations: 3.938 kB / 0.7093 GB, free: 10.14 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.0064/0.9351, allocations: 2.567 MB / 0.7118 GB, free: 7.527 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.9352, allocations: 12.03 kB / 0.7118 GB, free: 7.516 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006064/0.9358, allocations: 83.39 kB / 0.7119 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005974/0.9364, allocations: 334.2 kB / 0.7122 GB, free: 7.066 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.858e-05/0.9364, allocations: 32.59 kB / 0.7122 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.569e-05/0.9365, allocations: 32 kB / 0.7122 GB, free: 7.004 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.9378, allocations: 0.6076 MB / 0.7128 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.9378, allocations: 3.906 kB / 0.7128 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.9378, allocations: 12 kB / 0.7129 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.134e-05/0.9379, allocations: 19.98 kB / 0.7129 GB, free: 6.344 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00142/0.9393, allocations: 0.552 MB / 0.7134 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002761/0.9421, allocations: 2.457 MB / 0.7158 GB, free: 3.121 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.9431, allocations: 0.4909 MB / 0.7163 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005148/0.9437, allocations: 335.5 kB / 0.7166 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3959/1.34, allocations: 139 MB / 0.8523 GB, free: 80.85 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/1.34, allocations: 37.19 kB / 0.8524 GB, free: 80.81 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=77): time 3.236e-06/1.34, allocations: 0 / 0.8524 GB, free: 80.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=81): time 0.005682/1.345, allocations: 2.337 MB / 0.8547 GB, free: 78.44 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/1.345, allocations: 55.41 kB / 0.8547 GB, free: 78.37 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002632/1.346, allocations: 258.5 kB / 0.855 GB, free: 78.11 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/1.346, allocations: 41.7 kB / 0.855 GB, free: 78.06 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.497e-05/1.346, allocations: 190.7 kB / 0.8552 GB, free: 77.88 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/1.346, allocations: 263.8 kB / 0.8554 GB, free: 77.62 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001187/1.346, allocations: 98.11 kB / 0.8555 GB, free: 77.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.537e-05/1.346, allocations: 350.8 kB / 0.8559 GB, free: 77.17 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004478/1.347, allocations: 281.3 kB / 0.8561 GB, free: 76.89 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/1.347, allocations: 397.4 kB / 0.8565 GB, free: 76.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/1.348, allocations: 0.6882 MB / 0.8572 GB, free: 75.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/1.348, allocations: 0 / 0.8572 GB, free: 75.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001242/1.349, allocations: 0.7948 MB / 0.858 GB, free: 74.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/1.349, allocations: 8.375 kB / 0.858 GB, free: 74.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/1.349, allocations: 8 kB / 0.858 GB, free: 74.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002413/1.35, allocations: 65.67 kB / 0.858 GB, free: 74.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006717/1.35, allocations: 139.8 kB / 0.8582 GB, free: 74.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06727/1.417, allocations: 22.96 MB / 0.8806 GB, free: 51.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004268/1.418, allocations: 27.97 kB / 0.8806 GB, free: 51.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.944e-05/1.418, allocations: 19.94 kB / 0.8806 GB, free: 51.18 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002517/1.418, allocations: 188.2 kB / 0.8808 GB, free: 50.99 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/1.418, allocations: 42.67 kB / 0.8809 GB, free: 50.95 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/1.42, allocations: 1.71 MB / 0.8825 GB, free: 49.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/1.42, allocations: 15.59 kB / 0.8825 GB, free: 49.16 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/1.42, allocations: 0 / 0.8825 GB, free: 49.16 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001227/1.421, allocations: 1.3 MB / 0.8838 GB, free: 47.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001923/1.423, allocations: 1.754 MB / 0.8855 GB, free: 45.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/1.423, allocations: 3.938 kB / 0.8855 GB, free: 45.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003001/1.424, allocations: 79.94 kB / 0.8856 GB, free: 45.88 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00029/1.424, allocations: 154.4 kB / 0.8857 GB, free: 45.72 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.86e-05/1.424, allocations: 15.98 kB / 0.8858 GB, free: 45.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001116/1.425, allocations: 2.569 MB / 0.8883 GB, free: 42.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.425, allocations: 0 / 0.8883 GB, free: 42.95 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001735/1.427, allocations: 1.387 MB / 0.8896 GB, free: 41.53 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/1.427, allocations: 108.7 kB / 0.8897 GB, free: 41.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.034e-05/1.427, allocations: 14.5 kB / 0.8897 GB, free: 41.39 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003095/1.427, allocations: 27.91 kB / 0.8898 GB, free: 41.37 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.771e-05/1.428, allocations: 39.94 kB / 0.8898 GB, free: 41.33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/1.428, allocations: 16.05 kB / 0.8898 GB, free: 41.31 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001923/1.428, allocations: 227.1 kB / 0.89 GB, free: 41.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.21e-07/1.428, allocations: 0 / 0.89 GB, free: 41.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01004/1.438, allocations: 3.516 MB / 0.8935 GB, free: 38.03 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$cse8.phase,$cse9.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01838/1.456, allocations: 4.781 MB / 0.8981 GB, free: 33.78 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002538/1.459, allocations: 1.047 MB / 0.8992 GB, free: 32.71 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.782e-06/1.459, allocations: 4 kB / 0.8992 GB, free: 32.7 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007961/1.46, allocations: 0.511 MB / 0.8997 GB, free: 32.18 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001902/1.462, allocations: 405.4 kB / 0.9001 GB, free: 31.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/1.463, allocations: 1.17 MB / 0.9012 GB, free: 30.59 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/1.463, allocations: 0.8487 MB / 0.902 GB, free: 29.71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003894/1.464, allocations: 138.1 kB / 0.9022 GB, free: 29.59 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.27e-05/1.464, allocations: 43.44 kB / 0.9022 GB, free: 29.54 MB / 0.4981 GB Notification: Performance of SimCode: time 7.11e-07/1.464, allocations: 0 / 0.9022 GB, free: 29.54 MB / 0.4981 GB Notification: Performance of Templates: time 0.2919/1.756, allocations: 126.7 MB / 1.026 GB, free: 137.3 MB / 0.4981 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)