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.001271/0.001271, allocations: 108 kB / 15.61 MB, free: 152 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.00174/0.00174, allocations: 193.7 kB / 16.53 MB, free: 6.664 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.466/1.466, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04826/0.04826, allocations: 9.093 MB / 278.9 MB, free: 12.15 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.001673/0.001673, allocations: 80.36 kB / 338.1 MB, free: 25.31 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.09101, allocations: 48.15 MB / 386.3 MB, free: 9.121 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.2987/0.3897, allocations: 128.7 MB / 0.5029 GB, free: 5.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.35/0.7397, allocations: 111.2 MB / 0.6114 GB, free: 288 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005086/0.7403, allocations: 6.844 kB / 0.6115 GB, free: 288 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00291/0.7432, allocations: 1.379 MB / 0.6128 GB, free: 280 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003123/0.7464, allocations: 1.657 MB / 0.6144 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.06774/0.8141, allocations: 29.32 MB / 0.6431 GB, free: 13.68 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001755/0.8159, allocations: 1.419 MB / 0.6444 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.8162, allocations: 122.6 kB / 0.6446 GB, free: 13.36 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009802/0.8172, allocations: 0.5817 MB / 0.6451 GB, free: 13.23 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004627/0.8176, allocations: 382.9 kB / 0.6455 GB, free: 13.14 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.898e-05/0.8177, allocations: 45.44 kB / 0.6455 GB, free: 13.14 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05702/0.8747, allocations: 33.54 MB / 0.6783 GB, free: 9.121 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000294/0.8751, allocations: 122.9 kB / 0.6784 GB, free: 9.004 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006277/0.8757, allocations: 300.9 kB / 0.6787 GB, free: 8.711 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.045/0.9207, allocations: 13.94 MB / 0.6923 GB, free: 11.86 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.9208, allocations: 0 / 0.6923 GB, free: 11.86 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.9208, allocations: 0 / 0.6923 GB, free: 11.86 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.297e-06/0.9208, allocations: 0 / 0.6923 GB, free: 11.86 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.006858/0.9277, allocations: 2.566 MB / 0.6948 GB, free: 9.25 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.9277, allocations: 12.03 kB / 0.6948 GB, free: 9.238 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.682e-05/0.9278, allocations: 86.52 kB / 0.6949 GB, free: 9.145 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005939/0.9284, allocations: 84.33 kB / 0.695 GB, free: 9.062 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000413/0.9288, allocations: 344.2 kB / 0.6953 GB, free: 8.695 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.42e-05/0.9289, allocations: 28.66 kB / 0.6953 GB, free: 8.668 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.194e-05/0.9289, allocations: 32 kB / 0.6954 GB, free: 8.637 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001364/0.9303, allocations: 0.5963 MB / 0.696 GB, free: 8.023 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.9303, allocations: 0 / 0.696 GB, free: 8.023 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.274e-05/0.9304, allocations: 16 kB / 0.696 GB, free: 8.008 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.023e-05/0.9304, allocations: 24.44 kB / 0.696 GB, free: 7.988 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.9317, allocations: 0.5481 MB / 0.6965 GB, free: 7.445 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/0.9344, allocations: 2.558 MB / 0.699 GB, free: 4.664 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.9356, allocations: 0.5044 MB / 0.6995 GB, free: 4.152 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005537/0.9362, allocations: 332.5 kB / 0.6998 GB, free: 3.828 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4951/1.431, allocations: 139 MB / 0.8355 GB, free: 131.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.76e-05/1.431, allocations: 36.34 kB / 0.8356 GB, free: 131 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.496e-06/1.431, allocations: 3.062 kB / 0.8356 GB, free: 131 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006127/1.438, allocations: 2.337 MB / 0.8379 GB, free: 130.6 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/1.438, allocations: 57.44 kB / 0.8379 GB, free: 130.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/1.438, allocations: 255.1 kB / 0.8382 GB, free: 130.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/1.438, allocations: 34.11 kB / 0.8382 GB, free: 130.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/1.438, allocations: 189.2 kB / 0.8384 GB, free: 130.3 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/1.438, allocations: 262.5 kB / 0.8386 GB, free: 130.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/1.438, allocations: 102.5 kB / 0.8387 GB, free: 130.1 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001053/1.438, allocations: 355 kB / 0.8391 GB, free: 129.8 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004811/1.439, allocations: 269.7 kB / 0.8393 GB, free: 129.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005576/1.44, allocations: 397.3 kB / 0.8397 GB, free: 129.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009855/1.441, allocations: 0.6991 MB / 0.8404 GB, free: 129.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/1.441, allocations: 2.719 kB / 0.8404 GB, free: 129.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001327/1.442, allocations: 0.7857 MB / 0.8412 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/1.442, allocations: 5.484 kB / 0.8412 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/1.442, allocations: 2.875 kB / 0.8412 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002276/1.442, allocations: 66.62 kB / 0.8412 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003853/1.443, allocations: 101.9 kB / 0.8413 GB, free: 129.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09088/1.533, allocations: 22.37 MB / 0.8632 GB, free: 120.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/1.534, allocations: 36.39 kB / 0.8632 GB, free: 120.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.165e-05/1.534, allocations: 20.66 kB / 0.8632 GB, free: 120.4 MB / 0.5919 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.0002418/1.534, allocations: 191.8 kB / 0.8634 GB, free: 120.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.729e-05/1.534, allocations: 40.59 kB / 0.8634 GB, free: 120.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001685/1.536, allocations: 1.55 MB / 0.865 GB, free: 120 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.159e-05/1.536, allocations: 9.484 kB / 0.865 GB, free: 120 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/1.536, allocations: 0 / 0.865 GB, free: 120 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001155/1.537, allocations: 1.136 MB / 0.8661 GB, free: 119.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001934/1.539, allocations: 1.602 MB / 0.8676 GB, free: 119.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/1.539, allocations: 3.562 kB / 0.8676 GB, free: 119.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/1.539, allocations: 80.56 kB / 0.8677 GB, free: 119.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001961/1.54, allocations: 40.14 kB / 0.8678 GB, free: 119.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/1.54, allocations: 9.141 kB / 0.8678 GB, free: 119.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007285/1.54, allocations: 1.43 MB / 0.8692 GB, free: 117.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.54, allocations: 1.859 kB / 0.8692 GB, free: 117.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001586/1.542, allocations: 1.18 MB / 0.8703 GB, free: 117.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.051e-05/1.542, allocations: 118.5 kB / 0.8704 GB, free: 117.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.976e-05/1.542, allocations: 7.719 kB / 0.8704 GB, free: 117.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002922/1.542, allocations: 25.19 kB / 0.8705 GB, free: 117.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.286e-05/1.543, allocations: 44.77 kB / 0.8705 GB, free: 117.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-05/1.543, allocations: 12.62 kB / 0.8705 GB, free: 117.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002037/1.543, allocations: 240 kB / 0.8707 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.543, allocations: 0 / 0.8707 GB, free: 117.3 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007614/1.55, allocations: 3.185 MB / 0.8739 GB, free: 117.3 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 (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.01621/1.567, allocations: 5.646 MB / 0.8794 GB, free: 114.9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002076/1.569, allocations: 0.9733 MB / 0.8803 GB, free: 114.2 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.682e-06/1.569, allocations: 0 / 0.8803 GB, free: 114.2 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008024/1.57, allocations: 498.3 kB / 0.8808 GB, free: 113.9 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/1.572, allocations: 408 kB / 0.8812 GB, free: 113.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/1.583, allocations: 6.155 MB / 0.8872 GB, free: 108.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/1.583, allocations: 0.8518 MB / 0.888 GB, free: 108.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004733/1.584, allocations: 166.2 kB / 0.8882 GB, free: 108 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002011/1.584, allocations: 172.1 kB / 0.8883 GB, free: 107.9 MB / 0.5919 GB Notification: Performance of SimCode: time 5.31e-07/1.584, allocations: 0 / 0.8883 GB, free: 107.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3613/1.945, allocations: 124.4 MB / 1.01 GB, free: 228.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.71/19.65, allocations: 15.77 kB / 1.01 GB, free: 228.1 MB / 0.5919 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel_fmu --startTime=0 --stopTime=1000 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_PentaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)