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.001344/0.001344, allocations: 116.7 kB / 17.17 MB, free: 5.977 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.001408/0.001408, allocations: 209.6 kB / 20.13 MB, free: 3.035 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.407/1.407, allocations: 207.6 MB / 230.5 MB, free: 4.031 MB / 174.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.05096/0.05096, allocations: 9.149 MB / 291.5 MB, free: 7.164 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",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.002418/0.002418, allocations: 70.61 kB / 406.6 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2548, allocations: 50.71 MB / 457.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.1561/0.4108, allocations: 142.7 MB / 0.5859 GB, free: 8.703 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.3121/0.723, allocations: 97.9 MB / 0.6815 GB, free: 24 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006129/0.7236, allocations: 8.562 kB / 0.6815 GB, free: 24 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002725/0.7263, allocations: 1.555 MB / 0.6831 GB, free: 4 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00325/0.7296, allocations: 1.83 MB / 0.6848 GB, free: 15.95 MB / 494.1 MB [/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.07612/0.8057, allocations: 31.35 MB / 0.7155 GB, free: 2.184 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002083/0.8078, allocations: 1.412 MB / 0.7168 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.808, allocations: 89.77 kB / 0.7169 GB, free: 0.8164 MB / 494.1 MB [/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.01658/0.8246, allocations: 10.06 MB / 0.7267 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005936/0.8252, allocations: 389 kB / 0.7271 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.1e-05/0.8253, allocations: 44 kB / 0.7272 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06662/0.8919, allocations: 36.84 MB / 0.7631 GB, free: 3.055 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002452/0.8921, allocations: 131.4 kB / 0.7633 GB, free: 2.93 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005122/0.8927, allocations: 305.5 kB / 0.7636 GB, free: 2.633 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04558/0.9382, allocations: 14.59 MB / 0.7778 GB, free: 5.145 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.9382, allocations: 0 / 0.7778 GB, free: 5.145 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.763e-06/0.9382, allocations: 4 kB / 0.7778 GB, free: 5.141 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.28e-05/0.9382, allocations: 3.938 kB / 0.7778 GB, free: 5.137 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.007384/0.9456, allocations: 2.773 MB / 0.7805 GB, free: 2.316 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.9457, allocations: 8.031 kB / 0.7805 GB, free: 2.309 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.519e-05/0.9457, allocations: 12.66 kB / 0.7805 GB, free: 2.297 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.695e-05/0.9458, allocations: 90.08 kB / 0.7806 GB, free: 2.203 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005338/0.9463, allocations: 79.64 kB / 0.7807 GB, free: 2.125 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000599/0.9469, allocations: 342.1 kB / 0.781 GB, free: 1.754 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.216e-05/0.947, allocations: 28.66 kB / 0.7811 GB, free: 1.727 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.09e-05/0.947, allocations: 32 kB / 0.7811 GB, free: 1.695 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.9483, allocations: 0.5893 MB / 0.7817 GB, free: 1.082 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.9483, allocations: 0.875 kB / 0.7817 GB, free: 1.082 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.234e-05/0.9483, allocations: 23.94 kB / 0.7817 GB, free: 1.059 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.9484, allocations: 13.47 kB / 0.7817 GB, free: 1.051 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.9496, allocations: 0.5181 MB / 0.7822 GB, free: 0.5352 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002886/0.9525, allocations: 2.485 MB / 0.7846 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.9536, allocations: 454.3 kB / 0.7851 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005393/0.9541, allocations: 306.2 kB / 0.7854 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3287/1.283, allocations: 113.4 MB / 0.8961 GB, free: 223.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/1.283, allocations: 37.62 kB / 0.8962 GB, free: 223.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.655e-06/1.283, allocations: 0 / 0.8962 GB, free: 223.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.0057/1.289, allocations: 2.453 MB / 0.8986 GB, free: 222.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.376e-05/1.289, allocations: 55.06 kB / 0.8986 GB, free: 222.4 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/1.289, allocations: 257.2 kB / 0.8988 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.882e-05/1.289, allocations: 33.45 kB / 0.8989 GB, free: 222.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.913e-05/1.289, allocations: 185.9 kB / 0.8991 GB, free: 222 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/1.289, allocations: 282.5 kB / 0.8993 GB, free: 221.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001188/1.289, allocations: 101.7 kB / 0.8994 GB, free: 221.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.493e-05/1.289, allocations: 358.6 kB / 0.8998 GB, free: 221.4 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000435/1.29, allocations: 274.7 kB / 0.9 GB, free: 221.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004831/1.29, allocations: 404.7 kB / 0.9004 GB, free: 221 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009359/1.291, allocations: 0.7027 MB / 0.9011 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/1.291, allocations: 0 / 0.9011 GB, free: 220.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001344/1.292, allocations: 0.8236 MB / 0.9019 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/1.292, allocations: 15.3 kB / 0.9019 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/1.292, allocations: 3.969 kB / 0.9019 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002792/1.293, allocations: 75.69 kB / 0.902 GB, free: 220 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004782/1.293, allocations: 108.8 kB / 0.9021 GB, free: 220 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04702/1.34, allocations: 14.71 MB / 0.9165 GB, free: 206.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000445/1.341, allocations: 30.61 kB / 0.9165 GB, free: 206.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.623e-05/1.341, allocations: 19.98 kB / 0.9165 GB, free: 206.7 MB / 0.6075 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.0002429/1.341, allocations: 192.7 kB / 0.9167 GB, free: 206.5 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/1.341, allocations: 43.72 kB / 0.9167 GB, free: 206.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001751/1.343, allocations: 1.712 MB / 0.9184 GB, free: 204.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.647e-05/1.343, allocations: 18.72 kB / 0.9184 GB, free: 204.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/1.343, allocations: 0 / 0.9184 GB, free: 204.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001226/1.344, allocations: 1.259 MB / 0.9197 GB, free: 203.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00191/1.346, allocations: 1.746 MB / 0.9214 GB, free: 201.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/1.346, allocations: 0 / 0.9214 GB, free: 201.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000321/1.346, allocations: 83.81 kB / 0.9214 GB, free: 201.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002789/1.347, allocations: 119.4 kB / 0.9216 GB, free: 201.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/1.347, allocations: 11.94 kB / 0.9216 GB, free: 201.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/1.348, allocations: 2.089 MB / 0.9236 GB, free: 199 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/1.348, allocations: 3.984 kB / 0.9236 GB, free: 199 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001737/1.349, allocations: 1.422 MB / 0.925 GB, free: 197.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/1.35, allocations: 117.9 kB / 0.9251 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.581e-05/1.35, allocations: 12 kB / 0.9251 GB, free: 197.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003051/1.35, allocations: 27.97 kB / 0.9251 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-05/1.35, allocations: 47.88 kB / 0.9252 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.684e-05/1.35, allocations: 22.58 kB / 0.9252 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001656/1.35, allocations: 219.1 kB / 0.9254 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 7e-08/1.35, allocations: 0 / 0.9254 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006561/1.357, allocations: 3.041 MB / 0.9284 GB, free: 194.5 MB / 0.6075 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.01508/1.372, allocations: 5.682 MB / 0.9339 GB, free: 189.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001872/1.374, allocations: 1.001 MB / 0.9349 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/1.374, allocations: 0 / 0.9349 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007291/1.374, allocations: 0.5189 MB / 0.9354 GB, free: 187.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/1.376, allocations: 393.8 kB / 0.9358 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01106/1.387, allocations: 6.319 MB / 0.942 GB, free: 180.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002196/1.387, allocations: 0.8569 MB / 0.9428 GB, free: 180 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003877/1.388, allocations: 134.8 kB / 0.9429 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001938/1.388, allocations: 167.4 kB / 0.9431 GB, free: 179.7 MB / 0.6075 GB Notification: Performance of SimCode: time 6.01e-07/1.388, allocations: 4 kB / 0.9431 GB, free: 179.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1496/1.538, allocations: 118.8 MB / 1.059 GB, free: 60.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.44/18.98, allocations: 4.062 kB / 1.059 GB, free: 60.7 MB / 0.6075 GB " [Timeout remaining time 641] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000404 --timeout=50 --tolerance=1e-06 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: 27.764178331999574] Failed to read output from testmodel.py, exit status != 0: 19.21126860898221 19.226889122 18.285265313 Calling exit ...