Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.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.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel",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.0007806/0.0007806, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.004228/0.004228, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.312/1.312, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04383/0.04383, allocations: 9.078 MB / 279.8 MB, free: 12.14 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.0005116/0.0005116, allocations: 12.56 kB / 339.8 MB, free: 25.53 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09056, allocations: 49.19 MB / 389 MB, free: 8.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel): time 0.3105/0.4011, allocations: 128.7 MB / 0.5056 GB, free: 7.055 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3762/0.7774, allocations: 111.5 MB / 0.6145 GB, free: 1.758 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006858/0.7781, allocations: 6.844 kB / 0.6145 GB, free: 1.758 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003386/0.7815, allocations: 1.178 MB / 0.6156 GB, free: 1.75 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003913/0.7855, allocations: 1.471 MB / 0.6171 GB, free: 1.738 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0734/0.8589, allocations: 24.96 MB / 0.6414 GB, free: 0.543 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002499/0.8614, allocations: 1.827 MB / 0.6432 GB, free: 0 / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002789/0.8617, allocations: 94.94 kB / 0.6433 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01573/0.8774, allocations: 8.405 MB / 0.6515 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005465/0.878, allocations: 384 kB / 0.6519 GB, free: 12.98 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.366e-05/0.878, allocations: 20.41 kB / 0.6519 GB, free: 12.98 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05887/0.9369, allocations: 31.06 MB / 0.6822 GB, free: 11.89 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002551/0.9372, allocations: 96.45 kB / 0.6823 GB, free: 11.84 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006083/0.9378, allocations: 305.8 kB / 0.6826 GB, free: 11.66 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04208/0.9799, allocations: 13.59 MB / 0.6959 GB, free: 1.273 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.98, allocations: 0 / 0.6959 GB, free: 1.273 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.98, allocations: 4 kB / 0.6959 GB, free: 1.27 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.98, allocations: 0 / 0.6959 GB, free: 1.27 MB / 478.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.006372/0.9864, allocations: 2.492 MB / 0.6983 GB, free: 14.83 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.9864, allocations: 8.031 kB / 0.6983 GB, free: 14.82 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.937e-05/0.9865, allocations: 85.33 kB / 0.6984 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005719/0.9871, allocations: 85.94 kB / 0.6985 GB, free: 14.67 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003811/0.9875, allocations: 331.5 kB / 0.6988 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.966e-05/0.9876, allocations: 36.22 kB / 0.6989 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.9876, allocations: 32.69 kB / 0.6989 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001224/0.9889, allocations: 0.6124 MB / 0.6995 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.9889, allocations: 0 / 0.6995 GB, free: 13.87 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.9889, allocations: 17.16 kB / 0.6995 GB, free: 13.86 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.989, allocations: 23.81 kB / 0.6995 GB, free: 13.85 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.9902, allocations: 0.5742 MB / 0.7001 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.9925, allocations: 2.56 MB / 0.7026 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.9936, allocations: 0.5136 MB / 0.7031 GB, free: 10.71 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005244/0.9942, allocations: 350.2 kB / 0.7034 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3901/1.384, allocations: 135.8 MB / 0.8361 GB, free: 259.6 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/1.384, allocations: 41.06 kB / 0.8361 GB, free: 259.6 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 3.387e-06/1.384, allocations: 0 / 0.8361 GB, free: 259.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005387/1.39, allocations: 2.407 MB / 0.8384 GB, free: 258.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/1.39, allocations: 62.88 kB / 0.8385 GB, free: 258.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/1.39, allocations: 248 kB / 0.8387 GB, free: 258.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/1.39, allocations: 37.02 kB / 0.8388 GB, free: 258.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.222e-05/1.39, allocations: 182.8 kB / 0.8389 GB, free: 258.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001217/1.39, allocations: 271.2 kB / 0.8392 GB, free: 258 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-05/1.39, allocations: 56.88 kB / 0.8393 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 7.118e-05/1.39, allocations: 357.2 kB / 0.8396 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004437/1.391, allocations: 279.1 kB / 0.8399 GB, free: 257.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004783/1.391, allocations: 411.6 kB / 0.8403 GB, free: 257.2 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000946/1.392, allocations: 0.7279 MB / 0.841 GB, free: 256.7 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/1.392, allocations: 0 / 0.841 GB, free: 256.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001246/1.394, allocations: 0.819 MB / 0.8418 GB, free: 256.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/1.394, allocations: 7.688 kB / 0.8418 GB, free: 256.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/1.394, allocations: 3.969 kB / 0.8418 GB, free: 256.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002318/1.394, allocations: 65.08 kB / 0.8418 GB, free: 256.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003764/1.394, allocations: 109.8 kB / 0.8419 GB, free: 256.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0899/1.484, allocations: 22.57 MB / 0.864 GB, free: 238.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004929/1.485, allocations: 53.77 kB / 0.864 GB, free: 238.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.78e-05/1.485, allocations: 23.94 kB / 0.8641 GB, free: 238.2 MB / 0.5762 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.0002703/1.485, allocations: 189.3 kB / 0.8642 GB, free: 238 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.378e-05/1.485, allocations: 51.38 kB / 0.8643 GB, free: 237.9 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001669/1.487, allocations: 1.568 MB / 0.8658 GB, free: 236.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/1.487, allocations: 14.41 kB / 0.8658 GB, free: 236.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/1.487, allocations: 0 / 0.8658 GB, free: 236.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001188/1.488, allocations: 1.168 MB / 0.867 GB, free: 235 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001924/1.49, allocations: 1.619 MB / 0.8686 GB, free: 233.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/1.49, allocations: 0 / 0.8686 GB, free: 233.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/1.49, allocations: 87.88 kB / 0.8686 GB, free: 233.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002352/1.491, allocations: 58.3 kB / 0.8687 GB, free: 233.2 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/1.491, allocations: 4 kB / 0.8687 GB, free: 233.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007544/1.491, allocations: 1.33 MB / 0.87 GB, free: 231.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.491, allocations: 4.031 kB / 0.87 GB, free: 231.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/1.493, allocations: 1.215 MB / 0.8712 GB, free: 230.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/1.493, allocations: 144.4 kB / 0.8713 GB, free: 230.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.146e-05/1.493, allocations: 4 kB / 0.8713 GB, free: 230.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003484/1.494, allocations: 51.91 kB / 0.8714 GB, free: 230.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.786e-05/1.494, allocations: 39.94 kB / 0.8714 GB, free: 230.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.411e-05/1.494, allocations: 19.98 kB / 0.8714 GB, free: 230.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001951/1.494, allocations: 239 kB / 0.8717 GB, free: 230 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.494, allocations: 0 / 0.8717 GB, free: 230 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00776/1.502, allocations: 3.188 MB / 0.8748 GB, free: 227.2 MB / 0.5762 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.01634/1.518, allocations: 5.765 MB / 0.8804 GB, free: 221.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001568/1.52, allocations: 0.9581 MB / 0.8813 GB, free: 220.9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/1.52, allocations: 0 / 0.8813 GB, free: 220.9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000647/1.52, allocations: 0.4994 MB / 0.8818 GB, free: 220.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/1.522, allocations: 398.3 kB / 0.8822 GB, free: 220 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/1.533, allocations: 6.477 MB / 0.8885 GB, free: 213.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/1.533, allocations: 0.8449 MB / 0.8894 GB, free: 212.5 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000473/1.534, allocations: 169.5 kB / 0.8895 GB, free: 212.4 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001875/1.534, allocations: 167.4 kB / 0.8897 GB, free: 212.2 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/1.534, allocations: 0 / 0.8897 GB, free: 212.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1516/1.686, allocations: 123.8 MB / 1.011 GB, free: 88.28 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001415/1.686, allocations: 245.8 kB / 1.011 GB, free: 88.02 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.726/7.411, allocations: 0 / 1.011 GB, free: 88.02 MB / 0.5762 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel.pipe 2>&1)