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.001322/0.001322, 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.002023/0.002023, allocations: 194.8 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.632/1.632, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05038/0.05038, allocations: 9.104 MB / 278.9 MB, free: 12.19 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.001845/0.001845, allocations: 79.81 kB / 338.1 MB, free: 25.36 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.109, allocations: 48.16 MB / 386.3 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.3869/0.4959, allocations: 128.6 MB / 0.5028 GB, free: 5.238 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3971/0.8931, allocations: 111.1 MB / 0.6112 GB, free: 288 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006136/0.8937, allocations: 7.812 kB / 0.6112 GB, free: 288 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00373/0.8975, allocations: 1.369 MB / 0.6126 GB, free: 280 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003842/0.9014, allocations: 1.644 MB / 0.6142 GB, free: 260 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.07403/0.9754, allocations: 29.23 MB / 0.6427 GB, free: 13.75 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.00196/0.9774, allocations: 1.406 MB / 0.6441 GB, free: 13.42 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003339/0.9777, allocations: 123.4 kB / 0.6442 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01786/0.9956, allocations: 10.5 MB / 0.6545 GB, free: 9.555 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008953/0.9965, allocations: 379.7 kB / 0.6548 GB, free: 9.309 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001743/0.9967, allocations: 44 kB / 0.6549 GB, free: 9.266 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06508/1.062, allocations: 33.05 MB / 0.6872 GB, free: 316 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002791/1.062, allocations: 114.1 kB / 0.6873 GB, free: 204 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005703/1.063, allocations: 313.9 kB / 0.6876 GB, free: 15.89 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04965/1.112, allocations: 13.92 MB / 0.7012 GB, free: 3.055 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.193e-05/1.112, allocations: 3.938 kB / 0.7012 GB, free: 3.051 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.968e-06/1.112, allocations: 4 kB / 0.7012 GB, free: 3.047 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/1.112, allocations: 0 / 0.7012 GB, free: 3.047 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.007609/1.12, allocations: 2.566 MB / 0.7037 GB, free: 448 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/1.12, allocations: 8.031 kB / 0.7037 GB, free: 440 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.124e-05/1.12, allocations: 91.52 kB / 0.7038 GB, free: 340 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006556/1.121, allocations: 87.3 kB / 0.7039 GB, free: 252 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/1.121, allocations: 333.9 kB / 0.7042 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.956e-05/1.121, allocations: 28.66 kB / 0.7042 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.906e-05/1.122, allocations: 39.69 kB / 0.7042 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/1.123, allocations: 0.5961 MB / 0.7048 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/1.123, allocations: 0 / 0.7048 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/1.123, allocations: 16 kB / 0.7048 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.477e-05/1.123, allocations: 27.02 kB / 0.7049 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001324/1.124, allocations: 0.5482 MB / 0.7054 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002832/1.127, allocations: 2.465 MB / 0.7078 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001128/1.128, allocations: 495.2 kB / 0.7083 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000561/1.129, allocations: 342 kB / 0.7086 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.513/1.642, allocations: 139 MB / 0.8443 GB, free: 124.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.535e-05/1.642, allocations: 36.5 kB / 0.8444 GB, free: 124.5 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 3.647e-06/1.642, allocations: 2.484 kB / 0.8444 GB, free: 124.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.006542/1.649, allocations: 2.346 MB / 0.8467 GB, free: 124 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.936e-05/1.649, allocations: 60.45 kB / 0.8467 GB, free: 124 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000286/1.649, allocations: 253.8 kB / 0.847 GB, free: 123.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.076e-05/1.649, allocations: 35.5 kB / 0.847 GB, free: 123.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/1.649, allocations: 193.8 kB / 0.8472 GB, free: 123.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001894/1.649, allocations: 257.5 kB / 0.8474 GB, free: 123.6 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001601/1.649, allocations: 103.5 kB / 0.8475 GB, free: 123.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.671e-05/1.65, allocations: 359.4 kB / 0.8479 GB, free: 123.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004761/1.65, allocations: 277.4 kB / 0.8481 GB, free: 123.2 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005719/1.651, allocations: 389.1 kB / 0.8485 GB, free: 123.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/1.652, allocations: 0.6983 MB / 0.8492 GB, free: 123 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/1.652, allocations: 0 / 0.8492 GB, free: 123 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001434/1.653, allocations: 0.797 MB / 0.85 GB, free: 122.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/1.653, allocations: 6.844 kB / 0.85 GB, free: 122.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/1.653, allocations: 0 / 0.85 GB, free: 122.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002568/1.654, allocations: 64.67 kB / 0.85 GB, free: 122.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007155/1.654, allocations: 139.8 kB / 0.8502 GB, free: 122.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09478/1.749, allocations: 24.2 MB / 0.8738 GB, free: 112.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/1.75, allocations: 25.94 kB / 0.8738 GB, free: 112.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.081e-05/1.75, allocations: 23.42 kB / 0.8738 GB, free: 112.1 MB / 0.5919 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.0003396/1.75, allocations: 196.3 kB / 0.874 GB, free: 112 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/1.75, allocations: 40.84 kB / 0.8741 GB, free: 111.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/1.752, allocations: 1.712 MB / 0.8757 GB, free: 111.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/1.752, allocations: 14.59 kB / 0.8757 GB, free: 111.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/1.752, allocations: 0 / 0.8757 GB, free: 111.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001377/1.753, allocations: 1.309 MB / 0.877 GB, free: 111.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/1.756, allocations: 1.743 MB / 0.8787 GB, free: 110.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/1.756, allocations: 0 / 0.8787 GB, free: 110.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003207/1.756, allocations: 78.81 kB / 0.8788 GB, free: 110.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003256/1.756, allocations: 165.9 kB / 0.879 GB, free: 110.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.802e-05/1.756, allocations: 10.69 kB / 0.879 GB, free: 110.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/1.758, allocations: 2.569 MB / 0.8815 GB, free: 108.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.758, allocations: 3.938 kB / 0.8815 GB, free: 108.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/1.76, allocations: 1.378 MB / 0.8828 GB, free: 108.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/1.76, allocations: 123 kB / 0.8829 GB, free: 108 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.483e-05/1.76, allocations: 4.625 kB / 0.8829 GB, free: 108 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/1.76, allocations: 33.48 kB / 0.883 GB, free: 108 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.735e-05/1.76, allocations: 44.27 kB / 0.883 GB, free: 108 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.522e-05/1.76, allocations: 19.44 kB / 0.883 GB, free: 108 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.000194/1.76, allocations: 218.1 kB / 0.8832 GB, free: 107.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.6e-07/1.76, allocations: 4.062 kB / 0.8833 GB, free: 107.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008874/1.769, allocations: 3.186 MB / 0.8864 GB, free: 107.8 MB / 0.5919 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.01704/1.786, allocations: 5.698 MB / 0.8919 GB, free: 104.4 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002622/1.789, allocations: 1.037 MB / 0.8929 GB, free: 103.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.789, allocations: 7.312 kB / 0.8929 GB, free: 103.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008011/1.79, allocations: 0.5113 MB / 0.8934 GB, free: 103.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001977/1.792, allocations: 390.9 kB / 0.8938 GB, free: 103.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/1.806, allocations: 6.11 MB / 0.8998 GB, free: 98.46 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/1.806, allocations: 0.8639 MB / 0.9006 GB, free: 97.63 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005517/1.807, allocations: 131.7 kB / 0.9008 GB, free: 97.54 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/1.807, allocations: 173.7 kB / 0.9009 GB, free: 97.5 MB / 0.5919 GB Notification: Performance of SimCode: time 9.92e-07/1.807, allocations: 0 / 0.9009 GB, free: 97.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.426/2.233, allocations: 125.2 MB / 1.023 GB, free: 228.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.61/17.84, allocations: 16.44 kB / 1.023 GB, free: 228.4 MB / 0.5919 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)