Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",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.001222/0.001222, 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.001192/0.001192, allocations: 196.1 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.738/1.738, allocations: 205.1 MB / 222.4 MB, free: 4.602 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04689/0.04689, allocations: 9.096 MB / 278.9 MB, free: 12.16 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.002139/0.002139, allocations: 60.23 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1165, allocations: 48.17 MB / 386.3 MB, free: 9.125 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.4313/0.5478, allocations: 128.9 MB / 0.5031 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4917/1.04, allocations: 111.1 MB / 0.6116 GB, free: 340 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007123/1.04, allocations: 8.25 kB / 0.6116 GB, free: 340 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003729/1.044, allocations: 1.363 MB / 0.6129 GB, free: 332 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004264/1.048, allocations: 1.65 MB / 0.6145 GB, free: 312 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.095/1.143, allocations: 30.13 MB / 0.644 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002556/1.146, allocations: 1.397 MB / 0.6453 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003076/1.146, allocations: 129.3 kB / 0.6454 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02139/1.168, allocations: 11.68 MB / 0.6569 GB, free: 6.789 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005993/1.168, allocations: 377.7 kB / 0.6572 GB, free: 6.492 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.074e-05/1.168, allocations: 44 kB / 0.6573 GB, free: 6.449 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0775/1.246, allocations: 35.5 MB / 0.6919 GB, free: 11.7 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002728/1.246, allocations: 125.5 kB / 0.692 GB, free: 11.58 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006893/1.247, allocations: 306.6 kB / 0.6923 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06144/1.308, allocations: 14.52 MB / 0.7065 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.308, allocations: 0 / 0.7065 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.793e-06/1.308, allocations: 0 / 0.7065 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.203e-05/1.308, allocations: 0 / 0.7065 GB, free: 13.86 MB / 0.4981 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.007506/1.316, allocations: 2.566 MB / 0.709 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/1.316, allocations: 12.03 kB / 0.709 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/1.316, allocations: 90.45 kB / 0.7091 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006399/1.317, allocations: 83.39 kB / 0.7092 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/1.317, allocations: 350.6 kB / 0.7095 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.673e-05/1.317, allocations: 28.66 kB / 0.7096 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.95e-05/1.317, allocations: 32 kB / 0.7096 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001259/1.319, allocations: 0.5963 MB / 0.7102 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/1.319, allocations: 3.906 kB / 0.7102 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.302e-05/1.319, allocations: 16 kB / 0.7102 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.218e-05/1.319, allocations: 19.75 kB / 0.7102 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/1.32, allocations: 0.5442 MB / 0.7107 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/1.323, allocations: 2.475 MB / 0.7132 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/1.324, allocations: 491.9 kB / 0.7136 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005379/1.324, allocations: 341.9 kB / 0.714 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4777/1.802, allocations: 139 MB / 0.8497 GB, free: 271 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.854e-05/1.802, allocations: 31.88 kB / 0.8497 GB, free: 271 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 3.297e-06/1.802, allocations: 3.438 kB / 0.8497 GB, free: 271 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.007143/1.809, allocations: 2.341 MB / 0.852 GB, free: 269.7 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/1.809, allocations: 55.38 kB / 0.852 GB, free: 269.6 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002811/1.81, allocations: 270.3 kB / 0.8523 GB, free: 269.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.736e-05/1.81, allocations: 29.7 kB / 0.8523 GB, free: 269.4 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/1.81, allocations: 196.9 kB / 0.8525 GB, free: 269.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000159/1.81, allocations: 255.1 kB / 0.8528 GB, free: 269 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/1.81, allocations: 101.7 kB / 0.8529 GB, free: 268.9 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.658e-05/1.81, allocations: 350.5 kB / 0.8532 GB, free: 268.6 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004699/1.811, allocations: 278.2 kB / 0.8535 GB, free: 268.5 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005609/1.811, allocations: 392.6 kB / 0.8538 GB, free: 268.2 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/1.812, allocations: 0.6982 MB / 0.8545 GB, free: 267.7 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/1.812, allocations: 0 / 0.8545 GB, free: 267.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001427/1.814, allocations: 0.8005 MB / 0.8553 GB, free: 267.3 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/1.814, allocations: 7.938 kB / 0.8553 GB, free: 267.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.484e-05/1.814, allocations: 3.969 kB / 0.8553 GB, free: 267.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002654/1.814, allocations: 61.17 kB / 0.8554 GB, free: 267.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007318/1.815, allocations: 145.2 kB / 0.8555 GB, free: 267.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1078/1.923, allocations: 28.73 MB / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005462/1.923, allocations: 19.98 kB / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.749e-05/1.924, allocations: 23.98 kB / 0.8836 GB, free: 240 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.0004211/1.924, allocations: 193.3 kB / 0.8838 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/1.924, allocations: 43.44 kB / 0.8838 GB, free: 239.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001989/1.926, allocations: 1.718 MB / 0.8855 GB, free: 238 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.307e-05/1.926, allocations: 19.58 kB / 0.8855 GB, free: 238 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/1.926, allocations: 3.938 kB / 0.8855 GB, free: 238 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001365/1.928, allocations: 1.296 MB / 0.8868 GB, free: 236.6 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002387/1.93, allocations: 1.753 MB / 0.8885 GB, free: 234.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.353e-06/1.93, allocations: 0 / 0.8885 GB, free: 234.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003271/1.93, allocations: 71.89 kB / 0.8886 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003361/1.931, allocations: 166.3 kB / 0.8887 GB, free: 234.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.202e-05/1.931, allocations: 22.48 kB / 0.8888 GB, free: 234.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001606/1.932, allocations: 2.568 MB / 0.8913 GB, free: 231.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.932, allocations: 0 / 0.8913 GB, free: 231.7 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/1.934, allocations: 1.373 MB / 0.8926 GB, free: 230.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/1.934, allocations: 120.6 kB / 0.8927 GB, free: 230.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.734e-05/1.934, allocations: 11.94 kB / 0.8927 GB, free: 230.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003168/1.935, allocations: 27.97 kB / 0.8928 GB, free: 230.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00013/1.935, allocations: 43.88 kB / 0.8928 GB, free: 230.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/1.935, allocations: 15.98 kB / 0.8928 GB, free: 230.1 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002029/1.935, allocations: 223.1 kB / 0.893 GB, free: 229.9 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/1.935, allocations: 0 / 0.893 GB, free: 229.9 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009828/1.945, allocations: 3.188 MB / 0.8961 GB, free: 227.1 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.0224/1.967, allocations: 6.015 MB / 0.902 GB, free: 221.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002331/1.97, allocations: 1.042 MB / 0.903 GB, free: 220.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/1.97, allocations: 4 kB / 0.903 GB, free: 220.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008039/1.971, allocations: 0.5032 MB / 0.9035 GB, free: 220 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/1.973, allocations: 413.9 kB / 0.9039 GB, free: 219.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/1.988, allocations: 6.103 MB / 0.9099 GB, free: 213.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003159/1.988, allocations: 0.8448 MB / 0.9107 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005337/1.989, allocations: 139.2 kB / 0.9108 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000203/1.989, allocations: 171.4 kB / 0.911 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.262e-06/1.989, allocations: 0 / 0.911 GB, free: 212.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1912/2.18, allocations: 125.4 MB / 1.033 GB, free: 86.39 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.9/21.08, allocations: 0 / 1.033 GB, free: 86.39 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel_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_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)