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.001559/0.001559, 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.001804/0.001804, allocations: 197.4 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.559/1.559, allocations: 205.1 MB / 222.4 MB, free: 4.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04777/0.04777, allocations: 9.102 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.001493/0.001493, allocations: 59.91 kB / 338.1 MB, free: 25.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1078, allocations: 48.17 MB / 386.3 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.4051/0.513, allocations: 128.9 MB / 0.5031 GB, free: 4.914 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.4311/0.9442, allocations: 111.1 MB / 0.6116 GB, free: 332 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006033/0.9448, allocations: 5.812 kB / 0.6116 GB, free: 332 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003485/0.9484, allocations: 1.364 MB / 0.6129 GB, free: 324 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004008/0.9524, allocations: 1.655 MB / 0.6145 GB, free: 304 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.08601/1.038, allocations: 30.12 MB / 0.644 GB, free: 13.38 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002516/1.041, allocations: 1.407 MB / 0.6453 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002761/1.041, allocations: 120.1 kB / 0.6454 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02009/1.061, allocations: 11.68 MB / 0.6569 GB, free: 6.793 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000528/1.062, allocations: 380.5 kB / 0.6572 GB, free: 6.496 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.088e-05/1.062, allocations: 40 kB / 0.6573 GB, free: 6.457 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07168/1.134, allocations: 35.5 MB / 0.6919 GB, free: 11.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003295/1.134, allocations: 126.1 kB / 0.692 GB, free: 11.61 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006898/1.135, allocations: 306.8 kB / 0.6923 GB, free: 11.31 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05834/1.193, allocations: 14.51 MB / 0.7065 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 8.286e-06/1.193, allocations: 0 / 0.7065 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.579e-06/1.193, allocations: 4 kB / 0.7065 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.486e-05/1.193, allocations: 0 / 0.7065 GB, free: 13.88 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.008362/1.202, allocations: 2.575 MB / 0.709 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/1.202, allocations: 11.03 kB / 0.709 GB, free: 11.25 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001366/1.202, allocations: 82.52 kB / 0.7091 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007406/1.203, allocations: 95.33 kB / 0.7092 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004932/1.203, allocations: 332.5 kB / 0.7095 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.101e-05/1.203, allocations: 28.66 kB / 0.7095 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.613e-05/1.203, allocations: 40 kB / 0.7096 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/1.205, allocations: 0.604 MB / 0.7102 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/1.205, allocations: 0 / 0.7102 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/1.205, allocations: 12 kB / 0.7102 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.172e-05/1.205, allocations: 15.12 kB / 0.7102 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/1.206, allocations: 0.552 MB / 0.7107 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002733/1.209, allocations: 2.466 MB / 0.7131 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/1.21, allocations: 496.4 kB / 0.7136 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005542/1.21, allocations: 338 kB / 0.7139 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5079/1.718, allocations: 139 MB / 0.8497 GB, free: 271.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.123e-05/1.719, allocations: 38.55 kB / 0.8497 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 6.362e-06/1.719, allocations: 0 / 0.8497 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.007349/1.726, allocations: 2.332 MB / 0.852 GB, free: 270 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/1.726, allocations: 65.34 kB / 0.852 GB, free: 270 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/1.726, allocations: 260.5 kB / 0.8523 GB, free: 269.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.03e-05/1.726, allocations: 37.67 kB / 0.8523 GB, free: 269.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/1.726, allocations: 193.5 kB / 0.8525 GB, free: 269.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/1.727, allocations: 257.3 kB / 0.8528 GB, free: 269.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/1.727, allocations: 97.42 kB / 0.8529 GB, free: 269.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001071/1.727, allocations: 353 kB / 0.8532 GB, free: 269 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004786/1.727, allocations: 275.7 kB / 0.8535 GB, free: 268.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005221/1.728, allocations: 395.7 kB / 0.8538 GB, free: 268.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/1.729, allocations: 0.6944 MB / 0.8545 GB, free: 268.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/1.729, allocations: 0 / 0.8545 GB, free: 268.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00147/1.731, allocations: 0.7997 MB / 0.8553 GB, free: 267.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/1.731, allocations: 10 kB / 0.8553 GB, free: 267.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.396e-05/1.731, allocations: 3.938 kB / 0.8553 GB, free: 267.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00029/1.731, allocations: 61.45 kB / 0.8554 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007318/1.732, allocations: 140.8 kB / 0.8555 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09566/1.827, allocations: 28.74 MB / 0.8836 GB, free: 240.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/1.828, allocations: 27.97 kB / 0.8836 GB, free: 240.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/1.828, allocations: 20 kB / 0.8836 GB, free: 240.2 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.0002988/1.828, allocations: 189.4 kB / 0.8838 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.176e-05/1.828, allocations: 51.36 kB / 0.8838 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001839/1.83, allocations: 1.718 MB / 0.8855 GB, free: 238.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/1.83, allocations: 15.88 kB / 0.8855 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/1.83, allocations: 0 / 0.8855 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001281/1.831, allocations: 1.296 MB / 0.8868 GB, free: 236.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001954/1.833, allocations: 1.765 MB / 0.8885 GB, free: 234.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/1.833, allocations: 0 / 0.8885 GB, free: 234.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/1.834, allocations: 75.88 kB / 0.8886 GB, free: 234.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000277/1.834, allocations: 162.4 kB / 0.8887 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.534e-05/1.834, allocations: 11.31 kB / 0.8888 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/1.835, allocations: 2.576 MB / 0.8913 GB, free: 231.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.835, allocations: 0 / 0.8913 GB, free: 231.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/1.837, allocations: 1.373 MB / 0.8926 GB, free: 230.5 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-05/1.837, allocations: 116.5 kB / 0.8927 GB, free: 230.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.855e-05/1.837, allocations: 8 kB / 0.8927 GB, free: 230.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/1.838, allocations: 31.91 kB / 0.8928 GB, free: 230.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.473e-05/1.838, allocations: 35.94 kB / 0.8928 GB, free: 230.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.403e-05/1.838, allocations: 19.98 kB / 0.8928 GB, free: 230.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001887/1.838, allocations: 223.1 kB / 0.893 GB, free: 230.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.01e-07/1.838, allocations: 0 / 0.893 GB, free: 230.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01012/1.848, allocations: 3.188 MB / 0.8961 GB, free: 227.3 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.01961/1.868, allocations: 6.014 MB / 0.902 GB, free: 221.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002463/1.87, allocations: 1.049 MB / 0.903 GB, free: 220.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/1.87, allocations: 0 / 0.903 GB, free: 220.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007048/1.871, allocations: 0.5033 MB / 0.9035 GB, free: 220.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/1.873, allocations: 402.9 kB / 0.9039 GB, free: 219.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/1.885, allocations: 6.106 MB / 0.9099 GB, free: 213.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002751/1.885, allocations: 0.8487 MB / 0.9107 GB, free: 212.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004765/1.885, allocations: 138.9 kB / 0.9108 GB, free: 212.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/1.886, allocations: 171.4 kB / 0.911 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of SimCode: time 7.92e-07/1.886, allocations: 3.938 kB / 0.911 GB, free: 212.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1959/2.082, allocations: 125.4 MB / 1.033 GB, free: 86.54 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.39/22.47, allocations: 8 kB / 1.033 GB, free: 86.53 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)