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.001387/0.001387, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001587/0.001587, allocations: 215.5 kB / 22.26 MB, free: 5.078 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.473/1.473, allocations: 207.6 MB / 233 MB, free: 10.01 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.05306/0.05306, allocations: 9.155 MB / 294.4 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.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel",fmuType="me",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.00228/0.00228, allocations: 68.19 kB / 411.1 MB, free: 46.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08331/0.08559, allocations: 50.76 MB / 461.9 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3588/0.4443, allocations: 129.6 MB / 0.5776 GB, free: 120 kB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1265/0.5708, allocations: 111.4 MB / 0.6864 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000519/0.5714, allocations: 7.938 kB / 0.6864 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.00361/0.575, allocations: 1.551 MB / 0.6879 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004279/0.5792, allocations: 1.833 MB / 0.6897 GB, free: 3.816 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.07499/0.6542, allocations: 32.15 MB / 0.7211 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.002088/0.6563, allocations: 1.421 MB / 0.7225 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002323/0.6566, allocations: 93.84 kB / 0.7226 GB, free: 2.039 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.02473/0.6813, allocations: 12.04 MB / 0.7344 GB, free: 5.969 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008044/0.6821, allocations: 394.4 kB / 0.7347 GB, free: 5.582 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.6822, allocations: 44 kB / 0.7348 GB, free: 5.539 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3371/1.019, allocations: 38.48 MB / 0.7724 GB, free: 47.36 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000195/1.019, allocations: 124.7 kB / 0.7725 GB, free: 47.36 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0004181/1.02, allocations: 303.6 kB / 0.7728 GB, free: 47.36 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.03612/1.056, allocations: 14.59 MB / 0.787 GB, free: 46.94 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/1.056, allocations: 3.938 kB / 0.787 GB, free: 46.94 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.154e-06/1.056, allocations: 2.688 kB / 0.787 GB, free: 46.94 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.594e-05/1.056, allocations: 0 / 0.787 GB, free: 46.94 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.006284/1.062, allocations: 2.601 MB / 0.7896 GB, free: 45.52 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/1.062, allocations: 18.17 kB / 0.7896 GB, free: 45.51 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.06e-05/1.062, allocations: 80.45 kB / 0.7897 GB, free: 45.47 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005947/1.063, allocations: 95.11 kB / 0.7897 GB, free: 45.45 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003642/1.063, allocations: 275.8 kB / 0.79 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/1.063, allocations: 32.14 kB / 0.79 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.727e-05/1.063, allocations: 35.19 kB / 0.7901 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/1.065, allocations: 0.6032 MB / 0.7907 GB, free: 45.19 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/1.065, allocations: 3.562 kB / 0.7907 GB, free: 45.19 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.521e-05/1.065, allocations: 15.25 kB / 0.7907 GB, free: 45.19 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/1.065, allocations: 28.2 kB / 0.7907 GB, free: 45.19 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001132/1.066, allocations: 0.5544 MB / 0.7912 GB, free: 45.18 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001953/1.068, allocations: 2.432 MB / 0.7936 GB, free: 43.6 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009614/1.069, allocations: 469.9 kB / 0.7941 GB, free: 43.57 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004541/1.069, allocations: 317.2 kB / 0.7944 GB, free: 43.55 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2005/1.27, allocations: 43.92 MB / 0.8373 GB, free: 12.74 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/1.27, allocations: 34.56 kB / 0.8373 GB, free: 12.7 MB / 0.545 GB Notification: Performance of pre-optimization done (n=77): time 2.605e-06/1.27, allocations: 0 / 0.8373 GB, free: 12.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=81): time 0.005162/1.275, allocations: 2.247 MB / 0.8395 GB, free: 11.03 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.417e-05/1.275, allocations: 55.41 kB / 0.8395 GB, free: 10.96 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/1.275, allocations: 263.4 kB / 0.8398 GB, free: 10.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/1.275, allocations: 33.64 kB / 0.8398 GB, free: 10.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.852e-05/1.275, allocations: 192.2 kB / 0.84 GB, free: 10.54 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/1.275, allocations: 278.8 kB / 0.8403 GB, free: 10.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/1.275, allocations: 104.8 kB / 0.8404 GB, free: 10.23 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 7.6e-05/1.275, allocations: 353.1 kB / 0.8407 GB, free: 9.895 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004217/1.276, allocations: 287.2 kB / 0.841 GB, free: 9.723 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004384/1.276, allocations: 400 kB / 0.8414 GB, free: 9.418 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008464/1.277, allocations: 0.7174 MB / 0.8421 GB, free: 8.926 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/1.277, allocations: 0 / 0.8421 GB, free: 8.926 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001169/1.278, allocations: 0.8205 MB / 0.8429 GB, free: 8.363 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/1.278, allocations: 4 kB / 0.8429 GB, free: 8.359 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/1.278, allocations: 6.594 kB / 0.8429 GB, free: 8.355 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002385/1.279, allocations: 67.58 kB / 0.8429 GB, free: 8.297 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006399/1.279, allocations: 136.6 kB / 0.8431 GB, free: 8.176 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07285/1.352, allocations: 22.79 MB / 0.8653 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004587/1.353, allocations: 23.72 kB / 0.8654 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.54e-05/1.353, allocations: 19.94 kB / 0.8654 GB, free: 1.879 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.0003067/1.353, allocations: 189.4 kB / 0.8656 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.978e-05/1.353, allocations: 51.72 kB / 0.8656 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/1.355, allocations: 1.732 MB / 0.8673 GB, free: 464 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.297e-05/1.355, allocations: 18.62 kB / 0.8673 GB, free: 452 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/1.355, allocations: 0 / 0.8673 GB, free: 452 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001793/1.357, allocations: 1.321 MB / 0.8686 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002577/1.36, allocations: 1.758 MB / 0.8703 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/1.36, allocations: 0 / 0.8703 GB, free: 14.1 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/1.36, allocations: 80.97 kB / 0.8704 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003626/1.36, allocations: 173.3 kB / 0.8706 GB, free: 13.89 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/1.36, allocations: 9.938 kB / 0.8706 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001983/1.362, allocations: 2.471 MB / 0.873 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/1.362, allocations: 5.984 kB / 0.873 GB, free: 11.39 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002216/1.365, allocations: 1.42 MB / 0.8744 GB, free: 10.4 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/1.365, allocations: 45.78 kB / 0.8744 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.596e-05/1.365, allocations: 4.312 kB / 0.8744 GB, free: 10.36 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003004/1.365, allocations: 26.16 kB / 0.8744 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/1.365, allocations: 46.22 kB / 0.8745 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.759e-05/1.365, allocations: 13.5 kB / 0.8745 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002743/1.365, allocations: 226.4 kB / 0.8747 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/1.365, allocations: 64 / 0.8747 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.01234/1.378, allocations: 3.574 MB / 0.8782 GB, free: 6.637 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.02352/1.401, allocations: 6.546 MB / 0.8846 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002487/1.404, allocations: 1.013 MB / 0.8856 GB, free: 308 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/1.404, allocations: 4 kB / 0.8856 GB, free: 304 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008524/1.405, allocations: 493.9 kB / 0.8861 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001918/1.407, allocations: 410.4 kB / 0.8865 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01503/1.422, allocations: 6.338 MB / 0.8926 GB, free: 9.898 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005274/1.422, allocations: 0.8486 MB / 0.8935 GB, free: 9.023 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004666/1.423, allocations: 135.2 kB / 0.8936 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002496/1.423, allocations: 171.4 kB / 0.8938 GB, free: 8.723 MB / 0.5919 GB Notification: Performance of SimCode: time 6.41e-07/1.423, allocations: 0 / 0.8938 GB, free: 8.723 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4916/1.914, allocations: 134.1 MB / 1.025 GB, free: 241.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.85/23.77, allocations: 19.27 kB / 1.025 GB, free: 241.8 MB / 0.67 GB " [Timeout remaining time 636] (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 sys.exit(0), Time elapsed: 41.28797768801451] Failed to read output from testmodel.py, exit status != 0: 23.995258315000683 24.006384214 22.947871032 Calling exit ...