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.001749/0.001749, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001755/0.001755, allocations: 214.9 kB / 23.04 MB, free: 5.07 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.371/1.371, allocations: 207.6 MB / 233.8 MB, free: 9.973 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.0515/0.0515, allocations: 9.164 MB / 295.2 MB, free: 12.69 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT",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.002188/0.002188, allocations: 71.88 kB / 411.9 MB, free: 46.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07351/0.0757, allocations: 50.75 MB / 462.7 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT): time 0.3634/0.4391, allocations: 142.9 MB / 0.5914 GB, free: 6.023 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1052/0.5443, allocations: 97.99 MB / 0.6871 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005941/0.5449, allocations: 7.938 kB / 0.6871 GB, free: 7.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003512/0.5484, allocations: 1.551 MB / 0.6886 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004436/0.5529, allocations: 1.826 MB / 0.6904 GB, free: 3.895 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.0761/0.629, allocations: 31.56 MB / 0.7212 GB, free: 4.238 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002254/0.6312, allocations: 1.441 MB / 0.7226 GB, free: 2.793 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000263/0.6315, allocations: 93.84 kB / 0.7227 GB, free: 2.695 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.01783/0.6493, allocations: 10.26 MB / 0.7327 GB, free: 8.414 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006243/0.6499, allocations: 394.5 kB / 0.7331 GB, free: 8.027 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.895e-05/0.65, allocations: 40 kB / 0.7331 GB, free: 7.988 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3078/0.9578, allocations: 30.77 MB / 0.7632 GB, free: 45.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002583/0.958, allocations: 121.3 kB / 0.7633 GB, free: 45.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005771/0.9586, allocations: 311.9 kB / 0.7636 GB, free: 45.34 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03311/0.9917, allocations: 11.97 MB / 0.7753 GB, free: 45.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.9917, allocations: 0 / 0.7753 GB, free: 45.02 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.683e-06/0.9917, allocations: 2.078 kB / 0.7753 GB, free: 45.02 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.9917, allocations: 0 / 0.7753 GB, free: 45.02 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.005795/0.9975, allocations: 2.153 MB / 0.7774 GB, free: 43.83 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.714e-05/0.9976, allocations: 14.61 kB / 0.7774 GB, free: 43.82 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.017e-05/0.9976, allocations: 12.97 kB / 0.7774 GB, free: 43.82 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.889e-05/0.9977, allocations: 85.34 kB / 0.7775 GB, free: 43.79 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005167/0.9982, allocations: 83.45 kB / 0.7776 GB, free: 43.76 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003825/0.9986, allocations: 276.2 kB / 0.7779 GB, free: 43.6 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.826e-05/0.9986, allocations: 30.56 kB / 0.7779 GB, free: 43.6 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.786e-05/0.9986, allocations: 33.91 kB / 0.7779 GB, free: 43.6 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.9997, allocations: 0.5937 MB / 0.7785 GB, free: 43.51 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.773e-05/0.9997, allocations: 0 / 0.7785 GB, free: 43.51 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.736e-05/0.9997, allocations: 14.69 kB / 0.7785 GB, free: 43.51 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.624e-05/0.9997, allocations: 17.88 kB / 0.7785 GB, free: 43.51 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001034/1.001, allocations: 0.526 MB / 0.779 GB, free: 43.5 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/1.003, allocations: 2.47 MB / 0.7814 GB, free: 41.85 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009175/1.004, allocations: 454.3 kB / 0.7819 GB, free: 41.82 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004164/1.004, allocations: 289.7 kB / 0.7822 GB, free: 41.81 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1206/1.125, allocations: 34.06 MB / 0.8154 GB, free: 30.53 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/1.125, allocations: 34.72 kB / 0.8155 GB, free: 30.49 MB / 0.545 GB Notification: Performance of pre-optimization done (n=78): time 2.195e-06/1.125, allocations: 0 / 0.8155 GB, free: 30.49 MB / 0.545 GB Notification: Performance of matching and sorting (n=83): time 0.005616/1.13, allocations: 2.471 MB / 0.8179 GB, free: 28.68 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.457e-05/1.13, allocations: 55.41 kB / 0.8179 GB, free: 28.61 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002127/1.131, allocations: 262.4 kB / 0.8182 GB, free: 28.39 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.735e-05/1.131, allocations: 29.45 kB / 0.8182 GB, free: 28.36 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.623e-05/1.131, allocations: 198.7 kB / 0.8184 GB, free: 28.19 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/1.131, allocations: 282.7 kB / 0.8187 GB, free: 27.95 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/1.131, allocations: 97.2 kB / 0.8188 GB, free: 27.89 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.135e-05/1.131, allocations: 353.4 kB / 0.8191 GB, free: 27.55 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004637/1.131, allocations: 288 kB / 0.8194 GB, free: 27.38 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/1.132, allocations: 420.2 kB / 0.8198 GB, free: 27.05 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009169/1.133, allocations: 0.7293 MB / 0.8205 GB, free: 26.55 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.133, allocations: 4 kB / 0.8205 GB, free: 26.55 MB / 0.545 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00124/1.134, allocations: 0.8263 MB / 0.8213 GB, free: 25.98 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/1.134, allocations: 11.41 kB / 0.8213 GB, free: 25.98 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/1.134, allocations: 8.188 kB / 0.8213 GB, free: 25.97 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007294/1.135, allocations: 151.2 kB / 0.8214 GB, free: 25.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005719/1.135, allocations: 121.3 kB / 0.8216 GB, free: 25.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001544/1.137, allocations: 3.654 MB / 0.8251 GB, free: 22.02 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003477/1.137, allocations: 27.91 kB / 0.8252 GB, free: 21.99 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.186e-05/1.137, allocations: 23.73 kB / 0.8252 GB, free: 21.97 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.0002122/1.138, allocations: 188.7 kB / 0.8254 GB, free: 21.82 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.386e-05/1.138, allocations: 47.78 kB / 0.8254 GB, free: 21.78 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001797/1.139, allocations: 1.709 MB / 0.8271 GB, free: 20.57 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.602e-05/1.139, allocations: 14.52 kB / 0.8271 GB, free: 20.57 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/1.139, allocations: 0 / 0.8271 GB, free: 20.57 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001193/1.141, allocations: 1.273 MB / 0.8283 GB, free: 19.52 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/1.143, allocations: 1.731 MB / 0.83 GB, free: 18.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/1.143, allocations: 0 / 0.83 GB, free: 18.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003189/1.143, allocations: 87.09 kB / 0.8301 GB, free: 18.21 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005972/1.143, allocations: 259 kB / 0.8304 GB, free: 18 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/1.144, allocations: 11.25 kB / 0.8304 GB, free: 18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007174/1.144, allocations: 1.781 MB / 0.8321 GB, free: 16.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/1.144, allocations: 144 / 0.8321 GB, free: 16.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001761/1.146, allocations: 1.506 MB / 0.8336 GB, free: 15.22 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.923e-05/1.146, allocations: 39.73 kB / 0.8336 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.178e-05/1.146, allocations: 11.81 kB / 0.8336 GB, free: 15.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002978/1.146, allocations: 29.03 kB / 0.8337 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.633e-05/1.147, allocations: 47.61 kB / 0.8337 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/1.147, allocations: 11.94 kB / 0.8337 GB, free: 15.11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001786/1.147, allocations: 220.5 kB / 0.8339 GB, free: 14.94 MB / 0.545 GB Notification: Performance of sort global known variables: time 7e-08/1.147, allocations: 1.875 kB / 0.8339 GB, free: 14.94 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005512/1.152, allocations: 2.009 MB / 0.8359 GB, free: 13.01 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.01085/1.163, allocations: 4.564 MB / 0.8403 GB, free: 9.246 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001773/1.165, allocations: 0.8482 MB / 0.8412 GB, free: 8.629 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/1.165, allocations: 4.062 kB / 0.8412 GB, free: 8.625 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00063/1.166, allocations: 396.1 kB / 0.8416 GB, free: 8.367 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/1.167, allocations: 401.2 kB / 0.8419 GB, free: 8.039 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008615/1.176, allocations: 5.822 MB / 0.8476 GB, free: 3.164 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/1.176, allocations: 0.8523 MB / 0.8485 GB, free: 2.289 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003499/1.176, allocations: 90.84 kB / 0.8485 GB, free: 2.203 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001855/1.177, allocations: 167.3 kB / 0.8487 GB, free: 2.152 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/1.177, allocations: 0 / 0.8487 GB, free: 2.152 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1429/1.32, allocations: 78.72 MB / 0.9256 GB, free: 3.727 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.61/16.93, allocations: 8.047 kB / 0.9256 GB, free: 3.719 MB / 0.6231 GB " [Timeout remaining time 643] (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: 27.064372392953373] Failed to read output from testmodel.py, exit status != 0: 17.140558737912215 17.160547856 16.164567115 Calling exit ...