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.001153/0.001153, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001377/0.001377, allocations: 217 kB / 23.03 MB, free: 4.922 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.361/1.361, allocations: 207.7 MB / 233.9 MB, free: 9.785 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.04976/0.04976, allocations: 9.153 MB / 295.3 MB, free: 12.51 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2",fmuType="cs",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.0021/0.0021, allocations: 71.88 kB / 411.9 MB, free: 46.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07766/0.07976, allocations: 50.75 MB / 462.6 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2): time 0.4093/0.489, allocations: 176.5 MB / 0.6242 GB, free: 4.273 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4737/0.9627, allocations: 127.5 MB / 0.7486 GB, free: 344 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008993/0.9636, allocations: 14.22 kB / 0.7486 GB, free: 344 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004494/0.9681, allocations: 1.654 MB / 0.7503 GB, free: 332 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006265/0.9744, allocations: 2.395 MB / 0.7526 GB, free: 300 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.09501/1.069, allocations: 41.66 MB / 0.7933 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.00306/1.072, allocations: 1.997 MB / 0.7952 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003268/1.073, allocations: 140.2 kB / 0.7954 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/1.074, allocations: 0.8413 MB / 0.7962 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007465/1.075, allocations: 0.5623 MB / 0.7967 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.331e-05/1.075, allocations: 60.88 kB / 0.7968 GB, free: 15.26 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06875/1.144, allocations: 33.59 MB / 0.8296 GB, free: 4.371 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004316/1.144, allocations: 179.6 kB / 0.8298 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0009022/1.145, allocations: 352.2 kB / 0.8301 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.05697/1.202, allocations: 16.43 MB / 0.8461 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/1.202, allocations: 0 / 0.8461 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.533e-06/1.202, allocations: 0 / 0.8461 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.838e-06/1.202, allocations: 0 / 0.8461 GB, free: 7.906 MB / 0.5762 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.009418/1.212, allocations: 3.404 MB / 0.8495 GB, free: 4.656 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/1.212, allocations: 13.67 kB / 0.8495 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.217e-05/1.212, allocations: 13 kB / 0.8495 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/1.212, allocations: 111.2 kB / 0.8496 GB, free: 4.551 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008147/1.213, allocations: 129.3 kB / 0.8497 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006535/1.213, allocations: 345.9 kB / 0.85 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.334e-05/1.213, allocations: 44 kB / 0.8501 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.585e-05/1.213, allocations: 49.5 kB / 0.8501 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001867/1.215, allocations: 1.037 MB / 0.8511 GB, free: 3.215 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.751e-05/1.215, allocations: 3.953 kB / 0.8512 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.372e-05/1.215, allocations: 22.31 kB / 0.8512 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/1.215, allocations: 20.62 kB / 0.8512 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/1.217, allocations: 0.7707 MB / 0.8519 GB, free: 2.648 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003106/1.22, allocations: 2.304 MB / 0.8542 GB, free: 0.7461 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001493/1.222, allocations: 0.642 MB / 0.8548 GB, free: 100 kB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007773/1.223, allocations: 458.5 kB / 0.8553 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2776/1.5, allocations: 58.72 MB / 0.9126 GB, free: 5.188 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.375e-05/1.5, allocations: 39 kB / 0.9126 GB, free: 5.141 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=109): time 3.858e-06/1.5, allocations: 2.719 kB / 0.9126 GB, free: 5.141 MB / 0.6387 GB Notification: Performance of matching and sorting (n=117): time 0.01023/1.51, allocations: 3.351 MB / 0.9159 GB, free: 1.758 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.977e-05/1.511, allocations: 55.91 kB / 0.916 GB, free: 1.691 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004551/1.511, allocations: 312.5 kB / 0.9163 GB, free: 1.379 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.139e-05/1.511, allocations: 37.7 kB / 0.9163 GB, free: 1.336 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001874/1.511, allocations: 229.5 kB / 0.9165 GB, free: 1.105 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/1.512, allocations: 404.1 kB / 0.9169 GB, free: 0.7148 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002337/1.512, allocations: 142.2 kB / 0.917 GB, free: 0.5703 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001938/1.512, allocations: 374.8 kB / 0.9174 GB, free: 200 kB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007864/1.513, allocations: 397.8 kB / 0.9178 GB, free: 15.81 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009158/1.514, allocations: 0.5512 MB / 0.9183 GB, free: 15.2 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/1.515, allocations: 1.002 MB / 0.9193 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/1.515, allocations: 1 kB / 0.9193 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002339/1.518, allocations: 1.159 MB / 0.9204 GB, free: 12.98 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/1.518, allocations: 8 kB / 0.9204 GB, free: 12.97 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/1.518, allocations: 7.938 kB / 0.9204 GB, free: 12.96 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004174/1.518, allocations: 98.5 kB / 0.9205 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/1.519, allocations: 209.8 kB / 0.9207 GB, free: 12.66 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1447/1.664, allocations: 34.99 MB / 0.9549 GB, free: 8.422 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006243/1.665, allocations: 44.02 kB / 0.955 GB, free: 8.379 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.195e-05/1.665, allocations: 28 kB / 0.955 GB, free: 8.352 MB / 0.6856 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.0004161/1.665, allocations: 219 kB / 0.9552 GB, free: 8.129 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/1.665, allocations: 67.61 kB / 0.9553 GB, free: 8.062 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003495/1.669, allocations: 2.434 MB / 0.9576 GB, free: 5.551 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.591e-05/1.669, allocations: 18.64 kB / 0.9576 GB, free: 5.535 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/1.669, allocations: 0 / 0.9576 GB, free: 5.535 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002406/1.671, allocations: 1.693 MB / 0.9593 GB, free: 3.766 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003788/1.675, allocations: 2.42 MB / 0.9617 GB, free: 1.297 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/1.675, allocations: 0 / 0.9617 GB, free: 1.297 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005176/1.675, allocations: 119.8 kB / 0.9618 GB, free: 1.18 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000543/1.676, allocations: 213.4 kB / 0.962 GB, free: 0.9609 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/1.676, allocations: 12 kB / 0.962 GB, free: 0.9492 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/1.679, allocations: 3.771 MB / 0.9657 GB, free: 12.9 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.679, allocations: 0 / 0.9657 GB, free: 12.9 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003252/1.682, allocations: 2.037 MB / 0.9677 GB, free: 10.83 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001398/1.682, allocations: 59.55 kB / 0.9677 GB, free: 10.77 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.001e-05/1.683, allocations: 15.94 kB / 0.9677 GB, free: 10.76 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004023/1.683, allocations: 35.91 kB / 0.9678 GB, free: 10.72 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/1.683, allocations: 72.52 kB / 0.9678 GB, free: 10.65 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.503e-05/1.683, allocations: 19.98 kB / 0.9679 GB, free: 10.63 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0003044/1.683, allocations: 255.2 kB / 0.9681 GB, free: 10.38 MB / 0.7012 GB Notification: Performance of sort global known variables: time 9e-08/1.683, allocations: 0 / 0.9681 GB, free: 10.38 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.01558/1.699, allocations: 5.544 MB / 0.9735 GB, free: 4.82 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.03226/1.731, allocations: 9.184 MB / 0.9825 GB, free: 12.27 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.003668/1.735, allocations: 1.517 MB / 0.984 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/1.735, allocations: 0 / 0.984 GB, free: 10.71 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.001372/1.736, allocations: 0.81 MB / 0.9848 GB, free: 9.879 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002504/1.739, allocations: 0.5119 MB / 0.9853 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02492/1.764, allocations: 8.74 MB / 0.9938 GB, free: 440 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003848/1.764, allocations: 333 kB / 0.9941 GB, free: 76 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0006732/1.765, allocations: 192.2 kB / 0.9943 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000396/1.765, allocations: 251.4 kB / 0.9945 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of SimCode: time 1.583e-06/1.765, allocations: 0 / 0.9945 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5119/2.277, allocations: 213.3 MB / 1.203 GB, free: 212.7 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.79/23.07, allocations: 7.938 kB / 1.203 GB, free: 212.7 MB / 0.7325 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_R134aTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.R134aTestModel2.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 75.86380127002485] Failed to read output from testmodel.py, exit status != 0: 23.37003256601747 23.389733531 22.183749355 Calling exit ...