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.00159/0.00159, allocations: 109.5 kB / 19.73 MB, free: 2.238 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.001957/0.001957, allocations: 216 kB / 23.04 MB, free: 5.082 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.383/1.383, allocations: 207.6 MB / 233.8 MB, free: 9.988 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.05034/0.05034, allocations: 9.156 MB / 295.2 MB, free: 12.7 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.002343/0.002343, allocations: 72.16 kB / 411.9 MB, free: 46.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07972/0.08207, allocations: 50.75 MB / 462.7 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3706/0.4526, allocations: 129.6 MB / 0.5784 GB, free: 148 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.114/0.5666, allocations: 111.4 MB / 0.6872 GB, free: 7.207 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005739/0.5672, allocations: 7.938 kB / 0.6872 GB, free: 7.199 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003288/0.5705, allocations: 1.551 MB / 0.6887 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004/0.5745, allocations: 1.829 MB / 0.6905 GB, free: 3.809 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.07744/0.6519, allocations: 32.16 MB / 0.7219 GB, free: 3.539 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002231/0.6542, allocations: 1.417 MB / 0.7233 GB, free: 2.121 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002531/0.6544, allocations: 81.91 kB / 0.7234 GB, free: 2.035 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.02086/0.6753, allocations: 12.06 MB / 0.7351 GB, free: 5.953 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007035/0.676, allocations: 398.5 kB / 0.7355 GB, free: 5.562 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 7.187e-05/0.6761, allocations: 47.94 kB / 0.7356 GB, free: 5.516 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3788/1.055, allocations: 38.47 MB / 0.7731 GB, free: 47.35 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003078/1.055, allocations: 125.3 kB / 0.7732 GB, free: 47.35 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006079/1.056, allocations: 308.9 kB / 0.7735 GB, free: 47.35 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04599/1.102, allocations: 14.59 MB / 0.7878 GB, free: 46.93 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/1.102, allocations: 0 / 0.7878 GB, free: 46.93 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/1.102, allocations: 0 / 0.7878 GB, free: 46.93 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.245e-05/1.102, allocations: 0 / 0.7878 GB, free: 46.93 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.008504/1.11, allocations: 2.601 MB / 0.7903 GB, free: 45.5 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/1.11, allocations: 11.52 kB / 0.7903 GB, free: 45.5 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.432e-05/1.11, allocations: 10.94 kB / 0.7904 GB, free: 45.5 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.854e-05/1.11, allocations: 86.31 kB / 0.7904 GB, free: 45.46 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006468/1.111, allocations: 92.33 kB / 0.7905 GB, free: 45.43 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004346/1.111, allocations: 279.4 kB / 0.7908 GB, free: 45.27 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.357e-05/1.112, allocations: 33.75 kB / 0.7908 GB, free: 45.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/1.112, allocations: 31.97 kB / 0.7909 GB, free: 45.27 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/1.113, allocations: 0.6095 MB / 0.7914 GB, free: 45.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/1.113, allocations: 6.906 kB / 0.7915 GB, free: 45.18 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.67e-05/1.113, allocations: 14.97 kB / 0.7915 GB, free: 45.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/1.113, allocations: 13.47 kB / 0.7915 GB, free: 45.18 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/1.114, allocations: 0.5658 MB / 0.792 GB, free: 45.17 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002088/1.116, allocations: 2.427 MB / 0.7944 GB, free: 43.59 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000946/1.117, allocations: 474.8 kB / 0.7949 GB, free: 43.55 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000443/1.117, allocations: 318 kB / 0.7952 GB, free: 43.54 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1858/1.303, allocations: 43.92 MB / 0.838 GB, free: 12.73 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/1.303, allocations: 34.56 kB / 0.8381 GB, free: 12.68 MB / 0.545 GB Notification: Performance of pre-optimization done (n=77): time 2.795e-06/1.303, allocations: 2.625 kB / 0.8381 GB, free: 12.68 MB / 0.545 GB Notification: Performance of matching and sorting (n=81): time 0.00533/1.309, allocations: 2.25 MB / 0.8403 GB, free: 11.01 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/1.309, allocations: 57.27 kB / 0.8403 GB, free: 10.94 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/1.309, allocations: 259.7 kB / 0.8406 GB, free: 10.72 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/1.309, allocations: 37.58 kB / 0.8406 GB, free: 10.68 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.524e-05/1.309, allocations: 192.5 kB / 0.8408 GB, free: 10.52 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001074/1.309, allocations: 270.5 kB / 0.8411 GB, free: 10.29 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/1.309, allocations: 103.2 kB / 0.8412 GB, free: 10.22 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.69e-05/1.309, allocations: 352.4 kB / 0.8415 GB, free: 9.883 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004301/1.31, allocations: 292.3 kB / 0.8418 GB, free: 9.707 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004655/1.31, allocations: 397.3 kB / 0.8421 GB, free: 9.402 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008961/1.311, allocations: 0.7143 MB / 0.8428 GB, free: 8.914 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/1.311, allocations: 3.5 kB / 0.8428 GB, free: 8.914 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001217/1.312, allocations: 0.8165 MB / 0.8436 GB, free: 8.352 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/1.312, allocations: 9.375 kB / 0.8437 GB, free: 8.348 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/1.312, allocations: 8 kB / 0.8437 GB, free: 8.34 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000237/1.313, allocations: 61.36 kB / 0.8437 GB, free: 8.285 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000666/1.313, allocations: 139.4 kB / 0.8439 GB, free: 8.164 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07162/1.385, allocations: 22.78 MB / 0.8661 GB, free: 1.891 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000491/1.385, allocations: 31.47 kB / 0.8661 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/1.385, allocations: 15.81 kB / 0.8661 GB, free: 1.855 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.0003257/1.386, allocations: 192.7 kB / 0.8663 GB, free: 1.699 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/1.386, allocations: 47.66 kB / 0.8664 GB, free: 1.652 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002265/1.388, allocations: 1.731 MB / 0.8681 GB, free: 440 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/1.388, allocations: 20.55 kB / 0.8681 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/1.388, allocations: 0 / 0.8681 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001813/1.39, allocations: 1.324 MB / 0.8694 GB, free: 15.32 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0027/1.393, allocations: 1.757 MB / 0.8711 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/1.393, allocations: 4 kB / 0.8711 GB, free: 14.07 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/1.393, allocations: 76.59 kB / 0.8712 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00036/1.393, allocations: 180.5 kB / 0.8713 GB, free: 13.86 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/1.393, allocations: 7.984 kB / 0.8714 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001895/1.395, allocations: 2.469 MB / 0.8738 GB, free: 11.37 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/1.395, allocations: 0 / 0.8738 GB, free: 11.37 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/1.397, allocations: 1.428 MB / 0.8752 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/1.398, allocations: 43.5 kB / 0.8752 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.207e-05/1.398, allocations: 3.75 kB / 0.8752 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003211/1.398, allocations: 31.66 kB / 0.8752 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/1.398, allocations: 39.78 kB / 0.8753 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.792e-05/1.398, allocations: 20 kB / 0.8753 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002536/1.398, allocations: 220.5 kB / 0.8755 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/1.398, allocations: 0 / 0.8755 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01141/1.41, allocations: 3.571 MB / 0.879 GB, free: 6.613 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.02419/1.434, allocations: 6.542 MB / 0.8854 GB, free: 1.066 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002704/1.437, allocations: 1.019 MB / 0.8864 GB, free: 284 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/1.437, allocations: 0 / 0.8864 GB, free: 284 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008744/1.437, allocations: 492.2 kB / 0.8868 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/1.44, allocations: 417.2 kB / 0.8872 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/1.456, allocations: 6.335 MB / 0.8934 GB, free: 9.859 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000501/1.457, allocations: 0.8526 MB / 0.8943 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004737/1.457, allocations: 135.2 kB / 0.8944 GB, free: 8.848 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/1.458, allocations: 163.4 kB / 0.8945 GB, free: 8.688 MB / 0.5919 GB Notification: Performance of SimCode: time 1.052e-06/1.458, allocations: 0 / 0.8945 GB, free: 8.688 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4936/1.951, allocations: 134.2 MB / 1.026 GB, free: 241.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.31/22.26, allocations: 11.42 kB / 1.026 GB, free: 241.8 MB / 0.67 GB " [Timeout remaining time 637] (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: 75.08873786800541] Failed to read output from testmodel.py, exit status != 0: 22.535595236113295 22.552978865 21.447550716 Calling exit ...