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.00133/0.00133, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001541/0.001541, allocations: 211.9 kB / 22.24 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.371/1.371, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo): time 0.04885/0.04885, allocations: 9.136 MB / 321.6 MB, free: 10.23 MB / 254.1 MB " [Timeout remaining time 180] Using package HelmholtzMedia with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: Performance of FrontEnd - loaded program: time 0.001913/0.001913, allocations: 63.89 kB / 446.5 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1084, allocations: 54.95 MB / 0.4897 GB, free: 9.512 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4064/0.5148, allocations: 176.5 MB / 0.6621 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4326/0.9475, allocations: 127.5 MB / 0.7866 GB, free: 152 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008794/0.9483, allocations: 14.41 kB / 0.7867 GB, free: 152 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003832/0.9522, allocations: 1.651 MB / 0.7883 GB, free: 136 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005926/0.9581, allocations: 2.389 MB / 0.7906 GB, free: 104 kB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.09643/1.055, allocations: 41.56 MB / 0.8312 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002624/1.057, allocations: 1.992 MB / 0.8331 GB, free: 7.535 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002731/1.057, allocations: 138.6 kB / 0.8333 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/1.059, allocations: 0.8427 MB / 0.8341 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006725/1.059, allocations: 0.5322 MB / 0.8346 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.139e-05/1.059, allocations: 60.41 kB / 0.8347 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07058/1.13, allocations: 32.33 MB / 0.8662 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003781/1.13, allocations: 172.8 kB / 0.8664 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007423/1.131, allocations: 364.8 kB / 0.8668 GB, free: 10.94 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05296/1.184, allocations: 16.39 MB / 0.8828 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/1.184, allocations: 0 / 0.8828 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.553e-06/1.184, allocations: 0 / 0.8828 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.097e-05/1.184, allocations: 4 kB / 0.8828 GB, free: 11.97 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.008023/1.192, allocations: 3.396 MB / 0.8861 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/1.192, allocations: 12.03 kB / 0.8861 GB, free: 8.539 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/1.192, allocations: 106.5 kB / 0.8862 GB, free: 8.426 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007397/1.193, allocations: 126 kB / 0.8863 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005779/1.194, allocations: 353.8 kB / 0.8867 GB, free: 7.934 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.25e-05/1.194, allocations: 44.94 kB / 0.8867 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.664e-05/1.194, allocations: 55.97 kB / 0.8867 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001848/1.196, allocations: 1.028 MB / 0.8878 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/1.196, allocations: 8 kB / 0.8878 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.683e-05/1.196, allocations: 16 kB / 0.8878 GB, free: 6.707 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.965e-05/1.196, allocations: 30.62 kB / 0.8878 GB, free: 6.684 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001753/1.197, allocations: 0.7614 MB / 0.8885 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003135/1.201, allocations: 2.279 MB / 0.8908 GB, free: 3.605 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001454/1.202, allocations: 0.6541 MB / 0.8914 GB, free: 2.945 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007402/1.203, allocations: 451 kB / 0.8918 GB, free: 2.504 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2676/1.47, allocations: 58.72 MB / 0.9492 GB, free: 7.883 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.873e-05/1.47, allocations: 35 kB / 0.9492 GB, free: 7.84 MB / 0.67 GB Notification: Performance of pre-optimization done (n=109): time 3.116e-06/1.47, allocations: 4 kB / 0.9492 GB, free: 7.836 MB / 0.67 GB Notification: Performance of matching and sorting (n=117): time 0.01006/1.48, allocations: 3.348 MB / 0.9525 GB, free: 4.461 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/1.481, allocations: 63.84 kB / 0.9526 GB, free: 4.387 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/1.481, allocations: 312.4 kB / 0.9529 GB, free: 4.066 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 6.469e-05/1.481, allocations: 37.7 kB / 0.9529 GB, free: 4.023 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.000185/1.481, allocations: 237.5 kB / 0.9531 GB, free: 3.785 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003508/1.482, allocations: 399.3 kB / 0.9535 GB, free: 3.402 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002132/1.482, allocations: 142.3 kB / 0.9536 GB, free: 3.258 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001904/1.482, allocations: 366.7 kB / 0.954 GB, free: 2.891 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007832/1.483, allocations: 413.7 kB / 0.9544 GB, free: 2.488 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008984/1.484, allocations: 0.5395 MB / 0.9549 GB, free: 1.898 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001717/1.485, allocations: 1.009 MB / 0.9559 GB, free: 0.8398 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/1.485, allocations: 4 kB / 0.9559 GB, free: 0.8359 MB / 0.67 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002312/1.488, allocations: 1.151 MB / 0.957 GB, free: 15.67 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/1.488, allocations: 8.453 kB / 0.957 GB, free: 15.66 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/1.488, allocations: 8 kB / 0.957 GB, free: 15.65 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004093/1.488, allocations: 106.4 kB / 0.9571 GB, free: 15.54 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/1.489, allocations: 202.3 kB / 0.9573 GB, free: 15.34 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4919/1.981, allocations: 34.98 MB / 0.9915 GB, free: 129.5 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000608/1.982, allocations: 40.67 kB / 0.9915 GB, free: 129.5 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.673e-05/1.982, allocations: 28.41 kB / 0.9915 GB, free: 129.5 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.0004503/1.982, allocations: 223.1 kB / 0.9918 GB, free: 129.4 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00016/1.982, allocations: 61.56 kB / 0.9918 GB, free: 129.4 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003871/1.986, allocations: 2.441 MB / 0.9942 GB, free: 129.2 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.532e-05/1.986, allocations: 18.55 kB / 0.9942 GB, free: 129.2 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/1.986, allocations: 1.234 kB / 0.9942 GB, free: 129.2 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002475/1.989, allocations: 1.695 MB / 0.9959 GB, free: 128.8 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003699/1.992, allocations: 2.415 MB / 0.9982 GB, free: 128.4 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.902e-06/1.992, allocations: 4.25 kB / 0.9982 GB, free: 128.4 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/1.993, allocations: 117.2 kB / 0.9984 GB, free: 128.4 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004876/1.993, allocations: 214.1 kB / 0.9986 GB, free: 128.4 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.818e-05/1.993, allocations: 17.59 kB / 0.9986 GB, free: 128.4 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/1.995, allocations: 3.781 MB / 1.002 GB, free: 125 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.995, allocations: 0 / 1.002 GB, free: 125 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003365/1.999, allocations: 2.026 MB / 1.004 GB, free: 124.7 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/1.999, allocations: 63.91 kB / 1.004 GB, free: 124.7 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.571e-05/1.999, allocations: 11.16 kB / 1.004 GB, free: 124.7 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003976/1.999, allocations: 39.41 kB / 1.004 GB, free: 124.7 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001417/2, allocations: 66.19 kB / 1.004 GB, free: 124.7 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/2, allocations: 22.48 kB / 1.004 GB, free: 124.7 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0003193/2, allocations: 254.1 kB / 1.005 GB, free: 124.6 MB / 0.7012 GB Notification: Performance of sort global known variables: time 9e-08/2, allocations: 0 / 1.005 GB, free: 124.6 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.01369/2.014, allocations: 5.541 MB / 1.01 GB, free: 124.6 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.02861/2.042, allocations: 9.204 MB / 1.019 GB, free: 123 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.003345/2.046, allocations: 1.53 MB / 1.021 GB, free: 122.7 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/2.046, allocations: 2.938 kB / 1.021 GB, free: 122.7 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.001381/2.047, allocations: 0.7939 MB / 1.021 GB, free: 122.4 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/2.05, allocations: 0.5151 MB / 1.022 GB, free: 122.4 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01943/2.069, allocations: 8.747 MB / 1.03 GB, free: 119.4 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/2.069, allocations: 336 kB / 1.031 GB, free: 119.3 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0007246/2.07, allocations: 178.2 kB / 1.031 GB, free: 119.3 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003714/2.07, allocations: 254.2 kB / 1.031 GB, free: 119.3 MB / 0.7012 GB Notification: Performance of SimCode: time 1.262e-06/2.07, allocations: 0 / 1.031 GB, free: 119.3 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2991/2.37, allocations: 213.3 MB / 1.239 GB, free: 14.82 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.25/22.62, allocations: 12.59 kB / 1.239 GB, free: 14.81 MB / 0.7637 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 os._exit(0), Time elapsed: 25.453291980084032] Failed to read output from testmodel.py, exit status != 0: 22.87253416283056 22.894475706 21.706391535 Calling exit ...