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.0007808/0.0007808, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.0009286/0.0009286, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.238/1.238, allocations: 205.4 MB / 222.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04211/0.04211, allocations: 9.072 MB / 279.5 MB, free: 12.12 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.0004914/0.0004915, allocations: 12 kB / 339.2 MB, free: 25.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07422/0.07472, allocations: 49.19 MB / 388.4 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.253/0.3277, allocations: 120.1 MB / 0.4966 GB, free: 24 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.292/0.6198, allocations: 103.9 MB / 0.598 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007599/0.6206, allocations: 7.938 kB / 0.598 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003066/0.6237, allocations: 1.07 MB / 0.599 GB, free: 10.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003564/0.6272, allocations: 1.323 MB / 0.6003 GB, free: 10.42 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06026/0.6875, allocations: 23.22 MB / 0.623 GB, free: 10.04 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001732/0.6893, allocations: 1.573 MB / 0.6245 GB, free: 10.04 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001802/0.6894, allocations: 94.08 kB / 0.6246 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1073/0.7967, allocations: 85.6 MB / 0.7082 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005033/0.7973, allocations: 365.5 kB / 0.7086 GB, free: 6.57 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.79e-05/0.7973, allocations: 20 kB / 0.7086 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05181/0.8492, allocations: 29.22 MB / 0.7371 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002186/0.8494, allocations: 96.44 kB / 0.7372 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0003048/0.8497, allocations: 144.8 kB / 0.7374 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.01715/0.8669, allocations: 8.782 MB / 0.7459 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.8669, allocations: 0 / 0.7459 GB, free: 8.66 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.564e-06/0.8669, allocations: 4 kB / 0.7459 GB, free: 8.656 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.066e-06/0.867, allocations: 0 / 0.7459 GB, free: 8.656 MB / 0.5294 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.005508/0.8725, allocations: 2.498 MB / 0.7484 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.8725, allocations: 8.031 kB / 0.7484 GB, free: 6.199 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.676e-05/0.8726, allocations: 87.72 kB / 0.7485 GB, free: 6.133 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005455/0.8732, allocations: 88.16 kB / 0.7486 GB, free: 6.047 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.8735, allocations: 332.2 kB / 0.7489 GB, free: 5.734 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.376e-05/0.8736, allocations: 28.34 kB / 0.7489 GB, free: 5.719 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.8736, allocations: 31.38 kB / 0.7489 GB, free: 5.699 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.8748, allocations: 0.6159 MB / 0.7495 GB, free: 5.25 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.8748, allocations: 4 kB / 0.7495 GB, free: 5.246 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.438e-05/0.8748, allocations: 13.12 kB / 0.7495 GB, free: 5.242 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.8749, allocations: 18.86 kB / 0.7496 GB, free: 5.23 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.876, allocations: 0.578 MB / 0.7501 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002193/0.8782, allocations: 2.461 MB / 0.7525 GB, free: 2.562 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009308/0.8792, allocations: 0.5014 MB / 0.753 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004743/0.8796, allocations: 345.6 kB / 0.7534 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3351/1.215, allocations: 135.8 MB / 0.886 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.865e-05/1.215, allocations: 34.56 kB / 0.886 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=77): time 3.647e-06/1.215, allocations: 0.9375 kB / 0.886 GB, free: 179.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=81): time 0.005276/1.22, allocations: 2.411 MB / 0.8884 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.282e-05/1.22, allocations: 55.41 kB / 0.8884 GB, free: 177 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/1.22, allocations: 262 kB / 0.8887 GB, free: 176.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/1.22, allocations: 38.83 kB / 0.8887 GB, free: 176.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.962e-05/1.221, allocations: 190.9 kB / 0.8889 GB, free: 176.5 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/1.221, allocations: 256.8 kB / 0.8891 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.964e-05/1.221, allocations: 14.12 kB / 0.8892 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.81e-05/1.221, allocations: 350.8 kB / 0.8895 GB, free: 175.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004262/1.221, allocations: 289.1 kB / 0.8898 GB, free: 175.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004344/1.222, allocations: 404.3 kB / 0.8902 GB, free: 175.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004609/1.222, allocations: 335.2 kB / 0.8905 GB, free: 174.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/1.222, allocations: 2.75 kB / 0.8905 GB, free: 174.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001163/1.223, allocations: 0.8236 MB / 0.8913 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/1.223, allocations: 8 kB / 0.8913 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/1.223, allocations: 7.969 kB / 0.8913 GB, free: 174.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002187/1.224, allocations: 61.67 kB / 0.8914 GB, free: 174 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006195/1.224, allocations: 148.9 kB / 0.8915 GB, free: 173.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0805/1.305, allocations: 28.39 MB / 0.9192 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000471/1.305, allocations: 61.33 kB / 0.9193 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.679e-05/1.305, allocations: 19.98 kB / 0.9193 GB, free: 144.8 MB / 0.5606 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 (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,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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 (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002653/1.306, allocations: 179.9 kB / 0.9195 GB, free: 144.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.48e-05/1.306, allocations: 47.48 kB / 0.9195 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001709/1.307, allocations: 1.737 MB / 0.9212 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-05/1.307, allocations: 15.89 kB / 0.9212 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/1.307, allocations: 4 kB / 0.9212 GB, free: 142.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001212/1.309, allocations: 1.316 MB / 0.9225 GB, free: 141.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/1.311, allocations: 1.78 MB / 0.9243 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.311, allocations: 4 kB / 0.9243 GB, free: 139.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/1.311, allocations: 79.88 kB / 0.9243 GB, free: 139.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003335/1.311, allocations: 176.4 kB / 0.9245 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.554e-05/1.311, allocations: 14.5 kB / 0.9245 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001042/1.312, allocations: 2.471 MB / 0.9269 GB, free: 136.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/1.312, allocations: 0 / 0.9269 GB, free: 136.6 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/1.314, allocations: 1.416 MB / 0.9283 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/1.314, allocations: 136.5 kB / 0.9284 GB, free: 135 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.232e-05/1.314, allocations: 8 kB / 0.9284 GB, free: 135 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/1.314, allocations: 47.88 kB / 0.9285 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.031e-05/1.315, allocations: 47.91 kB / 0.9285 GB, free: 134.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/1.315, allocations: 12 kB / 0.9286 GB, free: 134.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000175/1.315, allocations: 227.1 kB / 0.9288 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/1.315, allocations: 0 / 0.9288 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007009/1.322, allocations: 3.181 MB / 0.9319 GB, free: 131.9 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0172/1.339, allocations: 6.064 MB / 0.9378 GB, free: 126.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001767/1.341, allocations: 1.036 MB / 0.9388 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/1.341, allocations: 0 / 0.9388 GB, free: 125.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006755/1.342, allocations: 0.515 MB / 0.9393 GB, free: 124.7 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001515/1.343, allocations: 329.8 kB / 0.9396 GB, free: 124.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00828/1.351, allocations: 4.356 MB / 0.9439 GB, free: 119.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002304/1.352, allocations: 0.8525 MB / 0.9447 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004003/1.352, allocations: 143 kB / 0.9448 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001846/1.352, allocations: 163.4 kB / 0.945 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.052e-06/1.352, allocations: 3.938 kB / 0.945 GB, free: 118.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2967/1.649, allocations: 123.6 MB / 1.066 GB, free: 273.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001785/1.649, allocations: 239.2 kB / 1.066 GB, free: 272.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/9.327, allocations: 1.594 kB / 1.066 GB, free: 272.9 MB / 0.5606 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/linux/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) Environment - environmentSimulation: