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.0008129/0.0008129, allocations: 98.27 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.004647/0.004647, allocations: 170.6 kB / 16.27 MB, free: 6.652 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.277/1.277, 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.0442/0.0442, allocations: 9.069 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.0004937/0.0004937, allocations: 12 kB / 339.8 MB, free: 25.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08633/0.08683, allocations: 49.18 MB / 389 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.2899/0.3768, allocations: 129.6 MB / 0.5065 GB, free: 6.164 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.329/0.7059, allocations: 111.6 MB / 0.6154 GB, free: 1.844 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005937/0.7065, allocations: 6.188 kB / 0.6155 GB, free: 1.844 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00282/0.7093, allocations: 1.174 MB / 0.6166 GB, free: 1.836 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003309/0.7127, allocations: 1.463 MB / 0.618 GB, free: 1.82 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0638/0.7765, allocations: 24.96 MB / 0.6424 GB, free: 452 kB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002311/0.7788, allocations: 1.855 MB / 0.6442 GB, free: 0 / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.7791, allocations: 98.08 kB / 0.6443 GB, free: 15.98 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01446/0.7935, allocations: 8.402 MB / 0.6525 GB, free: 13.07 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004791/0.794, allocations: 391.1 kB / 0.6529 GB, free: 12.99 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.083e-05/0.7941, allocations: 18.78 kB / 0.6529 GB, free: 12.99 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05195/0.846, allocations: 31.05 MB / 0.6832 GB, free: 11.72 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002608/0.8463, allocations: 96.78 kB / 0.6833 GB, free: 11.67 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005538/0.8469, allocations: 306.6 kB / 0.6836 GB, free: 11.5 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04097/0.8879, allocations: 13.59 MB / 0.6969 GB, free: 1.102 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.8879, allocations: 2.125 kB / 0.6969 GB, free: 1.102 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.8879, allocations: 0 / 0.6969 GB, free: 1.102 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.723e-05/0.888, allocations: 0 / 0.6969 GB, free: 1.102 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.006627/0.8946, allocations: 2.486 MB / 0.6993 GB, free: 14.66 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.8946, allocations: 12.03 kB / 0.6993 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.8948, allocations: 79.95 kB / 0.6994 GB, free: 14.59 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006059/0.8954, allocations: 92.36 kB / 0.6995 GB, free: 14.5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004363/0.8958, allocations: 345.9 kB / 0.6998 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.918e-05/0.8959, allocations: 31.41 kB / 0.6999 GB, free: 14.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.46e-05/0.8959, allocations: 31.09 kB / 0.6999 GB, free: 14.14 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.8973, allocations: 0.6115 MB / 0.7005 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.8973, allocations: 0 / 0.7005 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.941e-05/0.8973, allocations: 13.69 kB / 0.7005 GB, free: 13.69 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/0.8974, allocations: 15.16 kB / 0.7005 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/0.8988, allocations: 0.5742 MB / 0.7011 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002842/0.9016, allocations: 2.572 MB / 0.7036 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001158/0.9028, allocations: 0.5168 MB / 0.7041 GB, free: 10.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005604/0.9034, allocations: 350.3 kB / 0.7044 GB, free: 9.887 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3818/1.285, allocations: 135.8 MB / 0.837 GB, free: 259 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/1.285, allocations: 36.97 kB / 0.8371 GB, free: 258.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 3.427e-06/1.285, allocations: 0 / 0.8371 GB, free: 258.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.005259/1.291, allocations: 2.406 MB / 0.8394 GB, free: 258.1 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.442e-05/1.291, allocations: 59.06 kB / 0.8395 GB, free: 258 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/1.291, allocations: 254.2 kB / 0.8397 GB, free: 257.8 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/1.291, allocations: 33.67 kB / 0.8398 GB, free: 257.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.825e-05/1.291, allocations: 189 kB / 0.8399 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/1.291, allocations: 266.2 kB / 0.8402 GB, free: 257.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.809e-05/1.291, allocations: 65.36 kB / 0.8403 GB, free: 257.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.205e-05/1.291, allocations: 350.7 kB / 0.8406 GB, free: 257 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004278/1.292, allocations: 277.9 kB / 0.8409 GB, free: 256.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004647/1.292, allocations: 413.9 kB / 0.8413 GB, free: 256.6 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009548/1.293, allocations: 0.7189 MB / 0.842 GB, free: 256.1 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.347e-06/1.293, allocations: 0 / 0.842 GB, free: 256.1 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001237/1.294, allocations: 0.8158 MB / 0.8428 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/1.294, allocations: 10.5 kB / 0.8428 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/1.294, allocations: 7.938 kB / 0.8428 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002408/1.295, allocations: 62.23 kB / 0.8428 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000375/1.295, allocations: 109 kB / 0.8429 GB, free: 255.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08777/1.383, allocations: 22.69 MB / 0.8651 GB, free: 237.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00049/1.383, allocations: 59.86 kB / 0.8651 GB, free: 237.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/1.383, allocations: 16 kB / 0.8652 GB, free: 237.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.0002413/1.384, allocations: 189.3 kB / 0.8653 GB, free: 237.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.556e-05/1.384, allocations: 43.52 kB / 0.8654 GB, free: 237.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/1.385, allocations: 1.58 MB / 0.8669 GB, free: 235.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/1.385, allocations: 10.8 kB / 0.8669 GB, free: 235.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/1.385, allocations: 1.531 kB / 0.8669 GB, free: 235.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001131/1.386, allocations: 1.172 MB / 0.8681 GB, free: 234.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0018/1.388, allocations: 1.619 MB / 0.8697 GB, free: 232.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/1.388, allocations: 2.812 kB / 0.8697 GB, free: 232.7 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003104/1.389, allocations: 91.88 kB / 0.8698 GB, free: 232.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002296/1.389, allocations: 44.83 kB / 0.8698 GB, free: 232.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/1.389, allocations: 15.94 kB / 0.8698 GB, free: 232.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007052/1.39, allocations: 1.331 MB / 0.8711 GB, free: 231.1 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.39, allocations: 0 / 0.8711 GB, free: 231.1 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/1.391, allocations: 1.213 MB / 0.8723 GB, free: 229.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.384e-05/1.391, allocations: 140.4 kB / 0.8724 GB, free: 229.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.599e-05/1.391, allocations: 8 kB / 0.8724 GB, free: 229.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003379/1.392, allocations: 47.97 kB / 0.8725 GB, free: 229.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.298e-05/1.392, allocations: 47.86 kB / 0.8725 GB, free: 229.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/1.392, allocations: 16 kB / 0.8725 GB, free: 229.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001849/1.392, allocations: 239 kB / 0.8728 GB, free: 229.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.21e-07/1.392, allocations: 0 / 0.8728 GB, free: 229.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007152/1.399, allocations: 3.181 MB / 0.8759 GB, free: 226.6 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.01434/1.413, allocations: 5.78 MB / 0.8815 GB, free: 221.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001483/1.415, allocations: 0.9664 MB / 0.8825 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/1.415, allocations: 4.188 kB / 0.8825 GB, free: 220.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0006071/1.416, allocations: 499.1 kB / 0.8829 GB, free: 219.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001873/1.417, allocations: 391.1 kB / 0.8833 GB, free: 219.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009977/1.427, allocations: 6.475 MB / 0.8896 GB, free: 212.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002258/1.428, allocations: 0.8488 MB / 0.8905 GB, free: 211.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004559/1.428, allocations: 164.9 kB / 0.8906 GB, free: 211.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/1.428, allocations: 175.3 kB / 0.8908 GB, free: 211.5 MB / 0.5762 GB Notification: Performance of SimCode: time 7.81e-07/1.428, allocations: 0 / 0.8908 GB, free: 211.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1483/1.577, allocations: 124.1 MB / 1.012 GB, free: 87.16 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/1.577, allocations: 259.3 kB / 1.012 GB, free: 86.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.788/7.365, allocations: 0 / 1.012 GB, free: 86.9 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)