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.001477/0.001477, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001781/0.001781, allocations: 192.4 kB / 16.25 MB, free: 6.625 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.388/1.388, allocations: 205.1 MB / 222.1 MB, free: 4.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.044/0.044, allocations: 9.086 MB / 278.5 MB, free: 12.36 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.001524/0.001524, allocations: 59.91 kB / 337.6 MB, free: 25.67 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08569/0.08723, allocations: 48.16 MB / 385.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.3253/0.4126, allocations: 129 MB / 0.5027 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3446/0.7572, allocations: 110.8 MB / 0.611 GB, free: 296 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005781/0.7579, allocations: 6.344 kB / 0.611 GB, free: 296 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003112/0.761, allocations: 1.28 MB / 0.6122 GB, free: 288 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003809/0.7649, allocations: 1.564 MB / 0.6138 GB, free: 268 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07179/0.8367, allocations: 26.49 MB / 0.6396 GB, free: 15.45 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002083/0.8388, allocations: 1.405 MB / 0.641 GB, free: 15.32 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003127/0.8391, allocations: 125.4 kB / 0.6411 GB, free: 15.29 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01434/0.8534, allocations: 9.055 MB / 0.65 GB, free: 12.59 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005968/0.8541, allocations: 391.1 kB / 0.6503 GB, free: 12.33 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.129e-05/0.8541, allocations: 43.94 kB / 0.6504 GB, free: 12.29 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05834/0.9125, allocations: 34.22 MB / 0.6838 GB, free: 3.953 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.9128, allocations: 118.3 kB / 0.6839 GB, free: 3.84 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005835/0.9134, allocations: 309 kB / 0.6842 GB, free: 3.539 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04107/0.9544, allocations: 14.1 MB / 0.698 GB, free: 6.535 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.9545, allocations: 0 / 0.698 GB, free: 6.535 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.9545, allocations: 4 kB / 0.698 GB, free: 6.531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.9545, allocations: 0 / 0.698 GB, free: 6.531 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.006145/0.9607, allocations: 2.563 MB / 0.7005 GB, free: 3.918 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.9607, allocations: 12.02 kB / 0.7005 GB, free: 3.906 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.43e-05/0.9608, allocations: 86.52 kB / 0.7006 GB, free: 3.812 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000629/0.9615, allocations: 83.41 kB / 0.7007 GB, free: 3.73 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.9619, allocations: 340.3 kB / 0.701 GB, free: 3.363 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.597e-05/0.9619, allocations: 28.66 kB / 0.701 GB, free: 3.336 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.495e-05/0.962, allocations: 36 kB / 0.701 GB, free: 3.301 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00127/0.9633, allocations: 0.5963 MB / 0.7016 GB, free: 2.691 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.9633, allocations: 7.906 kB / 0.7016 GB, free: 2.684 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.232e-05/0.9634, allocations: 16 kB / 0.7017 GB, free: 2.668 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.142e-05/0.9634, allocations: 20.52 kB / 0.7017 GB, free: 2.652 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.9646, allocations: 0.552 MB / 0.7022 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/0.9671, allocations: 2.548 MB / 0.7047 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.9682, allocations: 0.5044 MB / 0.7052 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005067/0.9687, allocations: 333.6 kB / 0.7055 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4035/1.372, allocations: 139 MB / 0.8412 GB, free: 279.5 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.488e-05/1.372, allocations: 36.75 kB / 0.8413 GB, free: 279.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.897e-06/1.372, allocations: 4.797 kB / 0.8413 GB, free: 279.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005341/1.378, allocations: 2.339 MB / 0.8436 GB, free: 278.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/1.378, allocations: 63.94 kB / 0.8436 GB, free: 278.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000211/1.378, allocations: 246.6 kB / 0.8438 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/1.378, allocations: 37.67 kB / 0.8439 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/1.378, allocations: 178.3 kB / 0.8441 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/1.378, allocations: 275.1 kB / 0.8443 GB, free: 277.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/1.378, allocations: 93.52 kB / 0.8444 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.541e-05/1.378, allocations: 354.7 kB / 0.8447 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004125/1.379, allocations: 274.8 kB / 0.845 GB, free: 276.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004646/1.379, allocations: 390.7 kB / 0.8454 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008627/1.38, allocations: 0.6974 MB / 0.8461 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/1.38, allocations: 3.938 kB / 0.8461 GB, free: 276.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001205/1.381, allocations: 0.7907 MB / 0.8468 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/1.381, allocations: 7.906 kB / 0.8468 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/1.381, allocations: 3.969 kB / 0.8468 GB, free: 275.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002328/1.382, allocations: 63.45 kB / 0.8469 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003691/1.382, allocations: 101.1 kB / 0.847 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09089/1.473, allocations: 23.04 MB / 0.8695 GB, free: 255.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004535/1.473, allocations: 59.8 kB / 0.8696 GB, free: 255.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/1.473, allocations: 20 kB / 0.8696 GB, free: 255.3 MB / 0.5919 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.0002097/1.474, allocations: 186.9 kB / 0.8698 GB, free: 255.1 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.612e-05/1.474, allocations: 47.53 kB / 0.8698 GB, free: 255.1 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/1.475, allocations: 1.541 MB / 0.8713 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.306e-05/1.475, allocations: 15.92 kB / 0.8713 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/1.475, allocations: 4 kB / 0.8713 GB, free: 253.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001059/1.476, allocations: 1.133 MB / 0.8724 GB, free: 252.2 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001682/1.478, allocations: 1.597 MB / 0.874 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/1.478, allocations: 0 / 0.874 GB, free: 250.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003096/1.478, allocations: 83.88 kB / 0.8741 GB, free: 250.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001914/1.479, allocations: 44.84 kB / 0.8741 GB, free: 250.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.19e-05/1.479, allocations: 8 kB / 0.8741 GB, free: 250.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006848/1.479, allocations: 1.429 MB / 0.8755 GB, free: 248.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/1.479, allocations: 4.031 kB / 0.8755 GB, free: 248.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001451/1.481, allocations: 1.18 MB / 0.8767 GB, free: 247.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/1.481, allocations: 112.6 kB / 0.8768 GB, free: 247.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.75e-05/1.481, allocations: 8 kB / 0.8768 GB, free: 247.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003307/1.481, allocations: 43.94 kB / 0.8768 GB, free: 247.5 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/1.481, allocations: 43.94 kB / 0.8769 GB, free: 247.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/1.481, allocations: 11.98 kB / 0.8769 GB, free: 247.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001863/1.482, allocations: 239.1 kB / 0.8771 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/1.482, allocations: 3.938 kB / 0.8771 GB, free: 247.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006639/1.488, allocations: 3.186 MB / 0.8802 GB, free: 244.4 MB / 0.5919 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.01523/1.503, allocations: 5.741 MB / 0.8858 GB, free: 239.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002384/1.506, allocations: 0.9748 MB / 0.8868 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/1.506, allocations: 0 / 0.8868 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007361/1.507, allocations: 498.9 kB / 0.8873 GB, free: 237.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/1.508, allocations: 387.2 kB / 0.8876 GB, free: 237.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01189/1.52, allocations: 6.346 MB / 0.8938 GB, free: 230.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/1.521, allocations: 0.8525 MB / 0.8947 GB, free: 229.8 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005021/1.521, allocations: 166.8 kB / 0.8948 GB, free: 229.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/1.521, allocations: 163.4 kB / 0.895 GB, free: 229.5 MB / 0.5919 GB Notification: Performance of SimCode: time 8.62e-07/1.521, allocations: 4 kB / 0.895 GB, free: 229.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.174/1.695, allocations: 124.3 MB / 1.016 GB, free: 104.9 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/1.696, allocations: 252.2 kB / 1.017 GB, free: 104.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.998/7.694, allocations: 0 / 1.017 GB, free: 104.7 MB / 0.5919 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)