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.001215/0.001215, allocations: 105.2 kB / 19.72 MB, free: 2.234 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.001441/0.001441, allocations: 217.3 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.396/1.396, 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.05021/0.05021, allocations: 9.15 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.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.002158/0.002158, allocations: 68.38 kB / 411.9 MB, free: 46.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08362/0.08578, allocations: 50.75 MB / 462.7 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.3554/0.4412, allocations: 129.5 MB / 0.5783 GB, free: 188 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1168/0.558, allocations: 111.4 MB / 0.6871 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006764/0.5587, allocations: 15.94 kB / 0.6871 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003372/0.5621, allocations: 1.543 MB / 0.6886 GB, free: 5.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004073/0.5661, allocations: 1.837 MB / 0.6904 GB, free: 3.887 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.07333/0.6395, allocations: 31.54 MB / 0.7212 GB, free: 4.246 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002079/0.6416, allocations: 1.421 MB / 0.7226 GB, free: 2.82 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002363/0.6418, allocations: 93.89 kB / 0.7227 GB, free: 2.723 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.0173/0.6591, allocations: 10.24 MB / 0.7327 GB, free: 8.457 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005738/0.6597, allocations: 399.3 kB / 0.7331 GB, free: 8.066 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.527e-05/0.6597, allocations: 40 kB / 0.7331 GB, free: 8.027 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3067/0.9664, allocations: 36.79 MB / 0.769 GB, free: 46.98 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002773/0.9667, allocations: 125.5 kB / 0.7692 GB, free: 46.98 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006295/0.9673, allocations: 302.2 kB / 0.7694 GB, free: 46.98 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04306/1.01, allocations: 14.24 MB / 0.7833 GB, free: 46.56 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/1.01, allocations: 1.359 kB / 0.7833 GB, free: 46.56 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.623e-06/1.01, allocations: 0 / 0.7833 GB, free: 46.56 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.508e-06/1.01, allocations: 0 / 0.7833 GB, free: 46.56 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.007351/1.018, allocations: 2.606 MB / 0.7859 GB, free: 45.14 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/1.018, allocations: 16.66 kB / 0.7859 GB, free: 45.13 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.582e-05/1.018, allocations: 13.44 kB / 0.7859 GB, free: 45.13 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.351e-05/1.018, allocations: 81.64 kB / 0.786 GB, free: 45.09 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006365/1.019, allocations: 89.25 kB / 0.7861 GB, free: 45.07 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004409/1.019, allocations: 283.4 kB / 0.7863 GB, free: 44.91 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.152e-05/1.019, allocations: 31.19 kB / 0.7864 GB, free: 44.91 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.947e-05/1.019, allocations: 31.91 kB / 0.7864 GB, free: 44.91 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/1.02, allocations: 0.6107 MB / 0.787 GB, free: 44.81 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/1.02, allocations: 3.562 kB / 0.787 GB, free: 44.81 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.791e-05/1.02, allocations: 14.75 kB / 0.787 GB, free: 44.81 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/1.02, allocations: 19.28 kB / 0.787 GB, free: 44.81 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/1.021, allocations: 0.5599 MB / 0.7876 GB, free: 44.8 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002044/1.023, allocations: 2.439 MB / 0.79 GB, free: 43.21 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009295/1.024, allocations: 474.3 kB / 0.7904 GB, free: 43.19 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004425/1.025, allocations: 320.6 kB / 0.7907 GB, free: 43.17 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1817/1.206, allocations: 43.91 MB / 0.8336 GB, free: 15.87 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/1.207, allocations: 38.44 kB / 0.8336 GB, free: 15.83 MB / 0.545 GB Notification: Performance of pre-optimization done (n=77): time 3.386e-06/1.207, allocations: 0 / 0.8336 GB, free: 15.83 MB / 0.545 GB Notification: Performance of matching and sorting (n=81): time 0.006182/1.213, allocations: 2.248 MB / 0.8358 GB, free: 14.16 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/1.213, allocations: 59.41 kB / 0.8359 GB, free: 14.09 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/1.213, allocations: 259.3 kB / 0.8361 GB, free: 13.87 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/1.213, allocations: 33.64 kB / 0.8362 GB, free: 13.83 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.625e-05/1.213, allocations: 193.5 kB / 0.8364 GB, free: 13.67 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/1.213, allocations: 276.6 kB / 0.8366 GB, free: 13.43 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/1.213, allocations: 103.3 kB / 0.8367 GB, free: 13.37 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.881e-05/1.213, allocations: 351.1 kB / 0.8371 GB, free: 13.04 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004472/1.214, allocations: 297.5 kB / 0.8373 GB, free: 12.85 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004986/1.214, allocations: 399.3 kB / 0.8377 GB, free: 12.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009496/1.215, allocations: 0.7107 MB / 0.8384 GB, free: 12.06 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.215, allocations: 0 / 0.8384 GB, free: 12.06 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001353/1.217, allocations: 0.8234 MB / 0.8392 GB, free: 11.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/1.217, allocations: 4 kB / 0.8392 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/1.217, allocations: 4 kB / 0.8392 GB, free: 11.49 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002402/1.217, allocations: 67.52 kB / 0.8393 GB, free: 11.43 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006782/1.218, allocations: 145.4 kB / 0.8394 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06826/1.286, allocations: 19.48 MB / 0.8585 GB, free: 8.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/1.286, allocations: 30.31 kB / 0.8585 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.625e-05/1.286, allocations: 22.19 kB / 0.8585 GB, free: 8.273 MB / 0.5606 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.000326/1.287, allocations: 184.1 kB / 0.8587 GB, free: 8.125 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/1.287, allocations: 47.66 kB / 0.8587 GB, free: 8.078 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002341/1.289, allocations: 1.744 MB / 0.8604 GB, free: 6.844 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/1.289, allocations: 11.52 kB / 0.8604 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/1.289, allocations: 0 / 0.8604 GB, free: 6.836 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001694/1.291, allocations: 1.328 MB / 0.8617 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/1.293, allocations: 1.763 MB / 0.8635 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/1.293, allocations: 0 / 0.8635 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003269/1.294, allocations: 69.36 kB / 0.8635 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003605/1.294, allocations: 175 kB / 0.8637 GB, free: 4.281 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.436e-05/1.294, allocations: 13 kB / 0.8637 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001944/1.296, allocations: 2.468 MB / 0.8661 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/1.296, allocations: 0 / 0.8661 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/1.298, allocations: 1.417 MB / 0.8675 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/1.299, allocations: 44.98 kB / 0.8675 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.859e-05/1.299, allocations: 9.562 kB / 0.8676 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003445/1.299, allocations: 26.22 kB / 0.8676 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/1.299, allocations: 46.67 kB / 0.8676 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/1.299, allocations: 19.86 kB / 0.8676 GB, free: 0.6797 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003014/1.299, allocations: 222.2 kB / 0.8679 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/1.299, allocations: 0 / 0.8679 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01153/1.311, allocations: 3.575 MB / 0.8713 GB, free: 13.03 MB / 0.5762 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.02451/1.335, allocations: 6.329 MB / 0.8775 GB, free: 7.699 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002859/1.338, allocations: 1.019 MB / 0.8785 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/1.338, allocations: 2.188 kB / 0.8785 GB, free: 6.902 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0009322/1.339, allocations: 494.9 kB / 0.879 GB, free: 6.543 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/1.341, allocations: 404.6 kB / 0.8794 GB, free: 6.188 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01627/1.358, allocations: 6.347 MB / 0.8856 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007218/1.358, allocations: 0.856 MB / 0.8864 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005619/1.359, allocations: 138.6 kB / 0.8865 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/1.359, allocations: 167.6 kB / 0.8867 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of SimCode: time 1.143e-06/1.359, allocations: 7.938 kB / 0.8867 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4589/1.818, allocations: 134 MB / 1.018 GB, free: 241.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.21/20.03, allocations: 10.03 kB / 1.018 GB, free: 241.2 MB / 0.67 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.85344103095122] Failed to read output from testmodel.py, exit status != 0: 20.312532079056837 20.330638134 19.316749494 Calling exit ...