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.005576/0.005576, allocations: 109.6 kB / 15.74 MB, free: 5.984 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.00119/0.00119, allocations: 193.7 kB / 16.68 MB, free: 5.906 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.383/1.383, allocations: 205.1 MB / 222.5 MB, free: 4.387 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04807/0.04807, allocations: 9.104 MB / 279 MB, free: 11.95 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.002533/0.002534, allocations: 68.47 kB / 387 MB, free: 8.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2705, allocations: 48.15 MB / 435.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.132/0.4025, allocations: 129.6 MB / 0.5515 GB, free: 14.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3253/0.7279, allocations: 111.1 MB / 0.6601 GB, free: 308 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005336/0.7284, allocations: 7.781 kB / 0.6601 GB, free: 308 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002832/0.7313, allocations: 1.364 MB / 0.6614 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003142/0.7345, allocations: 1.661 MB / 0.663 GB, free: 244 kB / 478.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.06468/0.7992, allocations: 29.36 MB / 0.6917 GB, free: 6.875 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001724/0.8009, allocations: 1.401 MB / 0.6931 GB, free: 5.863 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.8012, allocations: 122.6 kB / 0.6932 GB, free: 5.77 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01373/0.8149, allocations: 8.968 MB / 0.7019 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004864/0.8154, allocations: 384.3 kB / 0.7023 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.755e-05/0.8155, allocations: 44 kB / 0.7024 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0571/0.8726, allocations: 34.96 MB / 0.7365 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002098/0.8728, allocations: 118.4 kB / 0.7366 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004482/0.8733, allocations: 311.4 kB / 0.7369 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.03771/0.911, allocations: 14.05 MB / 0.7506 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.9111, allocations: 0 / 0.7506 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.054e-06/0.9111, allocations: 0 / 0.7506 GB, free: 1.23 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.427e-05/0.9111, allocations: 0 / 0.7506 GB, free: 1.23 MB / 0.5294 GB 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.005889/0.917, allocations: 2.578 MB / 0.7531 GB, free: 14.61 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/0.917, allocations: 8.031 kB / 0.7531 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.754e-05/0.9171, allocations: 86.52 kB / 0.7532 GB, free: 14.5 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006246/0.9178, allocations: 83.39 kB / 0.7533 GB, free: 14.42 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004235/0.9182, allocations: 342 kB / 0.7536 GB, free: 14.05 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.58e-05/0.9182, allocations: 28.66 kB / 0.7537 GB, free: 14.02 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.053e-05/0.9183, allocations: 39.94 kB / 0.7537 GB, free: 13.98 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.9196, allocations: 0.5963 MB / 0.7543 GB, free: 13.37 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.9196, allocations: 4 kB / 0.7543 GB, free: 13.37 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.88e-05/0.9197, allocations: 12 kB / 0.7543 GB, free: 13.36 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.374e-05/0.9197, allocations: 20.92 kB / 0.7543 GB, free: 13.34 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.921, allocations: 0.5481 MB / 0.7549 GB, free: 12.8 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002459/0.9235, allocations: 2.537 MB / 0.7573 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.9246, allocations: 0.5044 MB / 0.7578 GB, free: 9.527 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005287/0.9252, allocations: 339.8 kB / 0.7581 GB, free: 9.195 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4073/1.332, allocations: 139 MB / 0.8939 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.418e-05/1.333, allocations: 36.34 kB / 0.8939 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.404e-06/1.333, allocations: 0 / 0.8939 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005226/1.338, allocations: 2.332 MB / 0.8962 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.945e-05/1.338, allocations: 55.19 kB / 0.8962 GB, free: 218.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001939/1.338, allocations: 257.5 kB / 0.8965 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/1.338, allocations: 33.7 kB / 0.8965 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.742e-05/1.338, allocations: 185.1 kB / 0.8967 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.473e-05/1.338, allocations: 262.4 kB / 0.8969 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001007/1.338, allocations: 101.4 kB / 0.897 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.851e-05/1.338, allocations: 354.8 kB / 0.8974 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004138/1.339, allocations: 265.3 kB / 0.8976 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004417/1.339, allocations: 405.5 kB / 0.898 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008672/1.34, allocations: 0.6984 MB / 0.8987 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/1.34, allocations: 7.188 kB / 0.8987 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00117/1.341, allocations: 0.7827 MB / 0.8995 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/1.341, allocations: 4 kB / 0.8995 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/1.341, allocations: 7.719 kB / 0.8995 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002255/1.342, allocations: 64.17 kB / 0.8995 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003769/1.342, allocations: 99.81 kB / 0.8996 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06761/1.41, allocations: 17.26 MB / 0.9165 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004195/1.41, allocations: 27.97 kB / 0.9165 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/1.41, allocations: 20 kB / 0.9165 GB, free: 197.1 MB / 0.6075 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.0002296/1.41, allocations: 203.7 kB / 0.9167 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.186e-05/1.41, allocations: 39.53 kB / 0.9168 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001568/1.412, allocations: 1.547 MB / 0.9183 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/1.412, allocations: 8.688 kB / 0.9183 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/1.412, allocations: 2.188 kB / 0.9183 GB, free: 195.2 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001091/1.413, allocations: 1.135 MB / 0.9194 GB, free: 194 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/1.415, allocations: 1.594 MB / 0.921 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/1.415, allocations: 0 / 0.921 GB, free: 192.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003271/1.415, allocations: 83.88 kB / 0.921 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/1.415, allocations: 44.78 kB / 0.9211 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/1.415, allocations: 15.98 kB / 0.9211 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006948/1.416, allocations: 1.425 MB / 0.9225 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.416, allocations: 4 kB / 0.9225 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/1.418, allocations: 1.174 MB / 0.9236 GB, free: 189.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.048e-05/1.418, allocations: 124.5 kB / 0.9238 GB, free: 189.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.682e-05/1.418, allocations: 8 kB / 0.9238 GB, free: 189.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003018/1.418, allocations: 23.97 kB / 0.9238 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.819e-05/1.418, allocations: 43.94 kB / 0.9238 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.321e-05/1.418, allocations: 15.98 kB / 0.9238 GB, free: 189.2 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001825/1.418, allocations: 247.1 kB / 0.9241 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.5e-07/1.418, allocations: 0 / 0.9241 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006863/1.425, allocations: 3.52 MB / 0.9275 GB, free: 185.9 MB / 0.6075 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.01542/1.441, allocations: 6.159 MB / 0.9335 GB, free: 180.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001553/1.442, allocations: 0.9507 MB / 0.9345 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/1.442, allocations: 0 / 0.9345 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000692/1.443, allocations: 0.4952 MB / 0.9349 GB, free: 178.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/1.445, allocations: 378.4 kB / 0.9353 GB, free: 178.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/1.456, allocations: 6.238 MB / 0.9414 GB, free: 171.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002266/1.456, allocations: 0.8565 MB / 0.9422 GB, free: 171.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004042/1.457, allocations: 167 kB / 0.9424 GB, free: 170.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/1.457, allocations: 171.4 kB / 0.9426 GB, free: 170.7 MB / 0.6075 GB Notification: Performance of SimCode: time 7.02e-07/1.457, allocations: 0 / 0.9426 GB, free: 170.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1642/1.621, allocations: 132.7 MB / 1.072 GB, free: 37.76 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.81/18.44, allocations: 7.953 kB / 1.072 GB, free: 37.75 MB / 0.6075 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)