Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.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.R134a_ASHRAE_TestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph",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.001493/0.001492, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001571/0.001571, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.362/1.362, allocations: 205.1 MB / 222 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04292/0.04292, allocations: 9.083 MB / 278.4 MB, free: 12.42 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.001344/0.001344, allocations: 67.91 kB / 337.4 MB, free: 25.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07516/0.07652, allocations: 48.16 MB / 385.6 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.3243/0.4009, allocations: 131.4 MB / 0.5048 GB, free: 3.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3418/0.7427, allocations: 112.8 MB / 0.615 GB, free: 1.168 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007789/0.7436, allocations: 6.375 kB / 0.615 GB, free: 1.168 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003114/0.7467, allocations: 1.186 MB / 0.6162 GB, free: 1.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003475/0.7502, allocations: 1.462 MB / 0.6176 GB, free: 1.148 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0726/0.8229, allocations: 24.94 MB / 0.642 GB, free: 15.97 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002277/0.8251, allocations: 1.819 MB / 0.6438 GB, free: 15.67 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.8254, allocations: 104.5 kB / 0.6439 GB, free: 15.64 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01708/0.8425, allocations: 8.397 MB / 0.6521 GB, free: 12.8 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000598/0.8432, allocations: 394.3 kB / 0.6524 GB, free: 12.65 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-05/0.8432, allocations: 21.44 kB / 0.6525 GB, free: 12.65 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06331/0.9065, allocations: 31.06 MB / 0.6828 GB, free: 7.746 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000288/0.9069, allocations: 98.12 kB / 0.6829 GB, free: 7.68 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007864/0.9077, allocations: 285.5 kB / 0.6832 GB, free: 7.465 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04861/0.9563, allocations: 13.65 MB / 0.6965 GB, free: 11.59 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.9563, allocations: 0 / 0.6965 GB, free: 11.59 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.9564, allocations: 0 / 0.6965 GB, free: 11.59 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.9564, allocations: 0 / 0.6965 GB, free: 11.59 MB / 494.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.007081/0.9635, allocations: 2.564 MB / 0.699 GB, free: 8.98 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.9635, allocations: 12.03 kB / 0.699 GB, free: 8.969 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001013/0.9636, allocations: 82.52 kB / 0.6991 GB, free: 8.879 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006313/0.9643, allocations: 93.64 kB / 0.6992 GB, free: 8.789 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.9647, allocations: 331.1 kB / 0.6995 GB, free: 8.43 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.9647, allocations: 32.66 kB / 0.6995 GB, free: 8.398 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.969e-05/0.9648, allocations: 31.38 kB / 0.6995 GB, free: 8.371 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.9661, allocations: 0.604 MB / 0.7001 GB, free: 7.754 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.9661, allocations: 3.906 kB / 0.7001 GB, free: 7.75 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.9662, allocations: 16 kB / 0.7002 GB, free: 7.734 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.9662, allocations: 14.64 kB / 0.7002 GB, free: 7.723 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.9675, allocations: 0.552 MB / 0.7007 GB, free: 7.176 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002538/0.97, allocations: 2.547 MB / 0.7032 GB, free: 4.406 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.9712, allocations: 0.4966 MB / 0.7037 GB, free: 3.902 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005398/0.9717, allocations: 349.9 kB / 0.704 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4066/1.378, allocations: 139 MB / 0.8397 GB, free: 253.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.608e-05/1.378, allocations: 41.31 kB / 0.8398 GB, free: 253.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 3.307e-06/1.378, allocations: 0 / 0.8398 GB, free: 253.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.006001/1.384, allocations: 2.328 MB / 0.842 GB, free: 252.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/1.384, allocations: 58.38 kB / 0.8421 GB, free: 252.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000267/1.385, allocations: 248 kB / 0.8423 GB, free: 252.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/1.385, allocations: 37.61 kB / 0.8424 GB, free: 252.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/1.385, allocations: 179.3 kB / 0.8425 GB, free: 252 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/1.385, allocations: 277.6 kB / 0.8428 GB, free: 251.8 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/1.385, allocations: 97.52 kB / 0.8429 GB, free: 251.7 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.757e-05/1.385, allocations: 357.6 kB / 0.8432 GB, free: 251.4 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004789/1.386, allocations: 270.4 kB / 0.8435 GB, free: 251.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005401/1.386, allocations: 391.1 kB / 0.8439 GB, free: 250.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001036/1.387, allocations: 0.6993 MB / 0.8445 GB, free: 250.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/1.387, allocations: 0 / 0.8445 GB, free: 250.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001431/1.389, allocations: 0.7965 MB / 0.8453 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/1.389, allocations: 3.562 kB / 0.8453 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/1.389, allocations: 3.75 kB / 0.8453 GB, free: 250.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002643/1.389, allocations: 67.89 kB / 0.8454 GB, free: 250 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003979/1.39, allocations: 99.41 kB / 0.8455 GB, free: 250 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09209/1.482, allocations: 22.76 MB / 0.8677 GB, free: 228.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005535/1.482, allocations: 51.95 kB / 0.8678 GB, free: 228.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.748e-05/1.482, allocations: 16 kB / 0.8678 GB, free: 228.5 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.0003337/1.483, allocations: 185.8 kB / 0.868 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/1.483, allocations: 51.38 kB / 0.868 GB, free: 228.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001754/1.485, allocations: 1.541 MB / 0.8695 GB, free: 226.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/1.485, allocations: 15.98 kB / 0.8695 GB, free: 226.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.485, allocations: 0 / 0.8695 GB, free: 226.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001178/1.486, allocations: 1.136 MB / 0.8706 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001996/1.488, allocations: 1.593 MB / 0.8722 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/1.488, allocations: 0 / 0.8722 GB, free: 223.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003365/1.488, allocations: 83.88 kB / 0.8723 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002028/1.489, allocations: 44.78 kB / 0.8723 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.982e-05/1.489, allocations: 12 kB / 0.8723 GB, free: 223.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007373/1.489, allocations: 1.319 MB / 0.8736 GB, free: 222.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.489, allocations: 8.016 kB / 0.8736 GB, free: 222.2 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001658/1.491, allocations: 1.18 MB / 0.8748 GB, free: 221 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/1.491, allocations: 116.6 kB / 0.8749 GB, free: 220.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.261e-05/1.491, allocations: 11.94 kB / 0.8749 GB, free: 220.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/1.492, allocations: 39.88 kB / 0.8749 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/1.492, allocations: 39.94 kB / 0.875 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/1.492, allocations: 19.98 kB / 0.875 GB, free: 220.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002151/1.492, allocations: 247 kB / 0.8752 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.4e-07/1.492, allocations: 0 / 0.8752 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0103/1.502, allocations: 3.189 MB / 0.8783 GB, free: 217.7 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.019/1.521, allocations: 5.738 MB / 0.8839 GB, free: 212.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001793/1.523, allocations: 0.9389 MB / 0.8849 GB, free: 211.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/1.523, allocations: 0 / 0.8849 GB, free: 211.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008124/1.524, allocations: 0.4915 MB / 0.8853 GB, free: 211 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002052/1.526, allocations: 395.8 kB / 0.8857 GB, free: 210.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/1.539, allocations: 6.333 MB / 0.8919 GB, free: 204.1 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/1.539, allocations: 0.8488 MB / 0.8927 GB, free: 203.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005447/1.54, allocations: 164.7 kB / 0.8929 GB, free: 203.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002105/1.54, allocations: 171.4 kB / 0.8931 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of SimCode: time 8.31e-07/1.54, allocations: 0 / 0.8931 GB, free: 202.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1751/1.715, allocations: 124.2 MB / 1.014 GB, free: 78.43 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/1.715, allocations: 256 kB / 1.015 GB, free: 78.17 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.146/7.861, allocations: 7.938 kB / 1.015 GB, free: 78.16 MB / 0.5762 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1)