Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_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.001769/0.001769, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002176/0.002176, allocations: 215.9 kB / 22.26 MB, free: 5.125 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.449/1.449, allocations: 207.6 MB / 233 MB, free: 9.98 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.0543/0.0543, allocations: 9.15 MB / 294.4 MB, free: 12.79 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_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_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.002238/0.002238, allocations: 77.31 kB / 411.1 MB, free: 46.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07433/0.07657, allocations: 50.76 MB / 461.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3882/0.4648, allocations: 142.9 MB / 0.5906 GB, free: 6.125 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1189/0.5837, allocations: 97.99 MB / 0.6863 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007809/0.5845, allocations: 7.938 kB / 0.6863 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004163/0.5887, allocations: 1.559 MB / 0.6879 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005347/0.594, allocations: 1.826 MB / 0.6896 GB, free: 3.93 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.09283/0.6868, allocations: 31.56 MB / 0.7205 GB, free: 4.266 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002289/0.6891, allocations: 1.421 MB / 0.7218 GB, free: 2.84 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002629/0.6894, 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.01962/0.709, allocations: 10.26 MB / 0.732 GB, free: 8.465 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007426/0.7098, allocations: 394.4 kB / 0.7323 GB, free: 8.078 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001017/0.7099, allocations: 44 kB / 0.7324 GB, free: 8.035 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3912/1.101, allocations: 36.82 MB / 0.7683 GB, free: 45.56 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000218/1.101, allocations: 124 kB / 0.7684 GB, free: 45.56 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004787/1.102, allocations: 306.1 kB / 0.7687 GB, free: 45.56 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03745/1.139, allocations: 14.24 MB / 0.7826 GB, free: 45.15 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/1.139, allocations: 4 kB / 0.7826 GB, free: 45.14 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.333e-06/1.139, allocations: 0 / 0.7826 GB, free: 45.14 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.097e-06/1.139, allocations: 0 / 0.7826 GB, free: 45.14 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.006236/1.145, allocations: 2.603 MB / 0.7852 GB, free: 43.72 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/1.146, allocations: 14.3 kB / 0.7852 GB, free: 43.72 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.449e-05/1.146, allocations: 85.41 kB / 0.7853 GB, free: 43.68 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005954/1.146, allocations: 96.97 kB / 0.7854 GB, free: 43.65 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/1.147, allocations: 274.4 kB / 0.7856 GB, free: 43.49 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.336e-05/1.147, allocations: 28.06 kB / 0.7857 GB, free: 43.49 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.509e-05/1.147, allocations: 35.03 kB / 0.7857 GB, free: 43.49 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001136/1.148, allocations: 0.6132 MB / 0.7863 GB, free: 43.4 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/1.148, allocations: 3 kB / 0.7863 GB, free: 43.4 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.454e-05/1.148, allocations: 11.25 kB / 0.7863 GB, free: 43.4 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/1.148, allocations: 24.2 kB / 0.7863 GB, free: 43.39 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/1.149, allocations: 0.5549 MB / 0.7869 GB, free: 43.39 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/1.151, allocations: 2.486 MB / 0.7893 GB, free: 41.74 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001006/1.152, allocations: 483.2 kB / 0.7898 GB, free: 41.71 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004339/1.153, allocations: 318.4 kB / 0.7901 GB, free: 41.7 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1892/1.342, allocations: 43.91 MB / 0.833 GB, free: 14.76 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.366e-05/1.342, allocations: 34.84 kB / 0.833 GB, free: 14.72 MB / 0.545 GB Notification: Performance of pre-optimization done (n=78): time 2.976e-06/1.342, allocations: 0 / 0.833 GB, free: 14.72 MB / 0.545 GB Notification: Performance of matching and sorting (n=82): time 0.005815/1.348, allocations: 2.245 MB / 0.8352 GB, free: 13.05 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.405e-05/1.348, allocations: 51.41 kB / 0.8352 GB, free: 12.99 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002771/1.348, allocations: 259.5 kB / 0.8355 GB, free: 12.77 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/1.348, allocations: 29.52 kB / 0.8355 GB, free: 12.73 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.675e-05/1.348, allocations: 194.2 kB / 0.8357 GB, free: 12.57 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/1.348, allocations: 284.9 kB / 0.836 GB, free: 12.33 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/1.348, allocations: 97.3 kB / 0.8361 GB, free: 12.26 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.304e-05/1.348, allocations: 356.3 kB / 0.8364 GB, free: 11.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004624/1.349, allocations: 281.9 kB / 0.8367 GB, free: 11.75 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004905/1.349, allocations: 419.2 kB / 0.8371 GB, free: 11.42 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009302/1.35, allocations: 0.7241 MB / 0.8378 GB, free: 10.92 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.35, allocations: 4 kB / 0.8378 GB, free: 10.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001282/1.352, allocations: 0.8152 MB / 0.8386 GB, free: 10.36 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/1.352, allocations: 8 kB / 0.8386 GB, free: 10.35 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/1.352, allocations: 9.609 kB / 0.8386 GB, free: 10.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002289/1.352, allocations: 60.61 kB / 0.8386 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005788/1.352, allocations: 129.9 kB / 0.8388 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07002/1.422, allocations: 18.91 MB / 0.8572 GB, free: 7.789 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/1.423, allocations: 31.84 kB / 0.8573 GB, free: 7.762 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.819e-05/1.423, allocations: 19.94 kB / 0.8573 GB, free: 7.746 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * 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, 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003268/1.423, allocations: 199.3 kB / 0.8575 GB, free: 7.586 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/1.423, allocations: 43.72 kB / 0.8575 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/1.426, allocations: 1.604 MB / 0.8591 GB, free: 6.402 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.227e-05/1.426, allocations: 18.64 kB / 0.8591 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/1.426, allocations: 0 / 0.8591 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001708/1.427, allocations: 1.211 MB / 0.8603 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002623/1.43, allocations: 1.64 MB / 0.8619 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/1.43, allocations: 6.406 kB / 0.8619 GB, free: 4.191 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003554/1.43, allocations: 83.28 kB / 0.862 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003078/1.431, allocations: 104.1 kB / 0.8621 GB, free: 4.031 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.26e-05/1.431, allocations: 11.92 kB / 0.8621 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001671/1.432, allocations: 1.892 MB / 0.8639 GB, free: 2.105 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.432, allocations: 6.844 kB / 0.8639 GB, free: 2.102 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002295/1.435, allocations: 1.278 MB / 0.8652 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001295/1.435, allocations: 45.62 kB / 0.8652 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.285e-05/1.435, allocations: 16.23 kB / 0.8652 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004235/1.435, allocations: 21.05 kB / 0.8653 GB, free: 1.133 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/1.435, allocations: 44.92 kB / 0.8653 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/1.436, allocations: 14.11 kB / 0.8653 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003066/1.436, allocations: 244 kB / 0.8655 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/1.436, allocations: 0 / 0.8655 GB, free: 0.8906 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0106/1.446, allocations: 3.57 MB / 0.869 GB, free: 13.42 MB / 0.5762 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: 9 ($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 (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(1,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.02279/1.469, allocations: 6.278 MB / 0.8752 GB, free: 8.117 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002404/1.472, allocations: 0.9802 MB / 0.8761 GB, free: 7.355 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/1.472, allocations: 2.625 kB / 0.8761 GB, free: 7.355 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001006/1.473, allocations: 490.8 kB / 0.8766 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00211/1.475, allocations: 399.8 kB / 0.877 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/1.49, allocations: 6.436 MB / 0.8833 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005696/1.49, allocations: 0.8525 MB / 0.8841 GB, free: 276 kB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0004823/1.491, allocations: 135.2 kB / 0.8842 GB, free: 140 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002343/1.491, allocations: 170 kB / 0.8844 GB, free: 88 kB / 0.5762 GB Notification: Performance of SimCode: time 8.71e-07/1.491, allocations: 0 / 0.8844 GB, free: 88 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4874/1.978, allocations: 133.5 MB / 1.015 GB, free: 242.6 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.78/21.76, allocations: 19.97 kB / 1.015 GB, free: 242.6 MB / 0.67 GB " [Timeout remaining time 638] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph_fmu --startTime=0 --stopTime=1.01 --stepSize=0.000404 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 32.247068741125986] Failed to read output from testmodel.py, exit status != 0: 21.970735811861232 21.991154283 20.847779069 Calling exit ...