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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001744/0.001744, allocations: 107.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002132/0.002132, allocations: 212 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 207.6 MB / 229.8 MB, free: 11.43 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.07582/0.07582, allocations: 9.146 MB / 290.8 MB, free: 13.91 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 77.17 kB / 405.9 MB, free: 47.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08226/0.08443, allocations: 50.72 MB / 456.6 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph): time 0.3296/0.414, allocations: 130 MB / 0.5729 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1158/0.5298, allocations: 111.4 MB / 0.6817 GB, free: 8.328 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004618/0.5302, allocations: 15.94 kB / 0.6817 GB, free: 8.312 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003099/0.5333, allocations: 1.547 MB / 0.6832 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003751/0.5371, allocations: 1.829 MB / 0.685 GB, free: 4.926 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.07014/0.6072, allocations: 31.15 MB / 0.7154 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.00203/0.6093, allocations: 1.402 MB / 0.7168 GB, free: 4.277 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000233/0.6095, allocations: 89.72 kB / 0.7169 GB, free: 4.184 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01578/0.6253, allocations: 9.157 MB / 0.7258 GB, free: 11.01 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005886/0.6259, allocations: 390.3 kB / 0.7262 GB, free: 10.63 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.266e-05/0.6259, allocations: 48 kB / 0.7262 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3052/0.9312, allocations: 35.43 MB / 0.7608 GB, free: 47.84 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.9313, allocations: 122.4 kB / 0.7609 GB, free: 47.84 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003958/0.9317, allocations: 306.4 kB / 0.7612 GB, free: 47.84 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03311/0.9648, allocations: 14.1 MB / 0.775 GB, free: 47.43 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.9649, allocations: 0 / 0.775 GB, free: 47.43 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.285e-06/0.9649, allocations: 1.031 kB / 0.775 GB, free: 47.43 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.127e-05/0.9649, allocations: 0 / 0.775 GB, free: 47.43 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.006053/0.9709, allocations: 2.675 MB / 0.7776 GB, free: 45.92 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.971, allocations: 9.312 kB / 0.7776 GB, free: 45.92 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.082e-05/0.971, allocations: 86.95 kB / 0.7777 GB, free: 45.88 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005825/0.9716, allocations: 93.48 kB / 0.7778 GB, free: 45.86 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004115/0.972, allocations: 337.5 kB / 0.7781 GB, free: 45.63 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.9721, allocations: 33.59 kB / 0.7782 GB, free: 45.63 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.612e-05/0.9721, allocations: 31.91 kB / 0.7782 GB, free: 45.63 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001138/0.9733, allocations: 0.6024 MB / 0.7788 GB, free: 45.53 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.9733, allocations: 4.406 kB / 0.7788 GB, free: 45.53 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.893e-05/0.9733, allocations: 14.75 kB / 0.7788 GB, free: 45.53 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.861e-05/0.9733, allocations: 15.45 kB / 0.7788 GB, free: 45.53 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001195/0.9745, allocations: 0.5496 MB / 0.7793 GB, free: 45.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.9765, allocations: 2.55 MB / 0.7818 GB, free: 43.77 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.9775, allocations: 479.5 kB / 0.7823 GB, free: 43.74 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004736/0.978, allocations: 305.8 kB / 0.7826 GB, free: 43.73 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2444/1.222, allocations: 139 MB / 0.9183 GB, free: 11.67 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.691e-05/1.222, allocations: 42.72 kB / 0.9183 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=79): time 2.946e-06/1.222, allocations: 0 / 0.9183 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of matching and sorting (n=83): time 0.005844/1.228, allocations: 2.345 MB / 0.9206 GB, free: 9.809 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/1.228, allocations: 55.41 kB / 0.9207 GB, free: 9.742 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/1.229, allocations: 254.8 kB / 0.9209 GB, free: 9.535 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/1.229, allocations: 29.64 kB / 0.921 GB, free: 9.504 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/1.229, allocations: 188.8 kB / 0.9211 GB, free: 9.344 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001995/1.229, allocations: 282.4 kB / 0.9214 GB, free: 9.105 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/1.229, allocations: 100.6 kB / 0.9215 GB, free: 9.035 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001603/1.229, allocations: 358.4 kB / 0.9218 GB, free: 8.695 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005021/1.23, allocations: 266.6 kB / 0.9221 GB, free: 8.539 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005972/1.23, allocations: 396.3 kB / 0.9225 GB, free: 8.227 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/1.231, allocations: 0.7052 MB / 0.9232 GB, free: 7.742 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/1.231, allocations: 0 / 0.9232 GB, free: 7.742 MB / 0.6544 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001529/1.233, allocations: 0.7865 MB / 0.9239 GB, free: 7.207 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/1.233, allocations: 11.84 kB / 0.9239 GB, free: 7.199 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/1.233, allocations: 1.891 kB / 0.9239 GB, free: 7.199 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/1.233, allocations: 65.73 kB / 0.924 GB, free: 7.141 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000432/1.234, allocations: 102.2 kB / 0.9241 GB, free: 7.051 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07514/1.309, allocations: 17.27 MB / 0.941 GB, free: 6.332 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005022/1.309, allocations: 27.28 kB / 0.941 GB, free: 6.312 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/1.309, allocations: 24.47 kB / 0.941 GB, free: 6.293 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.0003002/1.31, allocations: 192.5 kB / 0.9412 GB, free: 6.145 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001021/1.31, allocations: 43.77 kB / 0.9412 GB, free: 6.102 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002101/1.312, allocations: 1.551 MB / 0.9428 GB, free: 5.008 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/1.312, allocations: 5.406 kB / 0.9428 GB, free: 5.004 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/1.312, allocations: 0 / 0.9428 GB, free: 5.004 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001559/1.314, allocations: 1.14 MB / 0.9439 GB, free: 4.043 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002352/1.316, allocations: 1.59 MB / 0.9454 GB, free: 2.891 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/1.316, allocations: 0 / 0.9454 GB, free: 2.891 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003749/1.316, allocations: 84.19 kB / 0.9455 GB, free: 2.816 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002196/1.316, allocations: 44.53 kB / 0.9456 GB, free: 2.777 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/1.316, allocations: 11.92 kB / 0.9456 GB, free: 2.77 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/1.318, allocations: 1.433 MB / 0.947 GB, free: 1.289 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/1.318, allocations: 0 / 0.947 GB, free: 1.289 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/1.32, allocations: 1.18 MB / 0.9481 GB, free: 472 kB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/1.32, allocations: 112.9 kB / 0.9482 GB, free: 340 kB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.336e-05/1.32, allocations: 15.36 kB / 0.9482 GB, free: 332 kB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/1.32, allocations: 19.92 kB / 0.9483 GB, free: 316 kB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/1.32, allocations: 49 kB / 0.9483 GB, free: 276 kB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/1.32, allocations: 17.39 kB / 0.9483 GB, free: 264 kB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002745/1.321, allocations: 242.8 kB / 0.9486 GB, free: 68 kB / 0.67 GB Notification: Performance of sort global known variables: time 9e-08/1.321, allocations: 4.062 kB / 0.9486 GB, free: 64 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.009483/1.33, allocations: 3.578 MB / 0.9521 GB, free: 12.59 MB / 0.6856 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.01929/1.349, allocations: 6.218 MB / 0.9581 GB, free: 7.344 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001976/1.351, allocations: 0.9053 MB / 0.959 GB, free: 6.656 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/1.351, allocations: 0 / 0.959 GB, free: 6.656 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0009149/1.352, allocations: 464.5 kB / 0.9595 GB, free: 6.32 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001941/1.354, allocations: 387.4 kB / 0.9598 GB, free: 5.984 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01377/1.368, allocations: 6.324 MB / 0.966 GB, free: 0.6055 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.179/1.547, allocations: 0.8497 MB / 0.9668 GB, free: 345.3 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005191/1.547, allocations: 161.4 kB / 0.967 GB, free: 345.3 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/1.548, allocations: 167.6 kB / 0.9671 GB, free: 345.3 MB / 0.6856 GB Notification: Performance of SimCode: time 1.252e-06/1.548, allocations: 2.344 kB / 0.9671 GB, free: 345.3 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1796/1.727, allocations: 132.6 MB / 1.097 GB, free: 241.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.17/18.89, allocations: 10.98 kB / 1.097 GB, free: 241.6 MB / 0.6856 GB " [Timeout remaining time 641] (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.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134a_ASHRAE_TestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134a_ASHRAE_TestModel_ph.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.334462326020002] Failed to read output from testmodel.py, exit status != 0: 19.07461604522541 19.083853684 18.116795229 Calling exit ...