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) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 90] 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"}) [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001761/0.001761, allocations: 108.3 kB / 16.62 MB, free: 5.559 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.002165/0.002165, allocations: 188.7 kB / 17.62 MB, free: 4.723 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.495/1.495, allocations: 207.6 MB / 226 MB, free: 11.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0523/0.0523, allocations: 9.153 MB / 285.1 MB, free: 15.61 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.002109/0.002109, allocations: 77.77 kB / 398.8 MB, free: 46.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0728/0.07491, allocations: 50.7 MB / 449.5 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.3696/0.4445, allocations: 130 MB / 0.5659 GB, free: 1.699 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.107/0.5516, allocations: 111.4 MB / 0.6747 GB, free: 2.406 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005237/0.5521, allocations: 7.938 kB / 0.6747 GB, free: 2.398 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003228/0.5553, allocations: 1.554 MB / 0.6762 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003669/0.559, allocations: 1.824 MB / 0.678 GB, free: 15 MB / 0.4981 GB [/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.07509/0.6341, allocations: 31.16 MB / 0.7084 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002177/0.6363, allocations: 1.41 MB / 0.7098 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/0.6365, allocations: 97.58 kB / 0.7099 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01861/0.6551, allocations: 9.236 MB / 0.7189 GB, free: 4.988 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006483/0.6558, allocations: 392.6 kB / 0.7193 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.979e-05/0.6559, allocations: 40 kB / 0.7193 GB, free: 4.566 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3172/0.973, allocations: 35.43 MB / 0.7539 GB, free: 50.09 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002638/0.9733, allocations: 126.4 kB / 0.7541 GB, free: 50.09 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005484/0.9739, allocations: 300.5 kB / 0.7543 GB, free: 50.09 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03753/1.011, allocations: 14.1 MB / 0.7681 GB, free: 49.68 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.071e-05/1.011, allocations: 0.9062 kB / 0.7681 GB, free: 49.68 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.966e-06/1.011, allocations: 1.688 kB / 0.7681 GB, free: 49.68 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.499e-05/1.011, allocations: 2.156 kB / 0.7681 GB, free: 49.68 MB / 0.545 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.007938/1.019, allocations: 2.676 MB / 0.7707 GB, free: 48.16 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/1.019, allocations: 13.28 kB / 0.7707 GB, free: 48.16 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.834e-05/1.019, allocations: 84.33 kB / 0.7708 GB, free: 48.12 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006635/1.02, allocations: 94.02 kB / 0.7709 GB, free: 48.1 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004047/1.021, allocations: 334.8 kB / 0.7712 GB, free: 47.87 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.476e-05/1.021, allocations: 31.42 kB / 0.7713 GB, free: 47.87 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.393e-05/1.021, allocations: 34.16 kB / 0.7713 GB, free: 47.87 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001165/1.022, allocations: 0.5956 MB / 0.7719 GB, free: 47.78 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/1.022, allocations: 3.562 kB / 0.7719 GB, free: 47.78 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/1.022, allocations: 13.88 kB / 0.7719 GB, free: 47.78 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.542e-05/1.022, allocations: 20.05 kB / 0.7719 GB, free: 47.78 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001212/1.023, allocations: 0.5488 MB / 0.7724 GB, free: 47.78 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/1.025, allocations: 2.551 MB / 0.7749 GB, free: 46.04 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/1.026, allocations: 479.2 kB / 0.7754 GB, free: 46.01 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004468/1.027, allocations: 309.7 kB / 0.7757 GB, free: 45.99 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2543/1.281, allocations: 139 MB / 0.9114 GB, free: 20.88 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.776e-05/1.281, allocations: 41.59 kB / 0.9114 GB, free: 20.83 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=79): time 3.216e-06/1.281, allocations: 3.984 kB / 0.9115 GB, free: 20.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=83): time 0.005321/1.286, allocations: 2.336 MB / 0.9137 GB, free: 19.02 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.089e-05/1.286, allocations: 55.41 kB / 0.9138 GB, free: 18.95 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002164/1.286, allocations: 251.3 kB / 0.914 GB, free: 18.74 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.616e-05/1.286, allocations: 37.52 kB / 0.9141 GB, free: 18.71 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/1.287, allocations: 185.5 kB / 0.9142 GB, free: 18.55 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001119/1.287, allocations: 283.1 kB / 0.9145 GB, free: 18.31 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/1.287, allocations: 100.9 kB / 0.9146 GB, free: 18.24 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001596/1.287, allocations: 348.9 kB / 0.9149 GB, free: 17.91 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004231/1.287, allocations: 268.3 kB / 0.9152 GB, free: 17.75 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004628/1.288, allocations: 411.4 kB / 0.9156 GB, free: 17.43 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008829/1.289, allocations: 0.6934 MB / 0.9163 GB, free: 16.94 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.289, allocations: 0 / 0.9163 GB, free: 16.94 MB / 0.6544 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001236/1.29, allocations: 0.7893 MB / 0.917 GB, free: 16.41 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/1.29, allocations: 11.38 kB / 0.917 GB, free: 16.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/1.29, allocations: 4 kB / 0.917 GB, free: 16.39 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002328/1.29, allocations: 64.86 kB / 0.9171 GB, free: 16.34 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003888/1.291, allocations: 97.5 kB / 0.9172 GB, free: 16.25 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0727/1.363, allocations: 17.27 MB / 0.9341 GB, free: 15.54 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/1.364, allocations: 27.91 kB / 0.9341 GB, free: 15.51 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/1.364, allocations: 16 kB / 0.9341 GB, free: 15.5 MB / 0.67 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.0002798/1.364, allocations: 192 kB / 0.9343 GB, free: 15.35 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/1.364, allocations: 47.66 kB / 0.9343 GB, free: 15.3 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002077/1.366, allocations: 1.553 MB / 0.9359 GB, free: 14.21 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.039e-05/1.366, allocations: 14.52 kB / 0.9359 GB, free: 14.2 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/1.366, allocations: 4 kB / 0.9359 GB, free: 14.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001503/1.368, allocations: 1.135 MB / 0.937 GB, free: 13.24 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002369/1.37, allocations: 1.59 MB / 0.9385 GB, free: 12.09 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-06/1.37, allocations: 0 / 0.9385 GB, free: 12.09 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003748/1.371, allocations: 86.25 kB / 0.9386 GB, free: 12.02 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002285/1.371, allocations: 47.81 kB / 0.9387 GB, free: 11.98 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.766e-05/1.371, allocations: 7.875 kB / 0.9387 GB, free: 11.97 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001178/1.372, allocations: 1.423 MB / 0.9401 GB, free: 10.5 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.372, allocations: 4.031 kB / 0.9401 GB, free: 10.49 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/1.374, allocations: 1.181 MB / 0.9412 GB, free: 9.66 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/1.374, allocations: 112.9 kB / 0.9413 GB, free: 9.531 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.191e-05/1.374, allocations: 17.45 kB / 0.9413 GB, free: 9.52 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003423/1.374, allocations: 30.91 kB / 0.9414 GB, free: 9.5 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/1.375, allocations: 55.69 kB / 0.9414 GB, free: 9.453 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.518e-05/1.375, allocations: 11.94 kB / 0.9414 GB, free: 9.445 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002661/1.375, allocations: 240.2 kB / 0.9417 GB, free: 9.258 MB / 0.67 GB Notification: Performance of sort global known variables: time 8e-08/1.375, allocations: 0 / 0.9417 GB, free: 9.258 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.009728/1.385, allocations: 3.574 MB / 0.9452 GB, free: 5.785 MB / 0.67 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.02001/1.405, allocations: 6.219 MB / 0.9512 GB, free: 0.543 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.001921/1.407, allocations: 0.9101 MB / 0.9521 GB, free: 15.85 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.407, allocations: 4 kB / 0.9521 GB, free: 15.85 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0008772/1.407, allocations: 465 kB / 0.9526 GB, free: 15.51 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/1.409, allocations: 375.9 kB / 0.9529 GB, free: 15.18 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01412/1.423, allocations: 6.331 MB / 0.9591 GB, free: 9.797 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005329/1.424, allocations: 0.8624 MB / 0.9599 GB, free: 8.914 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005024/1.424, allocations: 155.2 kB / 0.9601 GB, free: 8.762 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000214/1.425, allocations: 174.2 kB / 0.9603 GB, free: 8.703 MB / 0.6856 GB Notification: Performance of SimCode: time 6.41e-07/1.425, allocations: 0 / 0.9603 GB, free: 8.703 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3832/1.808, allocations: 132.7 MB / 1.09 GB, free: 248.2 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.97/18.78, allocations: 8.016 kB / 1.09 GB, free: 248.2 MB / 0.6856 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.022 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1) [Timeout 52.5]