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.001326/0.001326, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.519/1.519, allocations: 205.1 MB / 222.4 MB, free: 4.598 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05105/0.05105, allocations: 9.096 MB / 278.9 MB, free: 12.16 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.001674/0.001674, allocations: 71.89 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1018, allocations: 48.16 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.4414/0.5433, allocations: 129.6 MB / 0.5038 GB, free: 4.191 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.5325/1.076, allocations: 111.1 MB / 0.6123 GB, free: 340 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000994/1.077, allocations: 6.906 kB / 0.6123 GB, free: 340 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00446/1.081, allocations: 1.365 MB / 0.6137 GB, free: 332 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005293/1.087, allocations: 1.652 MB / 0.6153 GB, free: 312 kB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.1095/1.196, allocations: 29.35 MB / 0.6439 GB, free: 13.65 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002896/1.199, allocations: 1.397 MB / 0.6453 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003303/1.2, allocations: 125 kB / 0.6454 GB, free: 13.3 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01956/1.219, allocations: 8.953 MB / 0.6542 GB, free: 10.15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007488/1.22, allocations: 380.7 kB / 0.6545 GB, free: 9.871 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.382e-05/1.22, allocations: 44 kB / 0.6546 GB, free: 9.828 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.08346/1.304, allocations: 33.48 MB / 0.6873 GB, free: 0.8516 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002894/1.304, allocations: 125.2 kB / 0.6874 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007027/1.305, allocations: 308.5 kB / 0.6877 GB, free: 448 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06854/1.373, allocations: 14.06 MB / 0.7014 GB, free: 3.461 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/1.373, allocations: 0 / 0.7014 GB, free: 3.461 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.364e-06/1.373, allocations: 0 / 0.7014 GB, free: 3.461 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/1.373, allocations: 0 / 0.7014 GB, free: 3.461 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.009738/1.383, allocations: 2.564 MB / 0.7039 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/1.383, allocations: 8.031 kB / 0.7039 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/1.383, allocations: 86.52 kB / 0.704 GB, free: 0.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007103/1.384, allocations: 83.39 kB / 0.7041 GB, free: 0.668 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005288/1.384, allocations: 340.3 kB / 0.7044 GB, free: 308 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/1.384, allocations: 32.66 kB / 0.7044 GB, free: 276 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.261e-05/1.385, allocations: 28 kB / 0.7045 GB, free: 248 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/1.386, allocations: 0.6002 MB / 0.705 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.303e-05/1.386, allocations: 11.84 kB / 0.7051 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.867e-05/1.386, allocations: 19.98 kB / 0.7051 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/1.386, allocations: 14.19 kB / 0.7051 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001384/1.388, allocations: 0.5442 MB / 0.7056 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003061/1.391, allocations: 2.56 MB / 0.7081 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/1.392, allocations: 0.5054 MB / 0.7086 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005726/1.392, allocations: 338.2 kB / 0.7089 GB, free: 11.42 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5511/1.944, allocations: 139 MB / 0.8447 GB, free: 276.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.094e-05/1.944, allocations: 43.44 kB / 0.8447 GB, free: 276.4 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 4.699e-06/1.944, allocations: 0 / 0.8447 GB, free: 276.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.005819/1.95, allocations: 2.333 MB / 0.847 GB, free: 275.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/1.95, allocations: 62.98 kB / 0.847 GB, free: 275 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/1.95, allocations: 244.3 kB / 0.8473 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.831e-05/1.95, allocations: 37.69 kB / 0.8473 GB, free: 274.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.328e-05/1.95, allocations: 181.9 kB / 0.8475 GB, free: 274.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/1.95, allocations: 269 kB / 0.8477 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001137/1.95, allocations: 97.7 kB / 0.8478 GB, free: 274.4 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 8.347e-05/1.95, allocations: 358.7 kB / 0.8482 GB, free: 274 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004415/1.951, allocations: 275.3 kB / 0.8484 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005355/1.951, allocations: 396.9 kB / 0.8488 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009794/1.952, allocations: 0.7011 MB / 0.8495 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/1.952, allocations: 0 / 0.8495 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001305/1.954, allocations: 0.7885 MB / 0.8503 GB, free: 272.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/1.954, allocations: 7.906 kB / 0.8503 GB, free: 272.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/1.954, allocations: 9.281 kB / 0.8503 GB, free: 272.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/1.954, allocations: 57.06 kB / 0.8503 GB, free: 272.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004094/1.954, allocations: 101.2 kB / 0.8504 GB, free: 272.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09065/2.045, allocations: 23.02 MB / 0.8729 GB, free: 251.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004466/2.045, allocations: 35.98 kB / 0.873 GB, free: 251.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.04e-05/2.045, allocations: 23.98 kB / 0.873 GB, free: 251.8 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.0002825/2.046, allocations: 184.8 kB / 0.8732 GB, free: 251.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.813e-05/2.046, allocations: 43.44 kB / 0.8732 GB, free: 251.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001609/2.047, allocations: 1.552 MB / 0.8747 GB, free: 249.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/2.048, allocations: 23.67 kB / 0.8747 GB, free: 249.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/2.048, allocations: 0 / 0.8747 GB, free: 249.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001245/2.049, allocations: 1.141 MB / 0.8758 GB, free: 248.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002072/2.051, allocations: 1.596 MB / 0.8774 GB, free: 247 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/2.051, allocations: 0 / 0.8774 GB, free: 247 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003218/2.051, allocations: 83.88 kB / 0.8775 GB, free: 247 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002182/2.051, allocations: 40.84 kB / 0.8775 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/2.051, allocations: 12 kB / 0.8775 GB, free: 246.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009108/2.052, allocations: 1.422 MB / 0.8789 GB, free: 245.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/2.052, allocations: 0 / 0.8789 GB, free: 245.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/2.054, allocations: 1.184 MB / 0.8801 GB, free: 244.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.382e-05/2.054, allocations: 116.6 kB / 0.8802 GB, free: 244 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.795e-05/2.054, allocations: 11.91 kB / 0.8802 GB, free: 244 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002991/2.055, allocations: 27.97 kB / 0.8802 GB, free: 244 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/2.055, allocations: 43.94 kB / 0.8803 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.438e-05/2.055, allocations: 8 kB / 0.8803 GB, free: 243.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002134/2.055, allocations: 247.1 kB / 0.8805 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/2.055, allocations: 0 / 0.8805 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01105/2.066, allocations: 3.186 MB / 0.8836 GB, free: 240.9 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.01926/2.085, allocations: 5.737 MB / 0.8892 GB, free: 235.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002369/2.088, allocations: 0.9663 MB / 0.8902 GB, free: 234.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/2.088, allocations: 0 / 0.8902 GB, free: 234.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007788/2.088, allocations: 499.2 kB / 0.8906 GB, free: 234.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001982/2.09, allocations: 381 kB / 0.891 GB, free: 233.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/2.104, allocations: 6.152 MB / 0.897 GB, free: 227.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/2.104, allocations: 0.8526 MB / 0.8979 GB, free: 226.5 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005121/2.105, allocations: 167.3 kB / 0.898 GB, free: 226.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002344/2.105, allocations: 171.4 kB / 0.8982 GB, free: 226.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.182e-06/2.105, allocations: 0 / 0.8982 GB, free: 226.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.218/2.323, allocations: 124.6 MB / 1.02 GB, free: 101.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.99/19.32, allocations: 15.69 kB / 1.02 GB, free: 101.4 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)