Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.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: "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006813/0.006813, allocations: 103 kB / 15.74 MB, free: 6.496 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.001692/0.001692, allocations: 192.9 kB / 16.68 MB, free: 6.375 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.284/1.284, allocations: 205.1 MB / 222.6 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04812/0.04812, allocations: 9.106 MB / 279 MB, free: 12.12 MB / 238.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.002008/0.002008, allocations: 75.89 kB / 387 MB, free: 8.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2267/0.2287, allocations: 48.16 MB / 435.2 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.1247/0.3535, allocations: 128.1 MB / 0.5501 GB, free: 208 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2994/0.6529, allocations: 110.1 MB / 0.6576 GB, free: 316 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005037/0.6534, allocations: 9.781 kB / 0.6576 GB, free: 312 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002494/0.656, allocations: 1.275 MB / 0.6589 GB, free: 304 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002834/0.6588, allocations: 1.546 MB / 0.6604 GB, free: 256 kB / 478.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.06554/0.7244, allocations: 28.68 MB / 0.6884 GB, free: 8.129 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001703/0.7261, allocations: 1.328 MB / 0.6897 GB, free: 7.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002335/0.7263, allocations: 132 kB / 0.6898 GB, free: 7.062 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01396/0.7403, allocations: 8.623 MB / 0.6982 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004559/0.7408, allocations: 361.2 kB / 0.6986 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.75e-05/0.7409, allocations: 44 kB / 0.6986 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05729/0.7982, allocations: 33.67 MB / 0.7315 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000224/0.7984, allocations: 114.4 kB / 0.7316 GB, free: 2.219 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004694/0.7989, allocations: 306.6 kB / 0.7319 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03813/0.837, allocations: 14.17 MB / 0.7457 GB, free: 4.832 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.8371, allocations: 0 / 0.7457 GB, free: 4.832 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.884e-06/0.8371, allocations: 0 / 0.7457 GB, free: 4.832 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.373e-06/0.8371, allocations: 0 / 0.7457 GB, free: 4.832 MB / 0.5294 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.005515/0.8426, allocations: 2.677 MB / 0.7483 GB, free: 2.109 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.8427, allocations: 12.03 kB / 0.7484 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.113e-05/0.8428, allocations: 90.45 kB / 0.7484 GB, free: 2 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005693/0.8433, allocations: 95.62 kB / 0.7485 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004806/0.8438, allocations: 342.5 kB / 0.7489 GB, free: 1.535 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.528e-05/0.8439, allocations: 32.22 kB / 0.7489 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.591e-05/0.8439, allocations: 32 kB / 0.7489 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.8452, allocations: 0.6049 MB / 0.7495 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.8452, allocations: 0 / 0.7495 GB, free: 0.8516 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/0.8453, allocations: 16 kB / 0.7495 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.8453, allocations: 10.34 kB / 0.7495 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.8466, allocations: 0.5493 MB / 0.7501 GB, free: 288 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002549/0.8492, allocations: 2.516 MB / 0.7525 GB, free: 13.55 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.8503, allocations: 499.8 kB / 0.753 GB, free: 13.06 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005565/0.8509, allocations: 330.3 kB / 0.7533 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3754/1.226, allocations: 139 MB / 0.8891 GB, free: 221.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/1.226, allocations: 41.16 kB / 0.8891 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.294e-06/1.226, allocations: 0 / 0.8891 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.004929/1.231, allocations: 2.335 MB / 0.8914 GB, free: 220.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.902e-05/1.231, allocations: 57.78 kB / 0.8914 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/1.232, allocations: 259.3 kB / 0.8917 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.408e-05/1.232, allocations: 31.83 kB / 0.8917 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.731e-05/1.232, allocations: 194.8 kB / 0.8919 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.528e-05/1.232, allocations: 282.3 kB / 0.8922 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/1.232, allocations: 93.3 kB / 0.8923 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.521e-05/1.232, allocations: 360.9 kB / 0.8926 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004207/1.232, allocations: 269.7 kB / 0.8929 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000452/1.233, allocations: 417.9 kB / 0.8933 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008575/1.234, allocations: 0.7013 MB / 0.8939 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/1.234, allocations: 4 kB / 0.8939 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001156/1.235, allocations: 0.8011 MB / 0.8947 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/1.235, allocations: 4 kB / 0.8947 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/1.235, allocations: 4 kB / 0.8947 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002052/1.235, allocations: 69.48 kB / 0.8948 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005275/1.236, allocations: 119.9 kB / 0.8949 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06012/1.296, allocations: 19.87 MB / 0.9143 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003103/1.296, allocations: 31.98 kB / 0.9144 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/1.296, allocations: 26.3 kB / 0.9144 GB, free: 197.1 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0001688/1.296, allocations: 186.6 kB / 0.9146 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.135e-05/1.296, allocations: 43.72 kB / 0.9146 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/1.298, allocations: 1.587 MB / 0.9161 GB, free: 195.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/1.298, allocations: 12 kB / 0.9162 GB, free: 195.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/1.298, allocations: 4 kB / 0.9162 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001123/1.299, allocations: 1.172 MB / 0.9173 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/1.301, allocations: 1.643 MB / 0.9189 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/1.301, allocations: 0 / 0.9189 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/1.301, allocations: 75.88 kB / 0.919 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002149/1.301, allocations: 109.6 kB / 0.9191 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/1.301, allocations: 12 kB / 0.9191 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008146/1.302, allocations: 1.991 MB / 0.921 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/1.302, allocations: 0 / 0.921 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/1.304, allocations: 1.258 MB / 0.9223 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.531e-05/1.304, allocations: 123.3 kB / 0.9224 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.215e-05/1.304, allocations: 15.95 kB / 0.9224 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/1.304, allocations: 23.97 kB / 0.9224 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.29e-05/1.304, allocations: 47.94 kB / 0.9225 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/1.304, allocations: 16 kB / 0.9225 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001696/1.304, allocations: 239 kB / 0.9227 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.304, allocations: 4 kB / 0.9227 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006668/1.311, allocations: 3.575 MB / 0.9262 GB, free: 185.1 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($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 (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01615/1.327, allocations: 6.264 MB / 0.9323 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001844/1.329, allocations: 1.007 MB / 0.9333 GB, free: 178.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.329, allocations: 4 kB / 0.9333 GB, free: 178.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007183/1.33, allocations: 0.4916 MB / 0.9338 GB, free: 177.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001753/1.332, allocations: 400.5 kB / 0.9342 GB, free: 177.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/1.342, allocations: 6.363 MB / 0.9404 GB, free: 170.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/1.342, allocations: 0.8486 MB / 0.9412 GB, free: 169.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003679/1.343, allocations: 154.1 kB / 0.9414 GB, free: 169.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/1.343, allocations: 167.4 kB / 0.9415 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of SimCode: time 6.41e-07/1.343, allocations: 0 / 0.9415 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.83/3.173, allocations: 132.5 MB / 1.071 GB, free: 36.88 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.57/24.74, allocations: 20.45 kB / 1.071 GB, free: 36.86 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)