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.001376/0.001376, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.001654/0.001654, allocations: 217.5 kB / 22.25 MB, free: 5.082 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.428/1.428, allocations: 207.6 MB / 233 MB, free: 10.01 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.05221/0.05221, allocations: 9.161 MB / 294.4 MB, free: 12.7 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,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: 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.002481/0.002481, allocations: 75.61 kB / 411.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07328/0.07576, allocations: 50.75 MB / 461.9 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.389/0.4647, allocations: 142.9 MB / 0.5906 GB, free: 6.047 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1129/0.5777, allocations: 97.99 MB / 0.6863 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000651/0.5783, allocations: 11.94 kB / 0.6863 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003853/0.5822, allocations: 1.547 MB / 0.6878 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004642/0.5868, allocations: 1.829 MB / 0.6896 GB, free: 3.938 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.07857/0.6654, allocations: 31.56 MB / 0.7205 GB, free: 4.277 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002768/0.6682, allocations: 1.433 MB / 0.7219 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/0.6684, allocations: 89.91 kB / 0.7219 GB, free: 2.746 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.0172/0.6856, allocations: 10.26 MB / 0.732 GB, free: 8.469 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006154/0.6862, allocations: 398.3 kB / 0.7323 GB, free: 8.078 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.594e-05/0.6863, allocations: 44 kB / 0.7324 GB, free: 8.035 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3111/0.9974, allocations: 30.76 MB / 0.7624 GB, free: 45.59 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002512/0.9977, allocations: 130.6 kB / 0.7625 GB, free: 45.59 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005278/0.9982, allocations: 300.2 kB / 0.7628 GB, free: 45.59 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03043/1.029, allocations: 11.97 MB / 0.7745 GB, free: 45.27 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/1.029, allocations: 3.438 kB / 0.7745 GB, free: 45.27 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.372e-06/1.029, allocations: 0 / 0.7745 GB, free: 45.27 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.808e-06/1.029, allocations: 0 / 0.7745 GB, free: 45.27 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.005898/1.035, allocations: 2.161 MB / 0.7766 GB, free: 44.08 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/1.035, allocations: 11.23 kB / 0.7766 GB, free: 44.07 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.148e-05/1.035, allocations: 81.03 kB / 0.7767 GB, free: 44.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005438/1.035, allocations: 88.97 kB / 0.7768 GB, free: 44.01 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/1.036, allocations: 272 kB / 0.7771 GB, free: 43.85 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/1.036, allocations: 29.66 kB / 0.7771 GB, free: 43.85 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/1.036, allocations: 33.78 kB / 0.7771 GB, free: 43.85 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/1.037, allocations: 0.5946 MB / 0.7777 GB, free: 43.76 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/1.037, allocations: 0 / 0.7777 GB, free: 43.76 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.577e-05/1.037, allocations: 15.25 kB / 0.7777 GB, free: 43.76 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/1.037, allocations: 21.39 kB / 0.7777 GB, free: 43.76 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001038/1.038, allocations: 0.5275 MB / 0.7783 GB, free: 43.76 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/1.04, allocations: 2.457 MB / 0.7807 GB, free: 42.11 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009199/1.041, allocations: 462.3 kB / 0.7811 GB, free: 42.07 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004193/1.041, allocations: 298.6 kB / 0.7814 GB, free: 42.06 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.119/1.16, allocations: 34.06 MB / 0.8146 GB, free: 30.7 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/1.16, allocations: 40.02 kB / 0.8147 GB, free: 30.66 MB / 0.545 GB Notification: Performance of pre-optimization done (n=78): time 2.484e-06/1.16, allocations: 0 / 0.8147 GB, free: 30.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=83): time 0.005655/1.166, allocations: 2.479 MB / 0.8171 GB, free: 28.85 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/1.166, allocations: 55.41 kB / 0.8172 GB, free: 28.78 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002374/1.166, allocations: 261 kB / 0.8174 GB, free: 28.56 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.08e-05/1.166, allocations: 33.45 kB / 0.8174 GB, free: 28.52 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.063e-05/1.166, allocations: 192.3 kB / 0.8176 GB, free: 28.36 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/1.166, allocations: 282.2 kB / 0.8179 GB, free: 28.12 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/1.167, allocations: 96.3 kB / 0.818 GB, free: 28.05 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.375e-05/1.167, allocations: 351.7 kB / 0.8183 GB, free: 27.72 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/1.167, allocations: 295.5 kB / 0.8186 GB, free: 27.54 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004871/1.168, allocations: 416.1 kB / 0.819 GB, free: 27.22 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009485/1.169, allocations: 0.7255 MB / 0.8197 GB, free: 26.73 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/1.169, allocations: 0 / 0.8197 GB, free: 26.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001283/1.17, allocations: 0.8333 MB / 0.8205 GB, free: 26.15 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/1.17, allocations: 13.72 kB / 0.8205 GB, free: 26.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/1.17, allocations: 0 / 0.8205 GB, free: 26.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007389/1.171, allocations: 151.1 kB / 0.8207 GB, free: 26.01 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005568/1.171, allocations: 120.8 kB / 0.8208 GB, free: 25.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001557/1.173, allocations: 3.65 MB / 0.8244 GB, free: 22.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003478/1.173, allocations: 31.53 kB / 0.8244 GB, free: 22.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/1.173, allocations: 15.31 kB / 0.8244 GB, free: 22.15 MB / 0.545 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.0002223/1.173, allocations: 198.8 kB / 0.8246 GB, free: 21.99 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.585e-05/1.173, allocations: 43.72 kB / 0.8246 GB, free: 21.95 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001719/1.175, allocations: 1.708 MB / 0.8263 GB, free: 20.75 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/1.175, allocations: 14.61 kB / 0.8263 GB, free: 20.74 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/1.175, allocations: 3.984 kB / 0.8263 GB, free: 20.73 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001239/1.176, allocations: 1.267 MB / 0.8276 GB, free: 19.69 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002422/1.179, allocations: 1.729 MB / 0.8292 GB, free: 18.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/1.179, allocations: 0 / 0.8292 GB, free: 18.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003455/1.179, allocations: 79.91 kB / 0.8293 GB, free: 18.39 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006643/1.18, allocations: 268.4 kB / 0.8296 GB, free: 18.18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/1.18, allocations: 19.42 kB / 0.8296 GB, free: 18.17 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009193/1.181, allocations: 1.778 MB / 0.8313 GB, free: 16.42 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.181, allocations: 4.219 kB / 0.8313 GB, free: 16.42 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/1.183, allocations: 1.497 MB / 0.8328 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/1.183, allocations: 43.56 kB / 0.8328 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.171e-05/1.183, allocations: 3.625 kB / 0.8328 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003033/1.183, allocations: 31.59 kB / 0.8329 GB, free: 15.33 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.875e-05/1.183, allocations: 47.48 kB / 0.8329 GB, free: 15.29 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/1.183, allocations: 15.98 kB / 0.8329 GB, free: 15.28 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001881/1.183, allocations: 221.2 kB / 0.8331 GB, free: 15.11 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.183, allocations: 0 / 0.8331 GB, free: 15.11 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005044/1.189, allocations: 2.01 MB / 0.8351 GB, free: 13.18 MB / 0.545 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.01078/1.199, allocations: 4.564 MB / 0.8396 GB, free: 9.414 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.00179/1.201, allocations: 0.8581 MB / 0.8404 GB, free: 8.793 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/1.201, allocations: 0 / 0.8404 GB, free: 8.793 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006412/1.202, allocations: 397 kB / 0.8408 GB, free: 8.535 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001755/1.203, allocations: 394.2 kB / 0.8412 GB, free: 8.207 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008612/1.212, allocations: 5.834 MB / 0.8468 GB, free: 3.324 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/1.212, allocations: 0.8407 MB / 0.8477 GB, free: 2.457 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004217/1.213, allocations: 87.34 kB / 0.8478 GB, free: 2.375 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002166/1.213, allocations: 174.4 kB / 0.8479 GB, free: 2.32 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/1.213, allocations: 0 / 0.8479 GB, free: 2.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1491/1.362, allocations: 78.69 MB / 0.9248 GB, free: 3.922 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.49/17.85, allocations: 3.984 kB / 0.9248 GB, free: 3.918 MB / 0.6231 GB " [Timeout remaining time 642] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000404 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 26.300406143069267] Failed to read output from testmodel.py, exit status != 0: 18.02199065987952 18.043382543 17.010295801 Calling exit ...