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.0008664/0.0008663, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0007788/0.0007788, allocations: 168.7 kB / 15.95 MB, free: 204 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.222/1.222, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04252/0.04252, allocations: 9.056 MB / 279.5 MB, free: 12.25 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.0004874/0.0004874, allocations: 12 kB / 339.2 MB, free: 25.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07371/0.0742, allocations: 49.2 MB / 388.4 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.2532/0.3275, allocations: 120.7 MB / 0.4972 GB, free: 15.42 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.316/0.6435, allocations: 103.9 MB / 0.5986 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006077/0.6442, allocations: 6.906 kB / 0.5987 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002588/0.6468, allocations: 1.072 MB / 0.5997 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00283/0.6496, allocations: 1.324 MB / 0.601 GB, free: 10.33 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05269/0.7023, allocations: 22.45 MB / 0.6229 GB, free: 9.961 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002606/0.705, allocations: 1.577 MB / 0.6245 GB, free: 9.957 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002179/0.7052, allocations: 89 kB / 0.6245 GB, free: 9.941 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01539/0.7206, allocations: 8.815 MB / 0.6332 GB, free: 8.676 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004178/0.721, allocations: 366.1 kB / 0.6335 GB, free: 8.543 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.064e-05/0.7211, allocations: 20.06 kB / 0.6335 GB, free: 8.543 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04846/0.7696, allocations: 27.58 MB / 0.6605 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.7698, allocations: 90.8 kB / 0.6605 GB, free: 12.09 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003981/0.7703, allocations: 142.8 kB / 0.6607 GB, free: 11.97 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01818/0.7884, allocations: 8.568 MB / 0.669 GB, free: 5.141 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.7885, allocations: 0 / 0.669 GB, free: 5.141 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.7885, allocations: 1.422 kB / 0.669 GB, free: 5.141 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.62e-05/0.7885, allocations: 4 kB / 0.6691 GB, free: 5.137 MB / 462.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.005935/0.7945, allocations: 2.497 MB / 0.6715 GB, free: 2.691 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.629e-05/0.7945, allocations: 8.031 kB / 0.6715 GB, free: 2.684 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001203/0.7946, allocations: 86.02 kB / 0.6716 GB, free: 2.617 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005845/0.7952, allocations: 92.67 kB / 0.6717 GB, free: 2.527 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.7957, allocations: 331 kB / 0.672 GB, free: 2.215 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.7957, allocations: 30.41 kB / 0.672 GB, free: 2.199 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.698e-05/0.7958, allocations: 29.94 kB / 0.672 GB, free: 2.18 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.797, allocations: 0.6149 MB / 0.6726 GB, free: 1.73 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.797, allocations: 0 / 0.6726 GB, free: 1.73 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.797, allocations: 18.12 kB / 0.6727 GB, free: 1.723 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.7971, allocations: 17.41 kB / 0.6727 GB, free: 1.711 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.7983, allocations: 0.5673 MB / 0.6732 GB, free: 1.309 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002535/0.8008, allocations: 2.555 MB / 0.6757 GB, free: 14.93 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/0.8019, allocations: 0.5092 MB / 0.6762 GB, free: 14.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005046/0.8024, allocations: 354.6 kB / 0.6766 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3452/1.148, allocations: 135.8 MB / 0.8092 GB, free: 277.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/1.148, allocations: 36.47 kB / 0.8092 GB, free: 277.9 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=79): time 2.925e-06/1.148, allocations: 0 / 0.8092 GB, free: 277.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=83): time 0.00535/1.153, allocations: 2.393 MB / 0.8116 GB, free: 277.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.546e-05/1.153, allocations: 64.52 kB / 0.8116 GB, free: 277.4 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/1.153, allocations: 245.6 kB / 0.8119 GB, free: 277.2 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/1.153, allocations: 36.55 kB / 0.8119 GB, free: 277.2 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.728e-05/1.154, allocations: 182.5 kB / 0.8121 GB, free: 277.1 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/1.154, allocations: 274 kB / 0.8123 GB, free: 276.9 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.774e-05/1.154, allocations: 7.75 kB / 0.8123 GB, free: 276.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.014e-05/1.154, allocations: 350.4 kB / 0.8127 GB, free: 276.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004393/1.154, allocations: 283.8 kB / 0.8129 GB, free: 276.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004745/1.155, allocations: 404 kB / 0.8133 GB, free: 276.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004884/1.155, allocations: 336.3 kB / 0.8136 GB, free: 276.3 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.155, allocations: 1.188 kB / 0.8136 GB, free: 276.3 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001245/1.156, allocations: 0.8137 MB / 0.8144 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/1.156, allocations: 6.875 kB / 0.8144 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/1.156, allocations: 7.562 kB / 0.8145 GB, free: 275.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002178/1.157, allocations: 62.3 kB / 0.8145 GB, free: 275.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003705/1.157, allocations: 105.9 kB / 0.8146 GB, free: 275.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.078/1.235, allocations: 22.7 MB / 0.8368 GB, free: 260.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004476/1.236, allocations: 48.78 kB / 0.8368 GB, free: 260.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.849e-05/1.236, allocations: 25.11 kB / 0.8369 GB, free: 260.7 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.state.phase,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002287/1.236, allocations: 193.6 kB / 0.837 GB, free: 260.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.952e-05/1.236, allocations: 47.39 kB / 0.8371 GB, free: 260.5 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001512/1.237, allocations: 1.583 MB / 0.8386 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/1.237, allocations: 4.938 kB / 0.8386 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/1.238, allocations: 3.938 kB / 0.8386 GB, free: 258.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001078/1.239, allocations: 1.168 MB / 0.8398 GB, free: 257.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/1.24, allocations: 1.621 MB / 0.8414 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/1.24, allocations: 0 / 0.8414 GB, free: 255.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000302/1.241, allocations: 83.88 kB / 0.8414 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002053/1.241, allocations: 48.84 kB / 0.8415 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/1.241, allocations: 15.94 kB / 0.8415 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006435/1.242, allocations: 1.331 MB / 0.8428 GB, free: 254.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/1.242, allocations: 0 / 0.8428 GB, free: 254.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001427/1.243, allocations: 1.22 MB / 0.844 GB, free: 253.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/1.243, allocations: 144.4 kB / 0.8441 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.484e-05/1.243, allocations: 14.14 kB / 0.8441 GB, free: 252.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/1.243, allocations: 44.02 kB / 0.8442 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.77e-05/1.244, allocations: 47.92 kB / 0.8442 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/1.244, allocations: 12 kB / 0.8442 GB, free: 252.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001792/1.244, allocations: 239 kB / 0.8445 GB, free: 252.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.21e-07/1.244, allocations: 0 / 0.8445 GB, free: 252.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.006193/1.25, allocations: 3.181 MB / 0.8476 GB, free: 249.8 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0139/1.264, allocations: 5.771 MB / 0.8532 GB, free: 244.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001231/1.265, allocations: 0.9624 MB / 0.8542 GB, free: 243.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/1.265, allocations: 192 / 0.8542 GB, free: 243.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005675/1.266, allocations: 495 kB / 0.8546 GB, free: 242.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/1.267, allocations: 329.2 kB / 0.8549 GB, free: 242.6 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006925/1.274, allocations: 4.345 MB / 0.8592 GB, free: 238.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/1.274, allocations: 0.8447 MB / 0.86 GB, free: 237.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003954/1.275, allocations: 165.3 kB / 0.8602 GB, free: 237.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/1.275, allocations: 171.4 kB / 0.8603 GB, free: 237 MB / 0.5762 GB Notification: Performance of SimCode: time 7.12e-07/1.275, allocations: 0 / 0.8603 GB, free: 237 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1347/1.41, allocations: 123.2 MB / 0.9806 GB, free: 113.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001683/1.41, allocations: 241.8 kB / 0.9809 GB, free: 113.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.574/6.984, allocations: 0 / 0.9809 GB, free: 113.3 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/linux/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) Environment - environmentSimulation: