Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel",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.005043/0.005043, allocations: 102.1 kB / 15.73 MB, free: 6.066 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.00128/0.00128, allocations: 193.5 kB / 16.68 MB, free: 5.973 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.497/1.497, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0518/0.0518, allocations: 9.099 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.002118/0.002118, allocations: 67.91 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2772, allocations: 48.15 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.1481/0.4253, allocations: 128.6 MB / 0.5506 GB, free: 15.74 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3509/0.7762, allocations: 111 MB / 0.659 GB, free: 276 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005813/0.7769, allocations: 8.562 kB / 0.659 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002738/0.7797, allocations: 1.369 MB / 0.6603 GB, free: 264 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002965/0.7826, allocations: 1.655 MB / 0.662 GB, free: 216 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.07101/0.8537, allocations: 29.24 MB / 0.6905 GB, free: 7.293 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001924/0.8556, allocations: 1.417 MB / 0.6919 GB, free: 6.273 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000254/0.8559, allocations: 124.8 kB / 0.692 GB, free: 6.18 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01667/0.8726, allocations: 10.48 MB / 0.7023 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005073/0.8731, allocations: 384.7 kB / 0.7026 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.129e-05/0.8732, allocations: 44 kB / 0.7027 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06417/0.9373, allocations: 34.53 MB / 0.7364 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002486/0.9376, allocations: 114.5 kB / 0.7365 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005152/0.9382, allocations: 309.9 kB / 0.7368 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04941/0.9876, allocations: 13.96 MB / 0.7504 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.9876, allocations: 0 / 0.7504 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9876, allocations: 0 / 0.7504 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.185e-06/0.9876, allocations: 0 / 0.7504 GB, free: 0.6289 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.006425/0.9941, allocations: 2.682 MB / 0.753 GB, free: 13.9 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.9941, allocations: 8.031 kB / 0.7531 GB, free: 13.89 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.9942, allocations: 86.52 kB / 0.7531 GB, free: 13.8 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006043/0.9949, allocations: 83.64 kB / 0.7532 GB, free: 13.71 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004664/0.9953, allocations: 343.6 kB / 0.7535 GB, free: 13.34 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5e-05/0.9954, allocations: 36.22 kB / 0.7536 GB, free: 13.31 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.535e-05/0.9955, allocations: 35.88 kB / 0.7536 GB, free: 13.28 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.9968, allocations: 0.601 MB / 0.7542 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.9968, allocations: 4 kB / 0.7542 GB, free: 12.65 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.29e-05/0.9969, allocations: 16 kB / 0.7542 GB, free: 12.64 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.307e-05/0.9969, allocations: 17.62 kB / 0.7542 GB, free: 12.62 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.9983, allocations: 0.5493 MB / 0.7548 GB, free: 12.08 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002821/1.001, allocations: 2.455 MB / 0.7572 GB, free: 9.418 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/1.002, allocations: 0.4979 MB / 0.7577 GB, free: 8.914 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005971/1.003, allocations: 334 kB / 0.758 GB, free: 8.586 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4167/1.42, allocations: 139 MB / 0.8937 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.452e-05/1.42, allocations: 36.38 kB / 0.8937 GB, free: 219 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.336e-06/1.42, allocations: 0 / 0.8937 GB, free: 219 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005434/1.425, allocations: 2.336 MB / 0.896 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.377e-05/1.425, allocations: 62.41 kB / 0.8961 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/1.426, allocations: 264.5 kB / 0.8963 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/1.426, allocations: 33.7 kB / 0.8964 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.764e-05/1.426, allocations: 194 kB / 0.8966 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001077/1.426, allocations: 275.1 kB / 0.8968 GB, free: 217 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/1.426, allocations: 102.1 kB / 0.8969 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.439e-05/1.426, allocations: 350.8 kB / 0.8972 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004309/1.426, allocations: 273.6 kB / 0.8975 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004574/1.427, allocations: 393 kB / 0.8979 GB, free: 215.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009091/1.428, allocations: 0.693 MB / 0.8986 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/1.428, allocations: 3.094 kB / 0.8986 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001247/1.429, allocations: 0.8025 MB / 0.8993 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/1.429, allocations: 8 kB / 0.8994 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/1.429, allocations: 0 / 0.8994 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002405/1.429, allocations: 64.02 kB / 0.8994 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000657/1.43, allocations: 137.8 kB / 0.8995 GB, free: 214.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06521/1.495, allocations: 18.44 MB / 0.9176 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/1.496, allocations: 23.97 kB / 0.9176 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/1.496, allocations: 23.94 kB / 0.9176 GB, free: 195.1 MB / 0.6075 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.0002324/1.496, allocations: 186.3 kB / 0.9178 GB, free: 194.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.642e-05/1.496, allocations: 51.7 kB / 0.9178 GB, free: 194.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/1.498, allocations: 1.708 MB / 0.9195 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.429e-05/1.498, allocations: 19.92 kB / 0.9195 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/1.498, allocations: 0 / 0.9195 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00126/1.499, allocations: 1.292 MB / 0.9208 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/1.501, allocations: 1.745 MB / 0.9225 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.501, allocations: 3.938 kB / 0.9225 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003083/1.501, allocations: 77.94 kB / 0.9226 GB, free: 189.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002817/1.501, allocations: 170.3 kB / 0.9227 GB, free: 189.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/1.501, allocations: 11.94 kB / 0.9227 GB, free: 189.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/1.503, allocations: 2.564 MB / 0.9252 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/1.503, allocations: 0 / 0.9252 GB, free: 186.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/1.504, allocations: 1.382 MB / 0.9266 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.548e-05/1.504, allocations: 119 kB / 0.9267 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/1.504, allocations: 8 kB / 0.9267 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002902/1.505, allocations: 31.97 kB / 0.9267 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.669e-05/1.505, allocations: 39.94 kB / 0.9268 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.547e-05/1.505, allocations: 15.98 kB / 0.9268 GB, free: 185.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001636/1.505, allocations: 223.1 kB / 0.927 GB, free: 185 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.505, allocations: 0 / 0.927 GB, free: 185 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007147/1.512, allocations: 3.576 MB / 0.9305 GB, free: 181.9 MB / 0.6075 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.01771/1.53, allocations: 6.19 MB / 0.9365 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002148/1.532, allocations: 1.056 MB / 0.9376 GB, free: 175.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/1.532, allocations: 0 / 0.9376 GB, free: 175.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006804/1.533, allocations: 0.5035 MB / 0.9381 GB, free: 174.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/1.535, allocations: 395.8 kB / 0.9384 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/1.545, allocations: 6.293 MB / 0.9446 GB, free: 167.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/1.545, allocations: 0.8565 MB / 0.9454 GB, free: 166.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003812/1.546, allocations: 138.1 kB / 0.9456 GB, free: 166.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/1.546, allocations: 163.4 kB / 0.9457 GB, free: 166.6 MB / 0.6075 GB Notification: Performance of SimCode: time 8.12e-07/1.546, allocations: 4 kB / 0.9457 GB, free: 166.6 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2125/1.758, allocations: 133.1 MB / 1.076 GB, free: 33.25 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.73/18.49, allocations: 15.84 kB / 1.076 GB, free: 33.23 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsopentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe 2>&1)