Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.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.001391/0.001391, allocations: 103.8 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.001385/0.001385, 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.509/1.509, allocations: 207.6 MB / 229.8 MB, free: 11.41 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.05188/0.05188, allocations: 9.149 MB / 290.8 MB, free: 13.9 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.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",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.002234/0.002234, allocations: 72.11 kB / 405.9 MB, free: 47.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07828/0.08051, allocations: 50.73 MB / 456.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4798/0.5603, allocations: 198.4 MB / 0.6397 GB, free: 3.617 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.4587/1.019, allocations: 144 MB / 0.7803 GB, free: 252 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001116/1.02, allocations: 13.28 kB / 0.7803 GB, free: 252 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.005624/1.026, allocations: 2.096 MB / 0.7823 GB, free: 236 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005551/1.031, allocations: 2.797 MB / 0.785 GB, free: 204 kB / 0.545 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.09982/1.131, allocations: 41.52 MB / 0.8256 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003102/1.134, allocations: 1.978 MB / 0.8275 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003384/1.135, allocations: 137.8 kB / 0.8276 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001548/1.136, allocations: 0.8287 MB / 0.8285 GB, free: 9.555 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008216/1.137, allocations: 0.5551 MB / 0.829 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.686e-05/1.137, allocations: 60.81 kB / 0.8291 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.09051/1.228, allocations: 47.24 MB / 0.8752 GB, free: 3.742 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005317/1.228, allocations: 181.8 kB / 0.8754 GB, free: 3.57 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00129/1.229, allocations: 424.3 kB / 0.8758 GB, free: 3.152 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.06705/1.296, allocations: 18.8 MB / 0.8941 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/1.296, allocations: 0 / 0.8941 GB, free: 1.789 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.809e-06/1.296, allocations: 4 kB / 0.8941 GB, free: 1.785 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.4e-05/1.296, allocations: 0 / 0.8941 GB, free: 1.785 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.009852/1.306, allocations: 3.495 MB / 0.8975 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/1.306, allocations: 11.97 kB / 0.8976 GB, free: 14.22 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001265/1.306, allocations: 106.5 kB / 0.8977 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008442/1.307, allocations: 123.4 kB / 0.8978 GB, free: 13.99 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006577/1.308, allocations: 419.5 kB / 0.8982 GB, free: 13.54 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.64e-05/1.308, allocations: 44.98 kB / 0.8982 GB, free: 13.5 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.844e-05/1.308, allocations: 44 kB / 0.8983 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001883/1.31, allocations: 0.8152 MB / 0.8991 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/1.31, allocations: 3.953 kB / 0.8991 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.687e-05/1.31, allocations: 24 kB / 0.8991 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.061e-05/1.31, allocations: 29.19 kB / 0.8991 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001931/1.312, allocations: 0.7535 MB / 0.8999 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003955/1.316, allocations: 3.42 MB / 0.9032 GB, free: 8.109 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/1.318, allocations: 0.6464 MB / 0.9038 GB, free: 7.461 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008163/1.318, allocations: 435.9 kB / 0.9042 GB, free: 7.031 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6576/1.976, allocations: 185.3 MB / 1.085 GB, free: 90.14 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/1.976, allocations: 34.94 kB / 1.085 GB, free: 90.11 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=109): time 2.474e-06/1.976, allocations: 7.844 kB / 1.085 GB, free: 90.1 MB / 0.7169 GB Notification: Performance of matching and sorting (n=117): time 0.00886/1.985, allocations: 3.42 MB / 1.089 GB, free: 89.55 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.548e-05/1.985, allocations: 59.75 kB / 1.089 GB, free: 89.49 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002872/1.985, allocations: 307.9 kB / 1.089 GB, free: 89.38 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.745e-05/1.985, allocations: 35.2 kB / 1.089 GB, free: 89.35 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/1.985, allocations: 234.5 kB / 1.089 GB, free: 89.21 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.000176/1.986, allocations: 404.1 kB / 1.09 GB, free: 89 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/1.986, allocations: 142.6 kB / 1.09 GB, free: 88.98 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.09e-05/1.986, allocations: 369.6 kB / 1.09 GB, free: 88.66 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006338/1.986, allocations: 390.2 kB / 1.09 GB, free: 88.66 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006987/1.987, allocations: 0.5356 MB / 1.091 GB, free: 88.51 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001393/1.989, allocations: 0.9811 MB / 1.092 GB, free: 88.34 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.989, allocations: 0 / 1.092 GB, free: 88.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001924/1.99, allocations: 1.125 MB / 1.093 GB, free: 88.22 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/1.99, allocations: 13.17 kB / 1.093 GB, free: 88.22 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/1.99, allocations: 3.906 kB / 1.093 GB, free: 88.22 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003653/1.991, allocations: 105 kB / 1.093 GB, free: 88.2 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009717/1.992, allocations: 209.6 kB / 1.093 GB, free: 88.19 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1338/2.126, allocations: 35.29 MB / 1.128 GB, free: 72.65 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008389/2.126, allocations: 40.05 kB / 1.128 GB, free: 72.63 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/2.127, allocations: 32.78 kB / 1.128 GB, free: 72.61 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0006387/2.127, allocations: 219.4 kB / 1.128 GB, free: 72.45 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002854/2.127, allocations: 66.84 kB / 1.128 GB, free: 72.39 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003114/2.131, allocations: 2.37 MB / 1.13 GB, free: 71.17 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-05/2.131, allocations: 19.09 kB / 1.13 GB, free: 71.16 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/2.131, allocations: 4 kB / 1.13 GB, free: 71.16 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002083/2.133, allocations: 1.632 MB / 1.132 GB, free: 70.07 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00324/2.136, allocations: 2.456 MB / 1.134 GB, free: 68.73 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/2.136, allocations: 0 / 1.134 GB, free: 68.73 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00047/2.136, allocations: 119.6 kB / 1.135 GB, free: 68.65 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004509/2.137, allocations: 206.2 kB / 1.135 GB, free: 68.52 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.422e-05/2.137, allocations: 22.28 kB / 1.135 GB, free: 68.51 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001911/2.139, allocations: 3.979 MB / 1.139 GB, free: 64.51 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/2.139, allocations: 2.188 kB / 1.139 GB, free: 64.51 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002695/2.142, allocations: 1.963 MB / 1.141 GB, free: 63.38 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001513/2.142, allocations: 136.3 kB / 1.141 GB, free: 63.24 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.392e-05/2.142, allocations: 19.2 kB / 1.141 GB, free: 63.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000434/2.142, allocations: 37.16 kB / 1.141 GB, free: 63.21 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/2.142, allocations: 61.06 kB / 1.141 GB, free: 63.18 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/2.142, allocations: 22.69 kB / 1.141 GB, free: 63.17 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0002159/2.143, allocations: 252.2 kB / 1.141 GB, free: 63 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.1e-08/2.143, allocations: 0 / 1.141 GB, free: 63 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.01232/2.155, allocations: 5.549 MB / 1.147 GB, free: 58.32 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03095/2.186, allocations: 9.144 MB / 1.155 GB, free: 51.69 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003369/2.189, allocations: 1.493 MB / 1.157 GB, free: 50.68 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/2.189, allocations: 4 kB / 1.157 GB, free: 50.67 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001136/2.19, allocations: 0.7719 MB / 1.158 GB, free: 50.16 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/2.193, allocations: 0.5112 MB / 1.158 GB, free: 49.82 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01802/2.211, allocations: 8.63 MB / 1.167 GB, free: 43.36 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003259/2.211, allocations: 0.939 MB / 1.168 GB, free: 42.48 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0005982/2.212, allocations: 192.3 kB / 1.168 GB, free: 42.35 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002833/2.212, allocations: 246.5 kB / 1.168 GB, free: 42.3 MB / 0.7169 GB Notification: Performance of SimCode: time 1.082e-06/2.212, allocations: 4 kB / 1.168 GB, free: 42.3 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5283/2.74, allocations: 210.8 MB / 1.374 GB, free: 265.9 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.36/23.1, allocations: 8 kB / 1.374 GB, free: 265.9 MB / 0.7481 GB " [Timeout remaining time 637] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2_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_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 34.79619944188744] Failed to read output from testmodel.py, exit status != 0: 23.33237864729017 23.34305198 22.04434522 Calling exit ...