Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",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.008282/0.008282, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.002291/0.002291, allocations: 197.9 kB / 16.67 MB, free: 5.977 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.495/1.495, 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.05133/0.05133, allocations: 9.096 MB / 279 MB, free: 12.07 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.002108/0.002108, allocations: 75.89 kB / 387 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.266, allocations: 48.16 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.1528/0.4189, allocations: 128.8 MB / 0.5508 GB, free: 15.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3572/0.7762, allocations: 111.1 MB / 0.6593 GB, free: 300 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007466/0.777, allocations: 5.906 kB / 0.6593 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003338/0.7804, allocations: 1.368 MB / 0.6606 GB, free: 288 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004422/0.7848, allocations: 1.65 MB / 0.6622 GB, free: 240 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.07173/0.8565, allocations: 29.54 MB / 0.6911 GB, free: 7.012 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002201/0.8588, allocations: 1.4 MB / 0.6924 GB, free: 6.004 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002962/0.8591, allocations: 131.1 kB / 0.6925 GB, free: 5.906 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01645/0.8755, allocations: 9.852 MB / 0.7022 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005609/0.8761, allocations: 379.9 kB / 0.7025 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.929e-05/0.8762, allocations: 44 kB / 0.7026 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06516/0.9414, allocations: 35.36 MB / 0.7371 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002772/0.9417, allocations: 123.3 kB / 0.7372 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005435/0.9423, allocations: 305 kB / 0.7375 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04268/0.9849, allocations: 14.21 MB / 0.7514 GB, free: 15.89 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.985, allocations: 0 / 0.7514 GB, free: 15.89 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.104e-06/0.985, allocations: 4 kB / 0.7514 GB, free: 15.89 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.9e-05/0.985, allocations: 0 / 0.7514 GB, free: 15.89 MB / 0.545 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.008153/0.9932, allocations: 2.676 MB / 0.754 GB, free: 13.16 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.9932, allocations: 8.031 kB / 0.754 GB, free: 13.16 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.601e-05/0.9933, allocations: 86.52 kB / 0.7541 GB, free: 13.06 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006214/0.994, allocations: 91.62 kB / 0.7542 GB, free: 12.97 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000541/0.9945, allocations: 343.2 kB / 0.7545 GB, free: 12.6 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.056e-05/0.9946, allocations: 28.66 kB / 0.7545 GB, free: 12.57 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.64e-05/0.9946, allocations: 39.92 kB / 0.7546 GB, free: 12.54 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.996, allocations: 0.5967 MB / 0.7552 GB, free: 11.92 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/0.996, allocations: 7.984 kB / 0.7552 GB, free: 11.91 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.118e-05/0.9961, allocations: 16 kB / 0.7552 GB, free: 11.9 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.766e-05/0.9961, allocations: 14.03 kB / 0.7552 GB, free: 11.89 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.9975, allocations: 0.5454 MB / 0.7557 GB, free: 11.34 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002802/1, allocations: 2.469 MB / 0.7581 GB, free: 8.672 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/1.001, allocations: 495.2 kB / 0.7586 GB, free: 8.18 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006005/1.002, allocations: 334.6 kB / 0.7589 GB, free: 7.852 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4281/1.43, allocations: 139 MB / 0.8947 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.172e-05/1.43, allocations: 33.62 kB / 0.8947 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.407e-06/1.43, allocations: 3.938 kB / 0.8947 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005503/1.436, allocations: 2.339 MB / 0.897 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/1.436, allocations: 62.94 kB / 0.897 GB, free: 217 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/1.436, allocations: 262.2 kB / 0.8973 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/1.436, allocations: 29.7 kB / 0.8973 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.909e-05/1.436, allocations: 194.5 kB / 0.8975 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/1.436, allocations: 269.3 kB / 0.8978 GB, free: 216.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/1.436, allocations: 105.1 kB / 0.8979 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.958e-05/1.437, allocations: 358.7 kB / 0.8982 GB, free: 215.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004302/1.437, allocations: 273.3 kB / 0.8985 GB, free: 215.6 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004675/1.437, allocations: 387.9 kB / 0.8988 GB, free: 215.2 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009202/1.438, allocations: 0.6967 MB / 0.8995 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.438, allocations: 4 kB / 0.8995 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001245/1.44, allocations: 0.7971 MB / 0.9003 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/1.44, allocations: 10.97 kB / 0.9003 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/1.44, allocations: 4 kB / 0.9003 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000244/1.44, allocations: 57.69 kB / 0.9004 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006669/1.441, allocations: 149.2 kB / 0.9005 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.065/1.506, allocations: 19.67 MB / 0.9197 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004005/1.506, allocations: 32 kB / 0.9198 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.094e-05/1.506, allocations: 20 kB / 0.9198 GB, free: 193.2 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.0002192/1.506, allocations: 193.7 kB / 0.92 GB, free: 193 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.601e-05/1.506, allocations: 47.66 kB / 0.92 GB, free: 193 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/1.508, allocations: 1.712 MB / 0.9217 GB, free: 191.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/1.508, allocations: 15.98 kB / 0.9217 GB, free: 191.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/1.508, allocations: 0 / 0.9217 GB, free: 191.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00122/1.509, allocations: 1.288 MB / 0.9229 GB, free: 189.8 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/1.511, allocations: 1.764 MB / 0.9247 GB, free: 188 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/1.511, allocations: 3.938 kB / 0.9247 GB, free: 188 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/1.511, allocations: 73.88 kB / 0.9247 GB, free: 187.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002852/1.512, allocations: 174.3 kB / 0.9249 GB, free: 187.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/1.512, allocations: 4 kB / 0.9249 GB, free: 187.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/1.513, allocations: 2.561 MB / 0.9274 GB, free: 185 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/1.513, allocations: 4.031 kB / 0.9274 GB, free: 185 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/1.515, allocations: 1.383 MB / 0.9288 GB, free: 183.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.197e-05/1.515, allocations: 123.5 kB / 0.9289 GB, free: 183.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.234e-05/1.515, allocations: 4 kB / 0.9289 GB, free: 183.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/1.515, allocations: 32.05 kB / 0.9289 GB, free: 183.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.194e-05/1.515, allocations: 47.86 kB / 0.929 GB, free: 183.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.323e-05/1.515, allocations: 12 kB / 0.929 GB, free: 183.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001637/1.515, allocations: 223.1 kB / 0.9292 GB, free: 183.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.8e-07/1.515, allocations: 4 kB / 0.9292 GB, free: 183.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008219/1.524, allocations: 3.571 MB / 0.9327 GB, free: 180 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.01714/1.541, allocations: 6.299 MB / 0.9388 GB, free: 174.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002144/1.543, allocations: 1.058 MB / 0.9399 GB, free: 173 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/1.543, allocations: 3.938 kB / 0.9399 GB, free: 173 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006618/1.544, allocations: 0.5035 MB / 0.9404 GB, free: 172.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001855/1.545, allocations: 393.8 kB / 0.9407 GB, free: 172.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/1.556, allocations: 6.285 MB / 0.9469 GB, free: 165.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/1.556, allocations: 0.8526 MB / 0.9477 GB, free: 164.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003471/1.556, allocations: 137.8 kB / 0.9478 GB, free: 164.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001759/1.556, allocations: 163.4 kB / 0.948 GB, free: 164.5 MB / 0.6075 GB Notification: Performance of SimCode: time 5.11e-07/1.556, allocations: 7.938 kB / 0.948 GB, free: 164.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1686/1.725, allocations: 133.2 MB / 1.078 GB, free: 31.16 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.66/19.38, allocations: 11.78 kB / 1.078 GB, free: 31.14 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel_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_IsobutaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)