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.001214/0.001214, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001434/0.001434, allocations: 222.1 kB / 23.03 MB, free: 4.945 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.347/1.347, allocations: 207.7 MB / 233.9 MB, free: 9.785 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.04924/0.04924, allocations: 9.144 MB / 295.3 MB, free: 12.51 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",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.002092/0.002092, allocations: 62.34 kB / 411.9 MB, free: 46.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07565/0.07775, allocations: 50.75 MB / 462.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.3438/0.4215, allocations: 127 MB / 0.5758 GB, free: 14.24 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09366/0.5152, allocations: 86.66 MB / 0.6605 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005975/0.5158, allocations: 7.938 kB / 0.6605 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002986/0.5188, allocations: 1.231 MB / 0.6617 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003568/0.5223, allocations: 1.575 MB / 0.6632 GB, free: 12.13 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.07238/0.5947, allocations: 31.43 MB / 0.6939 GB, free: 12.6 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001824/0.5965, allocations: 1.425 MB / 0.6953 GB, free: 11.18 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00021/0.5967, allocations: 97.83 kB / 0.6954 GB, free: 11.07 MB / 0.5137 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.01636/0.6131, allocations: 10.14 MB / 0.7053 GB, free: 0.9102 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005783/0.6137, allocations: 398.4 kB / 0.7057 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.09e-05/0.6138, allocations: 40 kB / 0.7057 GB, free: 492 kB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.04559/0.6593, allocations: 25.61 MB / 0.7307 GB, free: 6.816 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000243/0.6596, allocations: 123.5 kB / 0.7308 GB, free: 6.695 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004448/0.66, allocations: 251.1 kB / 0.7311 GB, free: 6.449 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2818/0.9418, allocations: 12.38 MB / 0.7432 GB, free: 62.47 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.627e-06/0.9418, allocations: 1.781 kB / 0.7432 GB, free: 62.47 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.593e-06/0.9418, allocations: 0 / 0.7432 GB, free: 62.47 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.122e-05/0.9418, allocations: 0 / 0.7432 GB, free: 62.47 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.009721/0.9515, allocations: 2.595 MB / 0.7457 GB, free: 61.05 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.9516, allocations: 13.8 kB / 0.7457 GB, free: 61.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.213e-05/0.9516, allocations: 10.81 kB / 0.7457 GB, free: 61.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.835e-05/0.9517, allocations: 87 kB / 0.7458 GB, free: 61.01 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006408/0.9523, allocations: 95.84 kB / 0.7459 GB, free: 60.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004605/0.9528, allocations: 272.8 kB / 0.7461 GB, free: 60.82 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.085e-05/0.9528, allocations: 32.03 kB / 0.7462 GB, free: 60.82 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.5e-05/0.9529, allocations: 32.5 kB / 0.7462 GB, free: 60.82 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.9542, allocations: 0.7597 MB / 0.747 GB, free: 60.55 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.9542, allocations: 3.531 kB / 0.747 GB, free: 60.55 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.723e-05/0.9543, allocations: 12.59 kB / 0.747 GB, free: 60.55 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/0.9543, allocations: 19.03 kB / 0.747 GB, free: 60.55 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.9556, allocations: 0.5636 MB / 0.7475 GB, free: 60.54 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001951/0.9575, allocations: 1.718 MB / 0.7492 GB, free: 59.74 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001007/0.9585, allocations: 479.1 kB / 0.7497 GB, free: 59.71 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004496/0.959, allocations: 319 kB / 0.75 GB, free: 59.7 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1954/1.154, allocations: 44.04 MB / 0.793 GB, free: 58.77 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/1.154, allocations: 32.22 kB / 0.793 GB, free: 58.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=78): time 2.505e-06/1.154, allocations: 0 / 0.793 GB, free: 58.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=82): time 0.005308/1.16, allocations: 2.246 MB / 0.7952 GB, free: 58.4 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.004e-05/1.16, allocations: 55.38 kB / 0.7953 GB, free: 58.34 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002014/1.16, allocations: 259.8 kB / 0.7955 GB, free: 58.23 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.916e-05/1.16, allocations: 30.7 kB / 0.7955 GB, free: 58.2 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.881e-05/1.16, allocations: 192.1 kB / 0.7957 GB, free: 58.06 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/1.16, allocations: 287.2 kB / 0.796 GB, free: 57.88 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/1.16, allocations: 96.95 kB / 0.7961 GB, free: 57.86 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.101e-05/1.16, allocations: 354 kB / 0.7964 GB, free: 57.55 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/1.161, allocations: 285.4 kB / 0.7967 GB, free: 57.53 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004488/1.161, allocations: 416 kB / 0.7971 GB, free: 57.22 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008831/1.162, allocations: 0.7219 MB / 0.7978 GB, free: 56.71 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/1.162, allocations: 4.875 kB / 0.7978 GB, free: 56.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001226/1.163, allocations: 0.8214 MB / 0.7986 GB, free: 56.15 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/1.163, allocations: 9.719 kB / 0.7986 GB, free: 56.14 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/1.163, allocations: 4.766 kB / 0.7986 GB, free: 56.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002341/1.164, allocations: 66.33 kB / 0.7987 GB, free: 56.08 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/1.164, allocations: 133.7 kB / 0.7988 GB, free: 55.96 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06506/1.229, allocations: 18.88 MB / 0.8173 GB, free: 37.61 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005111/1.23, allocations: 35.03 kB / 0.8173 GB, free: 37.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.311e-05/1.23, allocations: 14.75 kB / 0.8173 GB, free: 37.57 MB / 0.545 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.0002743/1.23, allocations: 192.5 kB / 0.8175 GB, free: 37.41 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.948e-05/1.23, allocations: 47.66 kB / 0.8175 GB, free: 37.37 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001677/1.232, allocations: 1.608 MB / 0.8191 GB, free: 36.22 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/1.232, allocations: 14.58 kB / 0.8191 GB, free: 36.21 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/1.232, allocations: 0 / 0.8191 GB, free: 36.21 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001157/1.233, allocations: 1.212 MB / 0.8203 GB, free: 35.19 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001888/1.235, allocations: 1.595 MB / 0.8219 GB, free: 34.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/1.235, allocations: 0 / 0.8219 GB, free: 34.04 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003025/1.235, allocations: 87.31 kB / 0.8219 GB, free: 33.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000242/1.235, allocations: 100.8 kB / 0.822 GB, free: 33.88 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/1.235, allocations: 11.92 kB / 0.822 GB, free: 33.88 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008565/1.236, allocations: 1.893 MB / 0.8239 GB, free: 31.96 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/1.236, allocations: 0 / 0.8239 GB, free: 31.96 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001573/1.238, allocations: 1.285 MB / 0.8251 GB, free: 31.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.225e-05/1.238, allocations: 43.62 kB / 0.8252 GB, free: 31.02 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.645e-05/1.238, allocations: 11.81 kB / 0.8252 GB, free: 31.01 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000298/1.238, allocations: 23.91 kB / 0.8252 GB, free: 30.99 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.225e-05/1.238, allocations: 47.8 kB / 0.8253 GB, free: 30.95 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.476e-05/1.238, allocations: 15.92 kB / 0.8253 GB, free: 30.94 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001892/1.239, allocations: 240.9 kB / 0.8255 GB, free: 30.75 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.239, allocations: 0 / 0.8255 GB, free: 30.75 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.009713/1.248, allocations: 3.574 MB / 0.829 GB, free: 27.28 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.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.02021/1.269, allocations: 6.282 MB / 0.8351 GB, free: 21.97 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001972/1.271, allocations: 0.9696 MB / 0.8361 GB, free: 21.21 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/1.271, allocations: 0.8125 kB / 0.8361 GB, free: 21.21 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0007308/1.271, allocations: 497.9 kB / 0.8366 GB, free: 20.85 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/1.273, allocations: 391.5 kB / 0.8369 GB, free: 20.51 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01375/1.287, allocations: 6.438 MB / 0.8432 GB, free: 15.02 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001634/1.287, allocations: 254.1 kB / 0.8435 GB, free: 14.75 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0003879/1.287, allocations: 142.4 kB / 0.8436 GB, free: 14.61 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001861/1.288, allocations: 165.4 kB / 0.8438 GB, free: 14.56 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/1.288, allocations: 0 / 0.8438 GB, free: 14.56 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4133/1.701, allocations: 134.6 MB / 0.9752 GB, free: 315.8 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.69/20.39, allocations: 6.125 kB / 0.9753 GB, free: 315.8 MB / 0.6544 GB " [Timeout remaining time 639] (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: 30.864939964027144] Failed to read output from testmodel.py, exit status != 0: 20.645937156979926 20.658035575 19.713625492 Calling exit ...