Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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.001306/0.001306, allocations: 115.6 kB / 17.16 MB, free: 5.895 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.001414/0.001414, allocations: 215 kB / 20.13 MB, free: 2.949 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.389/1.389, allocations: 207.6 MB / 230.5 MB, free: 4.055 MB / 174.1 MB " [Timeout remaining time 179] 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.04985/0.04985, allocations: 9.137 MB / 291.5 MB, free: 7.18 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.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",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.00215/0.00215, allocations: 67.91 kB / 406.6 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2448, allocations: 50.73 MB / 457.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1425/0.3874, allocations: 129.3 MB / 0.5729 GB, free: 6.102 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3302/0.7176, allocations: 111.3 MB / 0.6816 GB, free: 52 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005483/0.7181, allocations: 7.562 kB / 0.6816 GB, free: 52 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002721/0.7209, allocations: 1.557 MB / 0.6831 GB, free: 36 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003301/0.7242, allocations: 1.829 MB / 0.6849 GB, free: 15.98 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.07799/0.8022, allocations: 31.94 MB / 0.7161 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001965/0.8041, allocations: 1.402 MB / 0.7175 GB, free: 348 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.8043, allocations: 90.19 kB / 0.7176 GB, free: 260 kB / 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.01913/0.8235, allocations: 11.88 MB / 0.7292 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005899/0.8241, allocations: 401.5 kB / 0.7296 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.21e-05/0.8241, allocations: 44 kB / 0.7296 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06653/0.8907, allocations: 37.54 MB / 0.7663 GB, free: 15.95 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003163/0.891, allocations: 119 kB / 0.7664 GB, free: 15.84 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006155/0.8916, allocations: 313.4 kB / 0.7667 GB, free: 15.54 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.043/0.9346, allocations: 14.56 MB / 0.7809 GB, free: 2.059 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.9346, allocations: 0 / 0.7809 GB, free: 2.059 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.054e-06/0.9346, allocations: 0 / 0.7809 GB, free: 2.059 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.236e-05/0.9346, allocations: 0 / 0.7809 GB, free: 2.059 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.006911/0.9415, allocations: 2.669 MB / 0.7835 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.9416, allocations: 16.03 kB / 0.7835 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.772e-05/0.9416, allocations: 12.66 kB / 0.7835 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001023/0.9417, allocations: 82.52 kB / 0.7836 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006363/0.9423, allocations: 87.62 kB / 0.7837 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006035/0.943, allocations: 348.7 kB / 0.784 GB, free: 14.76 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.448e-05/0.943, allocations: 32.59 kB / 0.784 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.655e-05/0.9431, allocations: 36 kB / 0.7841 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.9444, allocations: 0.5933 MB / 0.7847 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.9444, allocations: 11.31 kB / 0.7847 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.9445, allocations: 12 kB / 0.7847 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.451e-05/0.9445, allocations: 23.27 kB / 0.7847 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/0.9458, allocations: 0.5454 MB / 0.7852 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002818/0.9486, allocations: 2.457 MB / 0.7876 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.9497, allocations: 471.1 kB / 0.7881 GB, free: 10.37 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000571/0.9503, allocations: 298 kB / 0.7884 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3861/1.336, allocations: 139 MB / 0.9241 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.359e-05/1.336, allocations: 38.5 kB / 0.9241 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.595e-06/1.336, allocations: 0 / 0.9241 GB, free: 196.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005112/1.342, allocations: 2.343 MB / 0.9264 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.056e-05/1.342, allocations: 61.97 kB / 0.9265 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002013/1.342, allocations: 264.7 kB / 0.9267 GB, free: 194.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/1.342, allocations: 33.7 kB / 0.9268 GB, free: 194.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.194e-05/1.342, allocations: 194 kB / 0.927 GB, free: 194 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 9.761e-05/1.342, allocations: 267.6 kB / 0.9272 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/1.342, allocations: 106 kB / 0.9273 GB, free: 193.6 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.644e-05/1.342, allocations: 361.6 kB / 0.9277 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004319/1.343, allocations: 269.3 kB / 0.9279 GB, free: 193 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004514/1.343, allocations: 394.2 kB / 0.9283 GB, free: 192.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008657/1.344, allocations: 0.699 MB / 0.929 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/1.344, allocations: 1.75 kB / 0.929 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001175/1.345, allocations: 0.802 MB / 0.9298 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/1.345, allocations: 9.344 kB / 0.9298 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/1.345, allocations: 4 kB / 0.9298 GB, free: 191.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002158/1.345, allocations: 61.09 kB / 0.9298 GB, free: 191 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006553/1.346, allocations: 142.7 kB / 0.93 GB, free: 190.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06474/1.411, allocations: 22.97 MB / 0.9524 GB, free: 167.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/1.411, allocations: 31.97 kB / 0.9524 GB, free: 167.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.104e-05/1.411, allocations: 16 kB / 0.9524 GB, free: 167.3 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.0002316/1.411, allocations: 194.5 kB / 0.9526 GB, free: 167.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.452e-05/1.411, allocations: 47.72 kB / 0.9527 GB, free: 167 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/1.413, allocations: 1.697 MB / 0.9543 GB, free: 165.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/1.413, allocations: 14.02 kB / 0.9543 GB, free: 165.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/1.413, allocations: 0 / 0.9543 GB, free: 165.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00117/1.414, allocations: 1.284 MB / 0.9556 GB, free: 163.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/1.416, allocations: 1.741 MB / 0.9573 GB, free: 162.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/1.416, allocations: 4 kB / 0.9573 GB, free: 162.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002962/1.416, allocations: 79.88 kB / 0.9574 GB, free: 162 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002706/1.417, allocations: 164.2 kB / 0.9575 GB, free: 161.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/1.417, allocations: 12 kB / 0.9575 GB, free: 161.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009897/1.418, allocations: 2.569 MB / 0.9601 GB, free: 159.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/1.418, allocations: 0 / 0.9601 GB, free: 159.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/1.419, allocations: 1.374 MB / 0.9614 GB, free: 157.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.938e-05/1.419, allocations: 122 kB / 0.9615 GB, free: 157.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.019e-05/1.419, allocations: 11.98 kB / 0.9615 GB, free: 157.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/1.42, allocations: 23.98 kB / 0.9615 GB, free: 157.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.389e-05/1.42, allocations: 43.92 kB / 0.9616 GB, free: 157.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/1.42, allocations: 16.06 kB / 0.9616 GB, free: 157.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001637/1.42, allocations: 223.1 kB / 0.9618 GB, free: 157.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/1.42, allocations: 0 / 0.9618 GB, free: 157.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008062/1.428, allocations: 3.571 MB / 0.9653 GB, free: 154.1 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.01787/1.446, allocations: 6.496 MB / 0.9716 GB, free: 148.1 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002091/1.448, allocations: 1.004 MB / 0.9726 GB, free: 147 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/1.448, allocations: 0 / 0.9726 GB, free: 147 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006565/1.449, allocations: 483.3 kB / 0.9731 GB, free: 146.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001834/1.451, allocations: 419.3 kB / 0.9735 GB, free: 146.1 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01088/1.461, allocations: 6.27 MB / 0.9796 GB, free: 139.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002121/1.462, allocations: 0.8487 MB / 0.9804 GB, free: 138.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003755/1.462, allocations: 135.2 kB / 0.9806 GB, free: 138.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001908/1.462, allocations: 171.3 kB / 0.9807 GB, free: 138.5 MB / 0.6075 GB Notification: Performance of SimCode: time 9.51e-07/1.462, allocations: 4 kB / 0.9807 GB, free: 138.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1625/1.625, allocations: 133.5 MB / 1.111 GB, free: 4.809 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.92/21.54, allocations: 4 kB / 1.111 GB, free: 4.805 MB / 0.6075 GB " [Timeout remaining time 638] (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel_fmu --startTime=0 --stopTime=11 --stepSize=0.0044 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 74.32284556003287] Failed to read output from testmodel.py, exit status != 0: 21.793390038015787 21.985286721 21.048271122 Calling exit ...