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.007441/0.007441, allocations: 97.81 kB / 15.73 MB, free: 6.004 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.001515/0.001515, allocations: 195.2 kB / 16.67 MB, free: 5.934 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.566/1.566, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05223/0.05223, allocations: 9.1 MB / 279 MB, free: 12.07 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.002064/0.002064, allocations: 63.89 kB / 387 MB, free: 8.465 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3085, allocations: 48.16 MB / 435.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.1488/0.4574, allocations: 129.6 MB / 0.5515 GB, free: 14.71 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3866/0.844, allocations: 111.1 MB / 0.6601 GB, free: 308 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006208/0.8446, allocations: 11.5 kB / 0.6601 GB, free: 304 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003354/0.848, allocations: 1.367 MB / 0.6614 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003799/0.8519, allocations: 1.662 MB / 0.663 GB, free: 240 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.08667/0.9385, allocations: 29.36 MB / 0.6917 GB, free: 6.895 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002151/0.9407, allocations: 1.4 MB / 0.6931 GB, free: 5.883 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.941, allocations: 119.8 kB / 0.6932 GB, free: 5.793 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01614/0.9571, allocations: 8.952 MB / 0.7019 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007458/0.9579, allocations: 384 kB / 0.7023 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.493e-05/0.958, allocations: 44 kB / 0.7023 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07419/1.032, allocations: 34.96 MB / 0.7365 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004769/1.033, allocations: 122.2 kB / 0.7366 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005654/1.033, allocations: 301.2 kB / 0.7369 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05341/1.087, allocations: 14.09 MB / 0.7506 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/1.087, allocations: 0 / 0.7506 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.054e-06/1.087, allocations: 0 / 0.7506 GB, free: 1.211 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.553e-05/1.087, allocations: 0 / 0.7506 GB, free: 1.211 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.008166/1.095, allocations: 2.685 MB / 0.7533 GB, free: 14.48 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 0.0001219/1.095, allocations: 12.03 kB / 0.7533 GB, free: 14.46 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001782/1.095, allocations: 86.52 kB / 0.7534 GB, free: 14.37 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006614/1.096, allocations: 88.5 kB / 0.7534 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005961/1.097, allocations: 343.3 kB / 0.7538 GB, free: 13.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/1.097, allocations: 32.22 kB / 0.7538 GB, free: 13.89 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.827e-05/1.097, allocations: 35.94 kB / 0.7538 GB, free: 13.85 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001543/1.098, allocations: 0.5971 MB / 0.7544 GB, free: 13.23 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/1.098, allocations: 3.984 kB / 0.7544 GB, free: 13.23 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.088e-05/1.098, allocations: 20 kB / 0.7544 GB, free: 13.21 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.634e-05/1.098, allocations: 24.28 kB / 0.7545 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001335/1.1, allocations: 0.5376 MB / 0.755 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003198/1.103, allocations: 2.549 MB / 0.7575 GB, free: 9.879 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001424/1.104, allocations: 0.5037 MB / 0.758 GB, free: 9.367 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005798/1.105, allocations: 334.3 kB / 0.7583 GB, free: 9.039 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4487/1.554, allocations: 139 MB / 0.894 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/1.554, allocations: 37.72 kB / 0.8941 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.106e-06/1.554, allocations: 0.5 kB / 0.8941 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005754/1.56, allocations: 2.336 MB / 0.8963 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/1.56, allocations: 58.66 kB / 0.8964 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/1.56, allocations: 261 kB / 0.8966 GB, free: 217.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/1.56, allocations: 32.3 kB / 0.8967 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/1.56, allocations: 185.9 kB / 0.8969 GB, free: 217.4 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.00013/1.56, allocations: 287 kB / 0.8971 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/1.56, allocations: 100.5 kB / 0.8972 GB, free: 217 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001137/1.56, allocations: 354.8 kB / 0.8976 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005296/1.561, allocations: 265.3 kB / 0.8978 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004474/1.561, allocations: 395.9 kB / 0.8982 GB, free: 216 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008846/1.562, allocations: 0.6985 MB / 0.8989 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/1.562, allocations: 0 / 0.8989 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001302/1.564, allocations: 0.7901 MB / 0.8996 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/1.564, allocations: 8 kB / 0.8997 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.307e-06/1.564, allocations: 5.125 kB / 0.8997 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/1.564, allocations: 63.55 kB / 0.8997 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003601/1.564, allocations: 96.38 kB / 0.8998 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06484/1.629, allocations: 17.27 MB / 0.9167 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003999/1.629, allocations: 39.09 kB / 0.9167 GB, free: 196.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/1.63, allocations: 16 kB / 0.9167 GB, free: 196.6 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.0002173/1.63, allocations: 202.3 kB / 0.9169 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.869e-05/1.63, allocations: 43.72 kB / 0.917 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/1.631, allocations: 1.541 MB / 0.9185 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.849e-05/1.632, allocations: 12 kB / 0.9185 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-05/1.632, allocations: 3.938 kB / 0.9185 GB, free: 194.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001116/1.633, allocations: 1.134 MB / 0.9196 GB, free: 193.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/1.635, allocations: 1.591 MB / 0.9212 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/1.635, allocations: 4 kB / 0.9212 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003076/1.635, allocations: 83.91 kB / 0.9212 GB, free: 191.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/1.635, allocations: 52.73 kB / 0.9213 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.238e-05/1.635, allocations: 8 kB / 0.9213 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006954/1.636, allocations: 1.419 MB / 0.9227 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.636, allocations: 0 / 0.9227 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001611/1.638, allocations: 1.19 MB / 0.9238 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.488e-05/1.638, allocations: 111.5 kB / 0.9239 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.357e-05/1.638, allocations: 11.98 kB / 0.924 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/1.638, allocations: 23.98 kB / 0.924 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.181e-05/1.638, allocations: 48 kB / 0.924 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/1.638, allocations: 15.98 kB / 0.924 GB, free: 188.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001782/1.638, allocations: 247 kB / 0.9243 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.7e-07/1.638, allocations: 3.938 kB / 0.9243 GB, free: 188.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008954/1.647, allocations: 3.568 MB / 0.9278 GB, free: 185.4 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.01771/1.665, allocations: 6.216 MB / 0.9338 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001828/1.667, allocations: 0.9506 MB / 0.9348 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/1.667, allocations: 0 / 0.9348 GB, free: 178.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007014/1.668, allocations: 499.2 kB / 0.9352 GB, free: 178.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001844/1.669, allocations: 385.7 kB / 0.9356 GB, free: 177.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/1.681, allocations: 6.329 MB / 0.9418 GB, free: 171.3 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/1.681, allocations: 0.8526 MB / 0.9426 GB, free: 170.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003889/1.681, allocations: 157.7 kB / 0.9428 GB, free: 170.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/1.682, allocations: 175.4 kB / 0.9429 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of SimCode: time 4.81e-07/1.682, allocations: 0 / 0.9429 GB, free: 170.1 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2598/1.941, allocations: 132.5 MB / 1.072 GB, free: 37.33 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.77/18.71, allocations: 11.92 kB / 1.072 GB, free: 37.32 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)