Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.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.PentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel",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.007835/0.007836, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.002003/0.002003, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.49/1.49, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05243/0.05243, allocations: 9.091 MB / 279 MB, free: 12.08 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.002125/0.002125, allocations: 67.91 kB / 387 MB, free: 8.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2608, allocations: 48.15 MB / 435.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.1479/0.4088, allocations: 128.7 MB / 0.5507 GB, free: 15.64 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3313/0.7401, allocations: 111.2 MB / 0.6592 GB, free: 252 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004909/0.7407, allocations: 5.062 kB / 0.6592 GB, free: 252 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.7433, allocations: 1.382 MB / 0.6606 GB, free: 240 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00279/0.7461, allocations: 1.666 MB / 0.6622 GB, free: 192 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.06872/0.8148, allocations: 29.33 MB / 0.6908 GB, free: 7.195 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001822/0.8166, allocations: 1.419 MB / 0.6922 GB, free: 6.18 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.8169, allocations: 131.2 kB / 0.6923 GB, free: 6.078 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009336/0.8178, allocations: 0.5938 MB / 0.6929 GB, free: 5.637 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000486/0.8183, allocations: 384.1 kB / 0.6933 GB, free: 5.336 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.005e-05/0.8184, allocations: 40 kB / 0.6933 GB, free: 5.297 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06368/0.8821, allocations: 35.01 MB / 0.7275 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003127/0.8825, allocations: 124.9 kB / 0.7276 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000744/0.8832, allocations: 302 kB / 0.7279 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04164/0.9249, allocations: 13.97 MB / 0.7416 GB, free: 9.484 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.9249, allocations: 0 / 0.7416 GB, free: 9.484 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.844e-06/0.9249, allocations: 0 / 0.7416 GB, free: 9.484 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.9249, allocations: 0 / 0.7416 GB, free: 9.484 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.006635/0.9316, allocations: 2.68 MB / 0.7442 GB, free: 6.758 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.9316, allocations: 12.03 kB / 0.7442 GB, free: 6.746 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001037/0.9317, allocations: 86.45 kB / 0.7443 GB, free: 6.652 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006851/0.9324, allocations: 87.62 kB / 0.7444 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000564/0.933, allocations: 350.4 kB / 0.7447 GB, free: 6.188 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.9331, allocations: 28.59 kB / 0.7447 GB, free: 6.16 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.842e-05/0.9331, allocations: 36 kB / 0.7448 GB, free: 6.125 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001381/0.9345, allocations: 0.6035 MB / 0.7453 GB, free: 5.504 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.9345, allocations: 3.953 kB / 0.7453 GB, free: 5.5 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.451e-05/0.9346, allocations: 15.56 kB / 0.7454 GB, free: 5.488 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.137e-05/0.9346, allocations: 15.83 kB / 0.7454 GB, free: 5.477 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.936, allocations: 0.5493 MB / 0.7459 GB, free: 4.93 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002877/0.9389, allocations: 2.544 MB / 0.7484 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001257/0.9402, allocations: 0.4947 MB / 0.7489 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006198/0.9408, allocations: 349.4 kB / 0.7492 GB, free: 1.316 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4801/1.421, allocations: 139 MB / 0.8849 GB, free: 71.45 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.825e-05/1.421, allocations: 37.28 kB / 0.885 GB, free: 71.41 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.406e-06/1.421, allocations: 0 / 0.885 GB, free: 71.41 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.00572/1.427, allocations: 2.333 MB / 0.8872 GB, free: 70.93 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/1.427, allocations: 59.94 kB / 0.8873 GB, free: 70.87 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002365/1.427, allocations: 256.7 kB / 0.8875 GB, free: 70.76 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.966e-05/1.427, allocations: 32.58 kB / 0.8876 GB, free: 70.73 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/1.427, allocations: 184.8 kB / 0.8878 GB, free: 70.61 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001526/1.427, allocations: 278 kB / 0.888 GB, free: 70.46 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/1.428, allocations: 104.2 kB / 0.8881 GB, free: 70.45 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.5e-05/1.428, allocations: 354.2 kB / 0.8885 GB, free: 70.13 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004647/1.428, allocations: 270.5 kB / 0.8887 GB, free: 70.12 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005321/1.429, allocations: 399.1 kB / 0.8891 GB, free: 70 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009609/1.43, allocations: 0.6985 MB / 0.8898 GB, free: 69.85 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.43, allocations: 0 / 0.8898 GB, free: 69.85 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001328/1.431, allocations: 0.7976 MB / 0.8906 GB, free: 69.75 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/1.431, allocations: 5.812 kB / 0.8906 GB, free: 69.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/1.431, allocations: 3.781 kB / 0.8906 GB, free: 69.75 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002399/1.431, allocations: 61.47 kB / 0.8906 GB, free: 69.73 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004038/1.432, allocations: 105.3 kB / 0.8907 GB, free: 69.73 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06645/1.498, allocations: 16.6 MB / 0.9069 GB, free: 63.55 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004192/1.499, allocations: 31.45 kB / 0.907 GB, free: 63.55 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.229e-05/1.499, allocations: 19.34 kB / 0.907 GB, free: 63.55 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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): 43 * 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 prepare postOptimizeDAE: time 0.0002368/1.499, allocations: 196.1 kB / 0.9072 GB, free: 63.43 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.919e-05/1.499, allocations: 39.33 kB / 0.9072 GB, free: 63.41 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001681/1.501, allocations: 1.548 MB / 0.9087 GB, free: 63.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/1.501, allocations: 14.11 kB / 0.9087 GB, free: 63.16 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/1.501, allocations: 4 kB / 0.9087 GB, free: 63.16 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001159/1.502, allocations: 1.132 MB / 0.9098 GB, free: 62.68 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/1.504, allocations: 1.603 MB / 0.9114 GB, free: 62.33 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/1.504, allocations: 0 / 0.9114 GB, free: 62.33 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003359/1.504, allocations: 79.28 kB / 0.9115 GB, free: 62.33 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001959/1.504, allocations: 45.61 kB / 0.9115 GB, free: 62.32 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.865e-05/1.504, allocations: 18.14 kB / 0.9115 GB, free: 62.32 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000682/1.505, allocations: 1.422 MB / 0.9129 GB, free: 60.96 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/1.505, allocations: 3.766 kB / 0.9129 GB, free: 60.96 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/1.507, allocations: 1.178 MB / 0.9141 GB, free: 60.75 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.253e-05/1.507, allocations: 115.1 kB / 0.9142 GB, free: 60.63 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/1.507, allocations: 15.31 kB / 0.9142 GB, free: 60.63 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003037/1.507, allocations: 27.5 kB / 0.9142 GB, free: 60.63 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.524e-05/1.507, allocations: 43.88 kB / 0.9143 GB, free: 60.63 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.373e-05/1.507, allocations: 13.17 kB / 0.9143 GB, free: 60.63 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001868/1.507, allocations: 240.1 kB / 0.9145 GB, free: 60.54 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.21e-07/1.507, allocations: 6.094 kB / 0.9145 GB, free: 60.54 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007074/1.515, allocations: 3.573 MB / 0.918 GB, free: 59.92 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 (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01779/1.532, allocations: 6.119 MB / 0.924 GB, free: 55.38 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001827/1.534, allocations: 0.9554 MB / 0.9249 GB, free: 54.76 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/1.534, allocations: 3.438 kB / 0.9249 GB, free: 54.76 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007764/1.535, allocations: 0.4929 MB / 0.9254 GB, free: 54.44 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002018/1.537, allocations: 408.1 kB / 0.9258 GB, free: 54.18 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01095/1.548, allocations: 6.339 MB / 0.932 GB, free: 49.31 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002114/1.548, allocations: 0.8483 MB / 0.9328 GB, free: 48.49 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004046/1.549, allocations: 162.6 kB / 0.933 GB, free: 48.38 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/1.549, allocations: 169.8 kB / 0.9331 GB, free: 48.34 MB / 0.6075 GB Notification: Performance of SimCode: time 5.01e-07/1.549, allocations: 5.922 kB / 0.9331 GB, free: 48.34 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3682/1.917, allocations: 132.3 MB / 1.062 GB, free: 337.3 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.79/18.71, allocations: 9.453 kB / 1.062 GB, free: 337.3 MB / 0.67 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)