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.00818/0.00818, allocations: 102.8 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.001856/0.001856, allocations: 194 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.546/1.546, allocations: 205.1 MB / 222.6 MB, free: 4.559 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05382/0.05382, allocations: 9.096 MB / 279 MB, free: 12.11 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.00311/0.003111, allocations: 74.56 kB / 387 MB, free: 8.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3026, 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.151/0.4537, allocations: 128.1 MB / 0.5501 GB, free: 184 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.383/0.8367, allocations: 110.1 MB / 0.6576 GB, free: 328 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005129/0.8373, allocations: 7 kB / 0.6576 GB, free: 328 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002785/0.8401, allocations: 1.269 MB / 0.6589 GB, free: 320 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003291/0.8434, allocations: 1.55 MB / 0.6604 GB, free: 272 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.07749/0.9209, allocations: 28.69 MB / 0.6884 GB, free: 8.109 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001881/0.9228, allocations: 1.322 MB / 0.6897 GB, free: 7.145 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002505/0.9231, allocations: 132.3 kB / 0.6898 GB, free: 7.043 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01605/0.9391, allocations: 8.619 MB / 0.6982 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005965/0.9398, allocations: 362.2 kB / 0.6986 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.023e-05/0.9399, allocations: 44 kB / 0.6986 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06687/1.007, allocations: 33.67 MB / 0.7315 GB, free: 2.293 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002452/1.007, allocations: 116.1 kB / 0.7316 GB, free: 2.184 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000561/1.008, allocations: 306.6 kB / 0.7319 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.05026/1.058, allocations: 14.16 MB / 0.7457 GB, free: 4.801 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/1.058, allocations: 0 / 0.7457 GB, free: 4.801 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.894e-06/1.058, allocations: 0 / 0.7457 GB, free: 4.801 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.023e-05/1.058, allocations: 8 kB / 0.7457 GB, free: 4.793 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.006473/1.064, allocations: 2.676 MB / 0.7484 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/1.064, allocations: 8.031 kB / 0.7484 GB, free: 2.062 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.767e-05/1.065, allocations: 86.52 kB / 0.7484 GB, free: 1.969 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000625/1.065, allocations: 91.62 kB / 0.7485 GB, free: 1.879 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000502/1.066, allocations: 346.2 kB / 0.7489 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.379e-05/1.066, allocations: 28.66 kB / 0.7489 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.79e-05/1.066, allocations: 32 kB / 0.7489 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/1.067, allocations: 0.611 MB / 0.7495 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/1.067, allocations: 0 / 0.7495 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.049e-05/1.067, allocations: 16 kB / 0.7495 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.272e-05/1.067, allocations: 15.91 kB / 0.7495 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/1.069, allocations: 0.5415 MB / 0.7501 GB, free: 260 kB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002802/1.072, allocations: 2.513 MB / 0.7525 GB, free: 13.52 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/1.073, allocations: 0.4948 MB / 0.753 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005927/1.073, allocations: 334.3 kB / 0.7533 GB, free: 12.7 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4198/1.493, allocations: 139 MB / 0.8891 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/1.493, allocations: 37.91 kB / 0.8891 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.076e-06/1.493, allocations: 0 / 0.8891 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.00537/1.499, allocations: 2.33 MB / 0.8914 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.187e-05/1.499, allocations: 59.84 kB / 0.8914 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002205/1.499, allocations: 258.3 kB / 0.8917 GB, free: 220.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/1.499, allocations: 32.86 kB / 0.8917 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.095e-05/1.499, allocations: 197.5 kB / 0.8919 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/1.499, allocations: 272.5 kB / 0.8922 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/1.499, allocations: 92.8 kB / 0.8923 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.982e-05/1.499, allocations: 361.8 kB / 0.8926 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004504/1.5, allocations: 273.6 kB / 0.8929 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005034/1.5, allocations: 408.3 kB / 0.8932 GB, free: 219 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009286/1.501, allocations: 0.6987 MB / 0.8939 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/1.501, allocations: 8.875 kB / 0.8939 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001248/1.503, allocations: 0.8015 MB / 0.8947 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/1.503, allocations: 4 kB / 0.8947 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/1.503, allocations: 4 kB / 0.8947 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002404/1.503, allocations: 63.23 kB / 0.8948 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006006/1.503, allocations: 131.2 kB / 0.8949 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06621/1.57, allocations: 19.88 MB / 0.9143 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004165/1.57, allocations: 31.98 kB / 0.9144 GB, free: 197 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.967e-05/1.57, allocations: 19.98 kB / 0.9144 GB, free: 197 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.0002265/1.57, allocations: 190.9 kB / 0.9146 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.689e-05/1.571, allocations: 43.72 kB / 0.9146 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001605/1.572, allocations: 1.586 MB / 0.9161 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.406e-05/1.572, allocations: 10.89 kB / 0.9162 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/1.572, allocations: 8 kB / 0.9162 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001186/1.573, allocations: 1.172 MB / 0.9173 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/1.575, allocations: 1.639 MB / 0.9189 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/1.575, allocations: 2 kB / 0.9189 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003145/1.576, allocations: 79.88 kB / 0.919 GB, free: 192.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002387/1.576, allocations: 105.7 kB / 0.9191 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.274e-05/1.576, allocations: 8 kB / 0.9191 GB, free: 192 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008714/1.577, allocations: 1.996 MB / 0.921 GB, free: 189.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/1.577, allocations: 0 / 0.921 GB, free: 189.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001612/1.578, allocations: 1.254 MB / 0.9223 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.965e-05/1.578, allocations: 123 kB / 0.9224 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/1.578, allocations: 15.95 kB / 0.9224 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003048/1.579, allocations: 27.97 kB / 0.9224 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.417e-05/1.579, allocations: 43.88 kB / 0.9225 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.41e-05/1.579, allocations: 20.06 kB / 0.9225 GB, free: 188.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001877/1.579, allocations: 243 kB / 0.9227 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/1.579, allocations: 0 / 0.9227 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007301/1.586, allocations: 3.574 MB / 0.9262 GB, free: 184.9 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.01781/1.604, allocations: 6.266 MB / 0.9323 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002171/1.606, allocations: 1.006 MB / 0.9333 GB, free: 178 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/1.607, allocations: 0.6875 kB / 0.9333 GB, free: 178 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007943/1.607, allocations: 0.4954 MB / 0.9338 GB, free: 177.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/1.609, allocations: 387.5 kB / 0.9342 GB, free: 177.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01328/1.623, allocations: 6.374 MB / 0.9404 GB, free: 170.6 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/1.623, allocations: 0.8525 MB / 0.9412 GB, free: 169.7 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004156/1.623, allocations: 148.3 kB / 0.9414 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001874/1.623, allocations: 167.3 kB / 0.9415 GB, free: 169.4 MB / 0.6075 GB Notification: Performance of SimCode: time 6.72e-07/1.623, allocations: 3.938 kB / 0.9415 GB, free: 169.4 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1726/1.796, allocations: 132.5 MB / 1.071 GB, free: 36.72 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.52/19.31, allocations: 20.39 kB / 1.071 GB, free: 36.7 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_HeliumTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel.pipe 2>&1)