Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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.001373/0.001373, allocations: 104.4 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.001428/0.001428, 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.549/1.549, allocations: 207.6 MB / 229.8 MB, free: 11.4 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.05584/0.05584, allocations: 9.155 MB / 290.8 MB, free: 13.89 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.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",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.002189/0.002189, allocations: 82.02 kB / 405.9 MB, free: 47.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09391/0.0961, allocations: 50.72 MB / 456.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.4187/0.5148, allocations: 142.7 MB / 0.5852 GB, free: 7.945 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1096/0.6244, allocations: 97.91 MB / 0.6808 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007536/0.6251, allocations: 7.938 kB / 0.6809 GB, free: 9.262 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003912/0.6291, allocations: 1.555 MB / 0.6824 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0043/0.6334, allocations: 1.829 MB / 0.6842 GB, free: 5.867 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.08599/0.7193, allocations: 31.35 MB / 0.7148 GB, free: 6.418 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002268/0.7216, allocations: 1.414 MB / 0.7162 GB, free: 5 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/0.7219, allocations: 89.72 kB / 0.7162 GB, free: 4.906 MB / 0.5294 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:620:5-620:120:writable] Warning: assert triggered: setState_pTX: d_min and d_max did not bracket the root Notification: Performance of NFEvalConstants.evaluate: time 0.01845/0.7404, allocations: 10.06 MB / 0.7261 GB, free: 10.83 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005989/0.741, allocations: 390.5 kB / 0.7264 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.848e-05/0.7411, allocations: 40 kB / 0.7265 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3433/1.084, allocations: 36.84 MB / 0.7625 GB, free: 47.02 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002852/1.085, allocations: 125.5 kB / 0.7626 GB, free: 47.02 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005638/1.085, allocations: 304.6 kB / 0.7629 GB, free: 47.02 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04518/1.13, allocations: 14.62 MB / 0.7771 GB, free: 46.59 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 9.768e-06/1.13, allocations: 3.938 kB / 0.7771 GB, free: 46.59 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.444e-06/1.13, allocations: 0 / 0.7771 GB, free: 46.59 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.658e-05/1.13, allocations: 0 / 0.7771 GB, free: 46.59 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.007717/1.138, allocations: 2.768 MB / 0.7798 GB, free: 45.04 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/1.138, allocations: 11.52 kB / 0.7799 GB, free: 45.04 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.327e-05/1.138, allocations: 83.34 kB / 0.7799 GB, free: 45 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005589/1.139, allocations: 80.53 kB / 0.78 GB, free: 44.97 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005783/1.139, allocations: 338.1 kB / 0.7803 GB, free: 44.74 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/1.139, allocations: 30.31 kB / 0.7804 GB, free: 44.74 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/1.139, allocations: 34.25 kB / 0.7804 GB, free: 44.74 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/1.141, allocations: 0.5815 MB / 0.781 GB, free: 44.64 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.309e-05/1.141, allocations: 6.625 kB / 0.781 GB, free: 44.64 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.23e-05/1.141, allocations: 15.12 kB / 0.781 GB, free: 44.64 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.512e-05/1.141, allocations: 12.16 kB / 0.781 GB, free: 44.64 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001126/1.142, allocations: 0.5244 MB / 0.7815 GB, free: 44.63 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002245/1.144, allocations: 2.489 MB / 0.7839 GB, free: 42.95 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000946/1.145, allocations: 458.8 kB / 0.7844 GB, free: 42.92 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000483/1.146, allocations: 305.6 kB / 0.7847 GB, free: 42.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1651/1.311, allocations: 113.4 MB / 0.8954 GB, free: 22.91 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/1.311, allocations: 34.84 kB / 0.8955 GB, free: 22.86 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 2.555e-06/1.311, allocations: 0 / 0.8955 GB, free: 22.86 MB / 0.6387 GB Notification: Performance of matching and sorting (n=83): time 0.006468/1.317, allocations: 2.442 MB / 0.8979 GB, free: 20.98 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.835e-05/1.317, allocations: 57.47 kB / 0.8979 GB, free: 20.91 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/1.317, allocations: 256 kB / 0.8982 GB, free: 20.7 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.606e-05/1.317, allocations: 33.02 kB / 0.8982 GB, free: 20.67 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/1.318, allocations: 188.7 kB / 0.8984 GB, free: 20.51 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/1.318, allocations: 281.3 kB / 0.8986 GB, free: 20.27 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/1.318, allocations: 105 kB / 0.8987 GB, free: 20.2 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001667/1.318, allocations: 348.8 kB / 0.8991 GB, free: 19.86 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004805/1.318, allocations: 279.7 kB / 0.8993 GB, free: 19.7 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005039/1.319, allocations: 403.8 kB / 0.8997 GB, free: 19.39 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/1.32, allocations: 0.7085 MB / 0.9004 GB, free: 18.91 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/1.32, allocations: 6.062 kB / 0.9004 GB, free: 18.9 MB / 0.6387 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001533/1.322, allocations: 0.819 MB / 0.9012 GB, free: 18.35 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/1.322, allocations: 4 kB / 0.9012 GB, free: 18.34 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/1.322, allocations: 4 kB / 0.9012 GB, free: 18.34 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002959/1.322, allocations: 77.38 kB / 0.9013 GB, free: 18.27 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/1.322, allocations: 120.7 kB / 0.9014 GB, free: 18.17 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0507/1.373, allocations: 14.7 MB / 0.9158 GB, free: 3.637 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004805/1.374, allocations: 31.91 kB / 0.9158 GB, free: 3.609 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.355e-05/1.374, allocations: 23.73 kB / 0.9158 GB, free: 3.59 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003249/1.374, allocations: 182.2 kB / 0.916 GB, free: 3.449 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/1.374, allocations: 47.66 kB / 0.916 GB, free: 3.402 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002447/1.377, allocations: 1.711 MB / 0.9177 GB, free: 2.199 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/1.377, allocations: 18.55 kB / 0.9177 GB, free: 2.188 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/1.377, allocations: 0 / 0.9177 GB, free: 2.188 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001864/1.378, allocations: 1.257 MB / 0.9189 GB, free: 1.148 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/1.382, allocations: 1.742 MB / 0.9206 GB, free: 15.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/1.382, allocations: 0 / 0.9206 GB, free: 15.9 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004009/1.382, allocations: 79.94 kB / 0.9207 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003898/1.382, allocations: 123.8 kB / 0.9208 GB, free: 15.73 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.003e-05/1.382, allocations: 11.62 kB / 0.9209 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001943/1.384, allocations: 2.083 MB / 0.9229 GB, free: 13.63 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.384, allocations: 8.062 kB / 0.9229 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/1.387, allocations: 1.414 MB / 0.9243 GB, free: 12.65 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001551/1.387, allocations: 124.7 kB / 0.9244 GB, free: 12.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.931e-05/1.387, allocations: 7.875 kB / 0.9244 GB, free: 12.51 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003283/1.387, allocations: 38.03 kB / 0.9244 GB, free: 12.48 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/1.387, allocations: 47.5 kB / 0.9245 GB, free: 12.45 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/1.387, allocations: 15.92 kB / 0.9245 GB, free: 12.43 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002522/1.388, allocations: 221 kB / 0.9247 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of sort global known variables: time 7e-08/1.388, allocations: 0 / 0.9247 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00845/1.396, allocations: 3.04 MB / 0.9277 GB, free: 9.316 MB / 0.6544 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.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * 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: 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01879/1.415, allocations: 5.684 MB / 0.9332 GB, free: 4.57 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002427/1.417, allocations: 1.001 MB / 0.9342 GB, free: 3.805 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/1.417, allocations: 2 kB / 0.9342 GB, free: 3.805 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00102/1.418, allocations: 0.5171 MB / 0.9347 GB, free: 3.426 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/1.42, allocations: 393.1 kB / 0.9351 GB, free: 3.078 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01759/1.438, allocations: 6.312 MB / 0.9413 GB, free: 13.75 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006137/1.439, allocations: 0.8624 MB / 0.9421 GB, free: 12.86 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0004886/1.439, allocations: 130.8 kB / 0.9422 GB, free: 12.74 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000233/1.439, allocations: 168.5 kB / 0.9424 GB, free: 12.69 MB / 0.67 GB Notification: Performance of SimCode: time 9.52e-07/1.439, allocations: 0 / 0.9424 GB, free: 12.69 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4238/1.863, allocations: 118.8 MB / 1.058 GB, free: 275.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.98/19.84, allocations: 11.81 kB / 1.058 GB, free: 275.4 MB / 0.6856 GB " [Timeout remaining time 640] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.02576067391783] Failed to read output from testmodel.py, exit status != 0: 20.0266408091411 20.045197913 18.910987991 Calling exit ...