Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.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.000882/0.000882, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.00108/0.00108, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.8942/0.8942, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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.03344/0.03344, allocations: 7.513 MB / 266.7 MB, free: 6.203 MB / 250.7 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.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 391.8 MB, free: 6.324 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.269e-05/2.45e-05, allocations: 2.281 kB / 391.8 MB, free: 6.32 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.2478/0.2478, allocations: 126.8 MB / 0.5064 GB, free: 16.15 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.05761/0.3054, allocations: 86.74 MB / 0.5911 GB, free: 8.246 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005868/0.306, allocations: 7.938 kB / 0.5911 GB, free: 8.238 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002843/0.3088, allocations: 1.247 MB / 0.5924 GB, free: 6.988 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003379/0.3122, allocations: 1.606 MB / 0.5939 GB, free: 5.375 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.06179/0.374, allocations: 31.86 MB / 0.625 GB, free: 5.461 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.001782/0.3758, allocations: 1.444 MB / 0.6264 GB, free: 4.012 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002214/0.376, allocations: 85.77 kB / 0.6265 GB, free: 3.926 MB / 0.4948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia main/Interfaces/PartialHelmholtzMedium/package.mo:621:5-621:120:writable] Warning: assert triggered: setState_pTX: d_min and d_max did not bracket the root Notification: Performance of NFEvalConstants.evaluate: time 0.2241/0.6001, allocations: 10.43 MB / 0.6367 GB, free: 29.06 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003573/0.6005, allocations: 337.8 kB / 0.637 GB, free: 29.06 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 4.594e-05/0.6005, allocations: 40.94 kB / 0.6371 GB, free: 29.06 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03022/0.6308, allocations: 20.22 MB / 0.6568 GB, free: 29.02 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0002394/0.631, allocations: 128.7 kB / 0.6569 GB, free: 29.02 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0004694/0.6315, allocations: 218 kB / 0.6571 GB, free: 29.02 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.02548/0.657, allocations: 11.84 MB / 0.6687 GB, free: 28.74 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.657, allocations: 2.516 kB / 0.6687 GB, free: 28.74 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.054e-06/0.657, allocations: 0 / 0.6687 GB, free: 28.74 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.674e-06/0.657, allocations: 0 / 0.6687 GB, free: 28.74 MB / 0.4948 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.004666/0.6616, allocations: 2.135 MB / 0.6708 GB, free: 27.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.6617, allocations: 9.625 kB / 0.6708 GB, free: 27.55 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.323e-05/0.6617, allocations: 87.33 kB / 0.6709 GB, free: 27.51 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003256/0.6621, allocations: 84.58 kB / 0.671 GB, free: 27.48 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003793/0.6624, allocations: 281.4 kB / 0.6712 GB, free: 27.32 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.6625, allocations: 32.53 kB / 0.6713 GB, free: 27.32 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.6625, allocations: 32.19 kB / 0.6713 GB, free: 27.32 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007356/0.6632, allocations: 0.748 MB / 0.672 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.6633, allocations: 5.797 kB / 0.672 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.6633, allocations: 12.5 kB / 0.672 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.6633, allocations: 17.66 kB / 0.6721 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006336/0.6639, allocations: 0.5219 MB / 0.6726 GB, free: 27.03 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.6653, allocations: 1.687 MB / 0.6742 GB, free: 26.23 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006272/0.6659, allocations: 453.5 kB / 0.6746 GB, free: 26.2 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002873/0.6662, allocations: 297.9 kB / 0.6749 GB, free: 26.18 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.059/0.7252, allocations: 34.15 MB / 0.7083 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.7252, allocations: 34.72 kB / 0.7083 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=78): time 2.385e-06/0.7252, allocations: 4 kB / 0.7083 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of matching and sorting (n=83): time 0.003681/0.7289, allocations: 2.485 MB / 0.7107 GB, free: 10.43 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.577e-05/0.7289, allocations: 56.16 kB / 0.7108 GB, free: 10.37 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.7291, allocations: 268.2 kB / 0.7111 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.7291, allocations: 33.45 kB / 0.7111 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.389e-05/0.7292, allocations: 192.1 kB / 0.7113 GB, free: 9.949 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 8.226e-05/0.7293, allocations: 274.8 kB / 0.7115 GB, free: 9.715 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.694e-05/0.7293, allocations: 100.5 kB / 0.7116 GB, free: 9.641 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 4.948e-05/0.7294, allocations: 352 kB / 0.712 GB, free: 9.309 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.7297, allocations: 283.9 kB / 0.7122 GB, free: 9.141 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003042/0.73, allocations: 419.2 kB / 0.7126 GB, free: 8.816 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005731/0.7305, allocations: 0.7345 MB / 0.7134 GB, free: 8.312 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.7305, allocations: 4 kB / 0.7134 GB, free: 8.309 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.0007855/0.7313, allocations: 0.8349 MB / 0.7142 GB, free: 7.738 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.7313, allocations: 4 kB / 0.7142 GB, free: 7.734 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.7313, allocations: 4 kB / 0.7142 GB, free: 7.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004457/0.7318, allocations: 147.8 kB / 0.7143 GB, free: 7.602 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.7321, allocations: 128.6 kB / 0.7144 GB, free: 7.488 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.7334, allocations: 3.646 MB / 0.718 GB, free: 19.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.7336, allocations: 31.06 kB / 0.718 GB, free: 19.76 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.7336, allocations: 19.81 kB / 0.718 GB, free: 19.74 MB / 0.5105 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): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 3 systems {1, 1, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000188/0.7338, allocations: 190.4 kB / 0.7182 GB, free: 19.59 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.196e-05/0.7338, allocations: 51.66 kB / 0.7183 GB, free: 19.54 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001245/0.7351, allocations: 1.706 MB / 0.7199 GB, free: 18.34 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.7351, allocations: 14.52 kB / 0.72 GB, free: 18.33 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.7351, allocations: 10.94 kB / 0.72 GB, free: 18.32 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007893/0.7359, allocations: 1.263 MB / 0.7212 GB, free: 17.29 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/0.7372, allocations: 1.672 MB / 0.7228 GB, free: 16.09 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.7372, allocations: 8.031 kB / 0.7228 GB, free: 16.08 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/0.7374, allocations: 74.69 kB / 0.7229 GB, free: 16.02 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000438/0.7378, allocations: 260.6 kB / 0.7232 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/0.7378, allocations: 11.69 kB / 0.7232 GB, free: 15.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000858/0.7387, allocations: 1.804 MB / 0.7249 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7387, allocations: 4.031 kB / 0.7249 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001243/0.7399, allocations: 1.493 MB / 0.7264 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-05/0.74, allocations: 43.67 kB / 0.7264 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.248e-05/0.7401, allocations: 14.88 kB / 0.7265 GB, free: 12.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.7402, allocations: 27.97 kB / 0.7265 GB, free: 12.95 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.924e-05/0.7403, allocations: 43.67 kB / 0.7265 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.842e-05/0.7403, allocations: 11.88 kB / 0.7265 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001725/0.7405, allocations: 221.2 kB / 0.7267 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.1e-08/0.7405, allocations: 0 / 0.7267 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005162/0.7456, allocations: 2.009 MB / 0.7287 GB, free: 10.79 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.d,volume.medium.T) * Number of discrete variables: 10 ($cse1.phase,$cse2.phase,$cse3.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 (35): * Single equations (assignments): 29 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,2), (1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.008693/0.7543, allocations: 4.795 MB / 0.7334 GB, free: 6.809 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001466/0.7558, allocations: 0.8551 MB / 0.7342 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.7558, allocations: 0 / 0.7342 GB, free: 6.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004413/0.7562, allocations: 386.2 kB / 0.7346 GB, free: 5.93 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.7574, allocations: 402.5 kB / 0.735 GB, free: 5.598 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008378/0.7658, allocations: 5.791 MB / 0.7406 GB, free: 0.75 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001654/0.7659, allocations: 256.4 kB / 0.7409 GB, free: 492 kB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0003346/0.7663, allocations: 79.34 kB / 0.741 GB, free: 412 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.7664, allocations: 167.8 kB / 0.7411 GB, free: 360 kB / 0.5105 GB Notification: Performance of SimCode: time 1.332e-06/0.7664, allocations: 0 / 0.7411 GB, free: 360 kB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09714/0.8636, allocations: 79.65 MB / 0.8189 GB, free: 1.316 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.954/10.82, allocations: 14.45 kB / 0.8189 GB, free: 1.305 MB / 0.5886 GB " [Timeout remaining time 649] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_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.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.8558527873829] Failed to read output from testmodel.py, exit status != 0: 10.94582478608936 10.958640114 10.298403649 Calling exit ...