Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.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.001799/0.001799, allocations: 104 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.002143/0.002143, 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.52/1.52, 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.05269/0.05269, allocations: 9.168 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_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",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.003184/0.003184, allocations: 73.23 kB / 405.9 MB, free: 47.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1209, allocations: 50.72 MB / 456.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.4378/0.5587, allocations: 142.7 MB / 0.5852 GB, free: 7.836 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.113/0.6717, allocations: 97.91 MB / 0.6809 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009195/0.6726, allocations: 11.88 kB / 0.6809 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00428/0.6769, allocations: 1.559 MB / 0.6824 GB, free: 7.57 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004885/0.6818, allocations: 1.826 MB / 0.6842 GB, free: 5.738 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.09471/0.7765, allocations: 31.33 MB / 0.7148 GB, free: 6.305 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002273/0.7787, allocations: 1.421 MB / 0.7162 GB, free: 4.883 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002729/0.779, allocations: 89.72 kB / 0.7162 GB, free: 4.789 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.01898/0.798, allocations: 10.06 MB / 0.7261 GB, free: 10.71 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007597/0.7988, allocations: 386.5 kB / 0.7264 GB, free: 10.33 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.7989, allocations: 44 kB / 0.7265 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.412/1.211, allocations: 31.86 MB / 0.7576 GB, free: 47.19 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003453/1.211, allocations: 120.6 kB / 0.7577 GB, free: 47.19 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006987/1.212, allocations: 307.5 kB / 0.758 GB, free: 47.19 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04099/1.253, allocations: 12.69 MB / 0.7704 GB, free: 46.84 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.253, allocations: 0 / 0.7704 GB, free: 46.84 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.933e-06/1.253, allocations: 1.031 kB / 0.7704 GB, free: 46.84 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.408e-06/1.253, allocations: 3.156 kB / 0.7704 GB, free: 46.84 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.006871/1.26, allocations: 2.379 MB / 0.7727 GB, free: 45.47 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/1.26, allocations: 11.28 kB / 0.7727 GB, free: 45.47 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.911e-05/1.26, allocations: 85.22 kB / 0.7728 GB, free: 45.43 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005945/1.261, allocations: 90.12 kB / 0.7729 GB, free: 45.41 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005091/1.261, allocations: 339.5 kB / 0.7732 GB, free: 45.18 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.839e-05/1.261, allocations: 25.81 kB / 0.7732 GB, free: 45.18 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/1.261, allocations: 34.38 kB / 0.7733 GB, free: 45.18 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001132/1.262, allocations: 0.5934 MB / 0.7739 GB, free: 45.08 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.853e-05/1.262, allocations: 0 / 0.7739 GB, free: 45.08 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/1.262, allocations: 12.75 kB / 0.7739 GB, free: 45.08 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/1.262, allocations: 19.48 kB / 0.7739 GB, free: 45.08 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/1.264, allocations: 0.5252 MB / 0.7744 GB, free: 45.08 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002022/1.266, allocations: 2.495 MB / 0.7768 GB, free: 43.4 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009556/1.266, allocations: 467.6 kB / 0.7773 GB, free: 43.37 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000457/1.267, allocations: 313 kB / 0.7776 GB, free: 43.36 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2152/1.482, allocations: 121.8 MB / 0.8966 GB, free: 18.61 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.429e-05/1.482, allocations: 34.84 kB / 0.8966 GB, free: 18.57 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=78): time 3.196e-06/1.482, allocations: 0 / 0.8966 GB, free: 18.57 MB / 0.6387 GB Notification: Performance of matching and sorting (n=82): time 0.006517/1.489, allocations: 2.41 MB / 0.8989 GB, free: 16.67 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/1.489, allocations: 63.23 kB / 0.899 GB, free: 16.6 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003218/1.489, allocations: 256.1 kB / 0.8993 GB, free: 16.38 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.852e-05/1.489, allocations: 33.58 kB / 0.8993 GB, free: 16.35 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/1.489, allocations: 192.3 kB / 0.8995 GB, free: 16.18 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/1.489, allocations: 271.1 kB / 0.8997 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/1.49, allocations: 100.2 kB / 0.8998 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001978/1.49, allocations: 360.3 kB / 0.9002 GB, free: 15.54 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004713/1.49, allocations: 270.3 kB / 0.9004 GB, free: 15.38 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005517/1.491, allocations: 401.7 kB / 0.9008 GB, free: 15.08 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/1.492, allocations: 0.6989 MB / 0.9015 GB, free: 14.6 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/1.492, allocations: 4 kB / 0.9015 GB, free: 14.6 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001501/1.493, allocations: 0.8089 MB / 0.9023 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/1.493, allocations: 4 kB / 0.9023 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/1.493, allocations: 4 kB / 0.9023 GB, free: 14.04 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005476/1.494, allocations: 105.6 kB / 0.9024 GB, free: 13.94 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005159/1.494, allocations: 112.5 kB / 0.9025 GB, free: 13.84 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07376/1.568, allocations: 19.19 MB / 0.9212 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/1.569, allocations: 30.84 kB / 0.9213 GB, free: 11.25 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.944e-05/1.569, allocations: 20.5 kB / 0.9213 GB, free: 11.23 MB / 0.6544 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 (47): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003849/1.569, allocations: 197.2 kB / 0.9215 GB, free: 11.08 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/1.569, allocations: 47.7 kB / 0.9215 GB, free: 11.03 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002466/1.572, allocations: 1.676 MB / 0.9232 GB, free: 9.852 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/1.572, allocations: 13.53 kB / 0.9232 GB, free: 9.844 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.572, allocations: 4 kB / 0.9232 GB, free: 9.84 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001866/1.574, allocations: 1.257 MB / 0.9244 GB, free: 8.809 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003021/1.577, allocations: 1.732 MB / 0.9261 GB, free: 7.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/1.577, allocations: 0 / 0.9261 GB, free: 7.57 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003555/1.577, allocations: 78.59 kB / 0.9262 GB, free: 7.5 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004311/1.578, allocations: 192 kB / 0.9264 GB, free: 7.344 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/1.578, allocations: 15.3 kB / 0.9264 GB, free: 7.336 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002258/1.58, allocations: 2.584 MB / 0.9289 GB, free: 4.715 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/1.58, allocations: 4.031 kB / 0.9289 GB, free: 4.711 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/1.582, allocations: 1.428 MB / 0.9303 GB, free: 3.727 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002269/1.583, allocations: 120.5 kB / 0.9304 GB, free: 3.594 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.114e-05/1.583, allocations: 11.69 kB / 0.9304 GB, free: 3.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003649/1.583, allocations: 31.78 kB / 0.9304 GB, free: 3.566 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001258/1.583, allocations: 43.64 kB / 0.9305 GB, free: 3.531 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.289e-05/1.583, allocations: 11.98 kB / 0.9305 GB, free: 3.52 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0003207/1.584, allocations: 226.4 kB / 0.9307 GB, free: 3.336 MB / 0.6544 GB Notification: Performance of sort global known variables: time 7e-08/1.584, allocations: 0 / 0.9307 GB, free: 3.336 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01238/1.596, allocations: 3.279 MB / 0.9339 GB, free: 156 kB / 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.h) * Number of discrete variables: 10 ($cse7.phase,$cse8.phase,$cse9.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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02557/1.622, allocations: 5.896 MB / 0.9397 GB, free: 11.2 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002584/1.624, allocations: 0.9437 MB / 0.9406 GB, free: 10.48 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/1.624, allocations: 0 / 0.9406 GB, free: 10.48 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001068/1.625, allocations: 499.1 kB / 0.9411 GB, free: 10.11 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/1.628, allocations: 397.4 kB / 0.9415 GB, free: 9.773 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01705/1.645, allocations: 6.185 MB / 0.9475 GB, free: 4.539 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006331/1.645, allocations: 0.8536 MB / 0.9483 GB, free: 3.66 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0005045/1.646, allocations: 115.2 kB / 0.9484 GB, free: 3.547 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002393/1.646, allocations: 162.3 kB / 0.9486 GB, free: 3.5 MB / 0.67 GB Notification: Performance of SimCode: time 8.82e-07/1.646, allocations: 6.531 kB / 0.9486 GB, free: 3.496 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4498/2.096, allocations: 128.8 MB / 1.074 GB, free: 259.8 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.22/20.32, allocations: 14.81 kB / 1.074 GB, free: 259.8 MB / 0.6856 GB " [Timeout remaining time 639] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph_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_dT_component_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.532650548033416] Failed to read output from testmodel.py, exit status != 0: 20.502717073075473 20.511088097 19.255679779 Calling exit ...