Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.001402/0.001402, allocations: 117.3 kB / 17.16 MB, free: 5.914 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.001412/0.001412, allocations: 206.2 kB / 20.13 MB, free: 2.969 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.439/1.439, allocations: 207.6 MB / 230.5 MB, free: 4.004 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.04914/0.04914, allocations: 9.149 MB / 291.5 MB, free: 7.176 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.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel",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.002159/0.002159, allocations: 75.89 kB / 406.6 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2768, allocations: 50.72 MB / 457.3 MB, free: 3.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.1463/0.4231, allocations: 129.2 MB / 0.5728 GB, free: 6.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3832/0.8063, allocations: 111.3 MB / 0.6815 GB, free: 36 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006757/0.807, allocations: 11.91 kB / 0.6815 GB, free: 36 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002991/0.81, allocations: 1.556 MB / 0.683 GB, free: 16 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003626/0.8136, allocations: 1.836 MB / 0.6848 GB, free: 15.96 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.08068/0.8943, allocations: 31.33 MB / 0.7154 GB, free: 2.293 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002072/0.8964, allocations: 1.406 MB / 0.7168 GB, free: 1.059 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002068/0.8966, allocations: 83.92 kB / 0.7169 GB, free: 0.9766 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.0163/0.9129, allocations: 10.05 MB / 0.7267 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005231/0.9134, allocations: 394.2 kB / 0.7271 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.458e-05/0.9135, allocations: 44 kB / 0.7271 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06513/0.9786, allocations: 35.86 MB / 0.7621 GB, free: 4.164 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002609/0.9789, allocations: 120.3 kB / 0.7623 GB, free: 4.051 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005348/0.9794, allocations: 304.9 kB / 0.7625 GB, free: 3.754 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04464/1.024, allocations: 14.2 MB / 0.7764 GB, free: 6.629 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/1.024, allocations: 3.375 kB / 0.7764 GB, free: 6.629 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.42e-07/1.024, allocations: 0 / 0.7764 GB, free: 6.629 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.465e-05/1.024, allocations: 0 / 0.7764 GB, free: 6.629 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.006716/1.031, allocations: 2.683 MB / 0.779 GB, free: 3.898 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/1.031, allocations: 12.03 kB / 0.7791 GB, free: 3.887 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.921e-05/1.031, allocations: 8.656 kB / 0.7791 GB, free: 3.879 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.322e-05/1.031, allocations: 86.52 kB / 0.7791 GB, free: 3.785 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006178/1.032, allocations: 83.64 kB / 0.7792 GB, free: 3.703 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005618/1.032, allocations: 348.8 kB / 0.7796 GB, free: 3.324 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.614e-05/1.032, allocations: 36.66 kB / 0.7796 GB, free: 3.289 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.713e-05/1.032, allocations: 28 kB / 0.7796 GB, free: 3.262 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/1.034, allocations: 0.601 MB / 0.7802 GB, free: 2.637 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/1.034, allocations: 0 / 0.7802 GB, free: 2.637 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/1.034, allocations: 16 kB / 0.7802 GB, free: 2.621 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/1.034, allocations: 15.91 kB / 0.7802 GB, free: 2.609 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/1.035, allocations: 0.5454 MB / 0.7808 GB, free: 2.066 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002722/1.038, allocations: 2.47 MB / 0.7832 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/1.039, allocations: 467.1 kB / 0.7836 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005413/1.039, allocations: 306 kB / 0.7839 GB, free: 14.63 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4257/1.465, allocations: 139 MB / 0.9196 GB, free: 201.4 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/1.465, allocations: 41.06 kB / 0.9197 GB, free: 201.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.326e-06/1.465, allocations: 0 / 0.9197 GB, free: 201.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.00569/1.471, allocations: 2.34 MB / 0.922 GB, free: 199.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.185e-05/1.471, allocations: 55.41 kB / 0.922 GB, free: 199 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002329/1.471, allocations: 265.9 kB / 0.9223 GB, free: 198.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/1.471, allocations: 33.7 kB / 0.9223 GB, free: 198.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.35e-05/1.471, allocations: 192.4 kB / 0.9225 GB, free: 198.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000127/1.471, allocations: 279 kB / 0.9228 GB, free: 198.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000117/1.471, allocations: 98.06 kB / 0.9229 GB, free: 198.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.7e-05/1.471, allocations: 354.8 kB / 0.9232 GB, free: 197.8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004484/1.472, allocations: 272.3 kB / 0.9235 GB, free: 197.6 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/1.472, allocations: 395.5 kB / 0.9238 GB, free: 197.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008992/1.473, allocations: 0.6999 MB / 0.9245 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/1.473, allocations: 0 / 0.9245 GB, free: 196.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001236/1.474, allocations: 0.7929 MB / 0.9253 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/1.474, allocations: 8 kB / 0.9253 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/1.474, allocations: 4 kB / 0.9253 GB, free: 195.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000234/1.475, allocations: 68.77 kB / 0.9254 GB, free: 195.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006603/1.475, allocations: 143.6 kB / 0.9255 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06319/1.539, allocations: 19.68 MB / 0.9447 GB, free: 175.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004502/1.539, allocations: 27.97 kB / 0.9447 GB, free: 175.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.782e-05/1.539, allocations: 24.06 kB / 0.9448 GB, free: 175.1 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * 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, 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.0002739/1.539, allocations: 186.6 kB / 0.9449 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/1.539, allocations: 50.47 kB / 0.945 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/1.541, allocations: 1.695 MB / 0.9466 GB, free: 173.1 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.678e-05/1.541, allocations: 18.48 kB / 0.9467 GB, free: 173.1 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/1.541, allocations: 4 kB / 0.9467 GB, free: 173.1 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001234/1.542, allocations: 1.277 MB / 0.9479 GB, free: 171.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/1.544, allocations: 1.74 MB / 0.9496 GB, free: 169.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/1.544, allocations: 0 / 0.9496 GB, free: 169.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002958/1.545, allocations: 83.81 kB / 0.9497 GB, free: 169.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002704/1.545, allocations: 165.5 kB / 0.9499 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.615e-05/1.545, allocations: 11.98 kB / 0.9499 GB, free: 169.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001051/1.546, allocations: 2.567 MB / 0.9524 GB, free: 166.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/1.546, allocations: 4.156 kB / 0.9524 GB, free: 166.9 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/1.548, allocations: 1.368 MB / 0.9537 GB, free: 165.5 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/1.548, allocations: 115.1 kB / 0.9538 GB, free: 165.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/1.548, allocations: 12 kB / 0.9538 GB, free: 165.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/1.548, allocations: 28.03 kB / 0.9539 GB, free: 165.3 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/1.548, allocations: 51.48 kB / 0.9539 GB, free: 165.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/1.548, allocations: 11.98 kB / 0.9539 GB, free: 165.3 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001861/1.549, allocations: 223.1 kB / 0.9541 GB, free: 165 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/1.549, allocations: 0 / 0.9541 GB, free: 165 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008241/1.557, allocations: 3.577 MB / 0.9576 GB, free: 161.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$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 (37): * Single equations (assignments): 31 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01947/1.576, allocations: 6.288 MB / 0.9638 GB, free: 156.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002218/1.578, allocations: 1.006 MB / 0.9647 GB, free: 155 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/1.578, allocations: 0 / 0.9647 GB, free: 155 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007601/1.579, allocations: 483.6 kB / 0.9652 GB, free: 154.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001929/1.581, allocations: 403.7 kB / 0.9656 GB, free: 154.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/1.592, allocations: 6.283 MB / 0.9717 GB, free: 147.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002278/1.593, allocations: 0.8565 MB / 0.9726 GB, free: 146.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003623/1.593, allocations: 135.2 kB / 0.9727 GB, free: 146.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001813/1.593, allocations: 167.4 kB / 0.9729 GB, free: 146.5 MB / 0.6075 GB Notification: Performance of SimCode: time 9.71e-07/1.593, allocations: 0 / 0.9729 GB, free: 146.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1782/1.771, allocations: 133.3 MB / 1.103 GB, free: 13.02 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.62/19.39, allocations: 3.984 kB / 1.103 GB, free: 13.01 MB / 0.6075 GB " [Timeout remaining time 640] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_IsobutaneTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 72.07406514300965] Failed to read output from testmodel.py, exit status != 0: 19.625366705993656 19.640960372 18.613773909 Calling exit ...