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.001398/0.001398, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 194.9 kB / 16.53 MB, free: 6.391 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.631/1.631, allocations: 205.1 MB / 222.4 MB, free: 4.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04886/0.04886, allocations: 9.097 MB / 278.9 MB, free: 12.18 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.001417/0.001417, allocations: 71.89 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1088, allocations: 48.16 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.HeliumTestModel): time 0.3815/0.4904, allocations: 128.1 MB / 0.5023 GB, free: 5.664 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4587/0.9491, allocations: 110.1 MB / 0.6099 GB, free: 340 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008064/0.95, allocations: 8.812 kB / 0.6099 GB, free: 340 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003726/0.9537, allocations: 1.278 MB / 0.6111 GB, free: 328 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00387/0.9576, allocations: 1.536 MB / 0.6126 GB, free: 312 kB / 446.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.07832/1.036, allocations: 28.68 MB / 0.6406 GB, free: 14.19 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00173/1.038, allocations: 1.325 MB / 0.6419 GB, free: 13.89 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002395/1.038, allocations: 128.1 kB / 0.642 GB, free: 13.86 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01483/1.053, allocations: 8.631 MB / 0.6505 GB, free: 10.9 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004859/1.053, allocations: 361 kB / 0.6508 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.46e-05/1.053, allocations: 42.56 kB / 0.6508 GB, free: 10.84 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06838/1.122, allocations: 32.19 MB / 0.6823 GB, free: 4.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002918/1.122, allocations: 122.2 kB / 0.6824 GB, free: 4.406 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006617/1.123, allocations: 309.4 kB / 0.6827 GB, free: 4.105 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0498/1.173, allocations: 14.13 MB / 0.6965 GB, free: 7.07 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/1.173, allocations: 0 / 0.6965 GB, free: 7.07 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.774e-06/1.173, allocations: 4 kB / 0.6965 GB, free: 7.066 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/1.173, allocations: 0 / 0.6965 GB, free: 7.066 MB / 494.1 MB 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.008219/1.181, allocations: 2.57 MB / 0.699 GB, free: 4.445 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.922e-05/1.181, allocations: 12.02 kB / 0.699 GB, free: 4.434 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.293e-05/1.181, allocations: 86.52 kB / 0.6991 GB, free: 4.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006422/1.182, allocations: 83.41 kB / 0.6992 GB, free: 4.258 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000439/1.182, allocations: 337.2 kB / 0.6995 GB, free: 3.895 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/1.182, allocations: 28.66 kB / 0.6995 GB, free: 3.867 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.768e-05/1.182, allocations: 36 kB / 0.6996 GB, free: 3.832 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001368/1.184, allocations: 0.5963 MB / 0.7001 GB, free: 3.219 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/1.184, allocations: 7.891 kB / 0.7002 GB, free: 3.211 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.224e-05/1.184, allocations: 16 kB / 0.7002 GB, free: 3.195 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.097e-05/1.184, allocations: 21.62 kB / 0.7002 GB, free: 3.18 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/1.185, allocations: 0.552 MB / 0.7007 GB, free: 2.633 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002643/1.188, allocations: 2.507 MB / 0.7032 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/1.189, allocations: 0.5044 MB / 0.7037 GB, free: 15.41 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000525/1.189, allocations: 334.3 kB / 0.704 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.43/1.619, allocations: 139 MB / 0.8397 GB, free: 279.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/1.62, allocations: 42.8 kB / 0.8398 GB, free: 279.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.855e-06/1.62, allocations: 0 / 0.8398 GB, free: 279.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.00732/1.627, allocations: 2.33 MB / 0.842 GB, free: 278.2 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.501e-05/1.627, allocations: 58.97 kB / 0.8421 GB, free: 278.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003165/1.627, allocations: 255.7 kB / 0.8423 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/1.627, allocations: 33.67 kB / 0.8424 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/1.627, allocations: 184.1 kB / 0.8425 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000192/1.628, allocations: 273.3 kB / 0.8428 GB, free: 277.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/1.628, allocations: 99.27 kB / 0.8429 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.739e-05/1.628, allocations: 350.1 kB / 0.8432 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006444/1.629, allocations: 271.6 kB / 0.8435 GB, free: 277 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007095/1.629, allocations: 405.9 kB / 0.8439 GB, free: 276.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/1.631, allocations: 0.705 MB / 0.8446 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/1.631, allocations: 0 / 0.8446 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001713/1.632, allocations: 0.8026 MB / 0.8453 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/1.633, allocations: 3.938 kB / 0.8453 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/1.633, allocations: 5.969 kB / 0.8454 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003134/1.633, allocations: 65.14 kB / 0.8454 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008588/1.634, allocations: 130.9 kB / 0.8455 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09673/1.73, allocations: 25.61 MB / 0.8706 GB, free: 253 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005468/1.731, allocations: 36.03 kB / 0.8706 GB, free: 252.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.287e-05/1.731, allocations: 19.94 kB / 0.8706 GB, free: 252.9 MB / 0.5919 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.0003434/1.732, allocations: 204.2 kB / 0.8708 GB, free: 252.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/1.732, allocations: 39.53 kB / 0.8708 GB, free: 252.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001954/1.734, allocations: 1.575 MB / 0.8724 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.462e-05/1.734, allocations: 15.58 kB / 0.8724 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.734, allocations: 0 / 0.8724 GB, free: 251 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001437/1.735, allocations: 1.181 MB / 0.8735 GB, free: 249.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/1.737, allocations: 1.634 MB / 0.8751 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/1.737, allocations: 4 kB / 0.8751 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003129/1.738, allocations: 79.88 kB / 0.8752 GB, free: 248 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002493/1.738, allocations: 101.7 kB / 0.8753 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/1.738, allocations: 15.98 kB / 0.8753 GB, free: 247.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009448/1.739, allocations: 1.999 MB / 0.8773 GB, free: 245.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/1.739, allocations: 0 / 0.8773 GB, free: 245.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001625/1.74, allocations: 1.249 MB / 0.8785 GB, free: 244.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.719e-05/1.741, allocations: 116.6 kB / 0.8786 GB, free: 244.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.038e-05/1.741, allocations: 15.84 kB / 0.8786 GB, free: 244.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/1.741, allocations: 23.98 kB / 0.8787 GB, free: 244.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.443e-05/1.741, allocations: 43.94 kB / 0.8787 GB, free: 244.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/1.741, allocations: 15.92 kB / 0.8787 GB, free: 244.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002045/1.741, allocations: 247 kB / 0.8789 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.41e-07/1.741, allocations: 0 / 0.8789 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007304/1.749, allocations: 3.182 MB / 0.8821 GB, free: 241.2 MB / 0.5919 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.01746/1.766, allocations: 5.793 MB / 0.8877 GB, free: 235.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002144/1.768, allocations: 1.001 MB / 0.8887 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/1.768, allocations: 0 / 0.8887 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007499/1.769, allocations: 0.5038 MB / 0.8892 GB, free: 234.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/1.771, allocations: 389.4 kB / 0.8896 GB, free: 233.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/1.787, allocations: 6.183 MB / 0.8956 GB, free: 227.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002478/1.787, allocations: 0.8486 MB / 0.8964 GB, free: 226.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004801/1.788, allocations: 141.1 kB / 0.8966 GB, free: 226.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/1.788, allocations: 179.4 kB / 0.8967 GB, free: 226.3 MB / 0.5919 GB Notification: Performance of SimCode: time 8.71e-07/1.788, allocations: 0 / 0.8967 GB, free: 226.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1633/1.951, allocations: 124.6 MB / 1.018 GB, free: 101.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.48/18.43, allocations: 0 / 1.018 GB, free: 101.4 MB / 0.5919 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)