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.001721/0.001721, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002121/0.002121, allocations: 218.5 kB / 22.26 MB, free: 5.121 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.483/1.483, allocations: 207.6 MB / 233 MB, free: 9.98 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.05151/0.05151, allocations: 9.162 MB / 294.4 MB, free: 12.69 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.002172/0.002172, allocations: 71.67 kB / 411.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06916/0.07133, allocations: 50.76 MB / 461.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4078/0.4791, allocations: 198.8 MB / 0.6452 GB, free: 1.535 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.4245/0.9036, allocations: 144.1 MB / 0.7859 GB, free: 224 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000755/0.9043, allocations: 12.97 kB / 0.7859 GB, free: 224 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003571/0.9079, allocations: 2.096 MB / 0.7879 GB, free: 204 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004793/0.9127, allocations: 2.804 MB / 0.7907 GB, free: 172 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.09201/1.005, allocations: 41.8 MB / 0.8315 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002637/1.007, allocations: 1.995 MB / 0.8334 GB, free: 9.523 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003235/1.008, allocations: 142.4 kB / 0.8336 GB, free: 9.477 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00134/1.009, allocations: 0.8294 MB / 0.8344 GB, free: 9.227 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007734/1.01, allocations: 0.5539 MB / 0.8349 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.663e-05/1.01, allocations: 60.44 kB / 0.835 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.08604/1.096, allocations: 48.49 MB / 0.8823 GB, free: 1.238 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003445/1.096, allocations: 183.2 kB / 0.8825 GB, free: 1.062 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007535/1.097, allocations: 423.9 kB / 0.8829 GB, free: 0.6523 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05341/1.15, allocations: 18.85 MB / 0.9013 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/1.15, allocations: 0 / 0.9013 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.643e-06/1.15, allocations: 4 kB / 0.9013 GB, free: 15.24 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.935e-05/1.15, allocations: 4 kB / 0.9013 GB, free: 15.23 MB / 0.6231 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.008449/1.159, allocations: 3.418 MB / 0.9047 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/1.159, allocations: 11.98 kB / 0.9047 GB, free: 11.77 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000136/1.159, allocations: 110.5 kB / 0.9048 GB, free: 11.66 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000825/1.16, allocations: 127.5 kB / 0.9049 GB, free: 11.53 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006457/1.161, allocations: 341.5 kB / 0.9052 GB, free: 11.17 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.294e-05/1.161, allocations: 45 kB / 0.9053 GB, free: 11.13 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.137e-05/1.161, allocations: 44 kB / 0.9053 GB, free: 11.09 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/1.163, allocations: 0.8314 MB / 0.9061 GB, free: 10.23 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.459e-05/1.163, allocations: 7.938 kB / 0.9061 GB, free: 10.22 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.393e-05/1.163, allocations: 20 kB / 0.9062 GB, free: 10.2 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-05/1.163, allocations: 29.53 kB / 0.9062 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001985/1.165, allocations: 0.7765 MB / 0.9069 GB, free: 9.406 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004207/1.169, allocations: 3.397 MB / 0.9103 GB, free: 5.73 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/1.171, allocations: 0.6514 MB / 0.9109 GB, free: 5.074 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008284/1.171, allocations: 455 kB / 0.9113 GB, free: 4.629 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3021/1.474, allocations: 58.54 MB / 0.9685 GB, free: 10.26 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.016e-05/1.474, allocations: 42.94 kB / 0.9685 GB, free: 10.21 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 3.045e-06/1.474, allocations: 0 / 0.9685 GB, free: 10.21 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.0102/1.484, allocations: 3.339 MB / 0.9718 GB, free: 6.832 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/1.484, allocations: 55.91 kB / 0.9719 GB, free: 6.762 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003899/1.484, allocations: 308.5 kB / 0.9722 GB, free: 6.453 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 5.939e-05/1.484, allocations: 33.7 kB / 0.9722 GB, free: 6.414 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/1.484, allocations: 240.8 kB / 0.9724 GB, free: 6.176 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003216/1.485, allocations: 397.2 kB / 0.9728 GB, free: 5.793 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002096/1.485, allocations: 146.2 kB / 0.9729 GB, free: 5.645 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001888/1.485, allocations: 366.8 kB / 0.9733 GB, free: 5.277 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008165/1.486, allocations: 405.7 kB / 0.9737 GB, free: 4.883 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009251/1.487, allocations: 0.5473 MB / 0.9742 GB, free: 4.285 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/1.489, allocations: 0.9978 MB / 0.9752 GB, free: 3.242 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/1.489, allocations: 0 / 0.9752 GB, free: 3.242 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002409/1.491, allocations: 1.163 MB / 0.9763 GB, free: 2.059 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/1.491, allocations: 4 kB / 0.9763 GB, free: 2.055 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/1.491, allocations: 7.984 kB / 0.9763 GB, free: 2.047 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004388/1.492, allocations: 104.8 kB / 0.9764 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/1.493, allocations: 206.9 kB / 0.9766 GB, free: 1.738 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3397/1.832, allocations: 35.01 MB / 1.011 GB, free: 356.4 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005558/1.833, allocations: 33.41 kB / 1.011 GB, free: 356.4 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.439e-05/1.833, allocations: 36.08 kB / 1.011 GB, free: 356.4 MB / 0.7012 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.0003105/1.833, allocations: 216.5 kB / 1.011 GB, free: 356.2 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/1.833, allocations: 61.19 kB / 1.011 GB, free: 356.2 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002688/1.836, allocations: 2.444 MB / 1.014 GB, free: 355.5 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.872e-05/1.836, allocations: 30.98 kB / 1.014 GB, free: 355.5 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/1.836, allocations: 0 / 1.014 GB, free: 355.5 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001932/1.838, allocations: 1.685 MB / 1.015 GB, free: 354.6 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/1.841, allocations: 2.493 MB / 1.018 GB, free: 353.4 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/1.841, allocations: 3.938 kB / 1.018 GB, free: 353.4 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/1.842, allocations: 121.7 kB / 1.018 GB, free: 353.4 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004809/1.842, allocations: 212.8 kB / 1.018 GB, free: 353.3 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.234e-05/1.842, allocations: 11.94 kB / 1.018 GB, free: 353.3 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001905/1.844, allocations: 3.779 MB / 1.022 GB, free: 349.6 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/1.844, allocations: 0 / 1.022 GB, free: 349.6 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00287/1.847, allocations: 2.033 MB / 1.024 GB, free: 348.7 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002084/1.847, allocations: 63.58 kB / 1.024 GB, free: 348.7 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.481e-05/1.847, allocations: 8 kB / 1.024 GB, free: 348.7 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/1.848, allocations: 34.86 kB / 1.024 GB, free: 348.7 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/1.848, allocations: 70.19 kB / 1.024 GB, free: 348.6 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-05/1.848, allocations: 23.55 kB / 1.024 GB, free: 348.6 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0002528/1.848, allocations: 259.5 kB / 1.024 GB, free: 348.5 MB / 0.7012 GB Notification: Performance of sort global known variables: time 7e-08/1.848, allocations: 0 / 1.024 GB, free: 348.5 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.01378/1.862, allocations: 5.54 MB / 1.03 GB, free: 348.2 MB / 0.7012 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.02937/1.891, allocations: 9.186 MB / 1.038 GB, free: 345.1 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.002983/1.894, allocations: 1.524 MB / 1.04 GB, free: 343.8 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/1.894, allocations: 0 / 1.04 GB, free: 343.8 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001101/1.895, allocations: 0.8053 MB / 1.041 GB, free: 343 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002406/1.898, allocations: 0.5074 MB / 1.041 GB, free: 342.5 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01793/1.916, allocations: 8.741 MB / 1.05 GB, free: 333.8 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/1.916, allocations: 0.9332 MB / 1.051 GB, free: 332.8 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0005487/1.917, allocations: 180.6 kB / 1.051 GB, free: 332.6 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/1.917, allocations: 255.4 kB / 1.051 GB, free: 332.4 MB / 0.7012 GB Notification: Performance of SimCode: time 8.62e-07/1.917, allocations: 3.938 kB / 1.051 GB, free: 332.4 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2733/2.19, allocations: 211.8 MB / 1.258 GB, free: 120.2 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.18/24.37, allocations: 15.83 kB / 1.258 GB, free: 120.2 MB / 0.7012 GB " [Timeout remaining time 635] (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: 35.97549184500531] Failed to read output from testmodel.py, exit status != 0: 24.62040961999446 24.636915207 23.482111334 Calling exit ...