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.001303/0.001303, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001417/0.001417, allocations: 219 kB / 23.03 MB, free: 4.945 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.376/1.376, allocations: 207.7 MB / 233.9 MB, free: 9.805 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.0507/0.0507, allocations: 9.151 MB / 295.3 MB, free: 12.52 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.002126/0.002126, allocations: 64.31 kB / 411.9 MB, free: 46.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08575/0.08788, allocations: 50.76 MB / 462.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3732/0.4611, allocations: 115.2 MB / 0.5642 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.1052/0.5663, allocations: 98.61 MB / 0.6605 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005456/0.5669, allocations: 7.938 kB / 0.6605 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003224/0.5701, allocations: 1.227 MB / 0.6617 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004564/0.5746, allocations: 1.567 MB / 0.6633 GB, free: 12.14 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.08388/0.6585, allocations: 32.04 MB / 0.6946 GB, free: 12 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002536/0.6611, allocations: 1.425 MB / 0.696 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.6613, allocations: 85.91 kB / 0.696 GB, free: 10.48 MB / 0.5137 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.02112/0.6824, allocations: 11.93 MB / 0.7077 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006331/0.6831, allocations: 394.5 kB / 0.7081 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 7.606e-05/0.6831, allocations: 40 kB / 0.7081 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05341/0.7365, allocations: 27.11 MB / 0.7346 GB, free: 2.938 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003404/0.7369, allocations: 123.6 kB / 0.7347 GB, free: 2.816 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006233/0.7375, allocations: 263 kB / 0.7349 GB, free: 2.559 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.3607/1.098, allocations: 12.61 MB / 0.7473 GB, free: 57.47 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/1.098, allocations: 0 / 0.7473 GB, free: 57.47 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.094e-06/1.098, allocations: 2.688 kB / 0.7473 GB, free: 57.47 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.01e-05/1.098, allocations: 0 / 0.7473 GB, free: 57.47 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.01037/1.109, allocations: 2.592 MB / 0.7498 GB, free: 56.05 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/1.109, allocations: 13.89 kB / 0.7498 GB, free: 56.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.147e-05/1.109, allocations: 10.41 kB / 0.7498 GB, free: 56.05 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.723e-05/1.109, allocations: 83.88 kB / 0.7499 GB, free: 56.01 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006501/1.109, allocations: 90.7 kB / 0.75 GB, free: 55.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/1.11, allocations: 284.3 kB / 0.7503 GB, free: 55.82 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.923e-05/1.11, allocations: 32.78 kB / 0.7503 GB, free: 55.82 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.66e-05/1.11, allocations: 32.62 kB / 0.7503 GB, free: 55.82 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/1.111, allocations: 0.7594 MB / 0.7511 GB, free: 55.54 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/1.111, allocations: 4.875 kB / 0.7511 GB, free: 55.54 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/1.111, allocations: 13.56 kB / 0.7511 GB, free: 55.54 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.544e-05/1.111, allocations: 24.44 kB / 0.7511 GB, free: 55.54 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001199/1.113, allocations: 0.5599 MB / 0.7516 GB, free: 55.54 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/1.115, allocations: 1.713 MB / 0.7533 GB, free: 54.74 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/1.116, allocations: 472.7 kB / 0.7538 GB, free: 54.71 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000525/1.116, allocations: 313.1 kB / 0.7541 GB, free: 54.7 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1917/1.308, allocations: 44.05 MB / 0.7971 GB, free: 53.26 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.847e-05/1.308, allocations: 37.19 kB / 0.7971 GB, free: 53.22 MB / 0.545 GB Notification: Performance of pre-optimization done (n=77): time 3.466e-06/1.308, allocations: 4 kB / 0.7971 GB, free: 53.22 MB / 0.545 GB Notification: Performance of matching and sorting (n=81): time 0.005429/1.314, allocations: 2.248 MB / 0.7993 GB, free: 52.44 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/1.314, allocations: 62.72 kB / 0.7994 GB, free: 52.38 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/1.314, allocations: 262.5 kB / 0.7996 GB, free: 52.15 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/1.314, allocations: 30.14 kB / 0.7997 GB, free: 52.12 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.514e-05/1.314, allocations: 198.4 kB / 0.7998 GB, free: 51.95 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001392/1.314, allocations: 276.5 kB / 0.8001 GB, free: 51.72 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/1.314, allocations: 97.05 kB / 0.8002 GB, free: 51.65 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 8.383e-05/1.314, allocations: 348.2 kB / 0.8005 GB, free: 51.32 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004297/1.315, allocations: 287.6 kB / 0.8008 GB, free: 51.14 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004747/1.315, allocations: 408 kB / 0.8012 GB, free: 50.83 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009301/1.316, allocations: 0.7142 MB / 0.8019 GB, free: 50.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/1.316, allocations: 0 / 0.8019 GB, free: 50.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001233/1.317, allocations: 0.817 MB / 0.8027 GB, free: 49.79 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/1.317, allocations: 8 kB / 0.8027 GB, free: 49.78 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/1.317, allocations: 1.875 kB / 0.8027 GB, free: 49.78 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002326/1.318, allocations: 61.73 kB / 0.8028 GB, free: 49.72 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006596/1.318, allocations: 150.6 kB / 0.8029 GB, free: 49.59 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06557/1.384, allocations: 22.77 MB / 0.8251 GB, free: 27.34 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004687/1.384, allocations: 35.12 kB / 0.8252 GB, free: 27.32 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/1.384, allocations: 15.88 kB / 0.8252 GB, free: 27.3 MB / 0.545 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.0002661/1.385, allocations: 190.5 kB / 0.8254 GB, free: 27.15 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.516e-05/1.385, allocations: 47.66 kB / 0.8254 GB, free: 27.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/1.387, allocations: 1.739 MB / 0.8271 GB, free: 25.88 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.94e-05/1.387, allocations: 11.86 kB / 0.8271 GB, free: 25.87 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/1.387, allocations: 8 kB / 0.8271 GB, free: 25.86 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00135/1.388, allocations: 1.32 MB / 0.8284 GB, free: 24.77 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002018/1.39, allocations: 1.705 MB / 0.8301 GB, free: 23.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/1.39, allocations: 0 / 0.8301 GB, free: 23.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003061/1.39, allocations: 82.34 kB / 0.8302 GB, free: 23.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002947/1.391, allocations: 172.6 kB / 0.8303 GB, free: 23.34 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.542e-05/1.391, allocations: 15.17 kB / 0.8303 GB, free: 23.34 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/1.392, allocations: 2.46 MB / 0.8327 GB, free: 20.86 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/1.392, allocations: 0 / 0.8327 GB, free: 20.86 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/1.393, allocations: 1.418 MB / 0.8341 GB, free: 19.86 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/1.393, allocations: 47.41 kB / 0.8342 GB, free: 19.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.174e-05/1.393, allocations: 7.859 kB / 0.8342 GB, free: 19.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002903/1.394, allocations: 30.2 kB / 0.8342 GB, free: 19.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.734e-05/1.394, allocations: 46.72 kB / 0.8343 GB, free: 19.76 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/1.394, allocations: 8 kB / 0.8343 GB, free: 19.75 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002118/1.394, allocations: 232.8 kB / 0.8345 GB, free: 19.57 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.394, allocations: 0 / 0.8345 GB, free: 19.57 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01222/1.406, allocations: 3.562 MB / 0.838 GB, free: 16.1 MB / 0.545 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.02666/1.433, allocations: 6.55 MB / 0.8444 GB, free: 10.55 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002275/1.435, allocations: 1.016 MB / 0.8453 GB, free: 9.762 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/1.435, allocations: 3.188 kB / 0.8454 GB, free: 9.762 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006728/1.436, allocations: 497.6 kB / 0.8458 GB, free: 9.398 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001731/1.438, allocations: 405.2 kB / 0.8462 GB, free: 9.043 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01508/1.453, allocations: 6.332 MB / 0.8524 GB, free: 3.664 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/1.453, allocations: 250.2 kB / 0.8526 GB, free: 3.398 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004344/1.453, allocations: 139.5 kB / 0.8528 GB, free: 3.262 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/1.454, allocations: 165.7 kB / 0.8529 GB, free: 3.215 MB / 0.545 GB Notification: Performance of SimCode: time 8.32e-07/1.454, allocations: 4 kB / 0.8529 GB, free: 3.211 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4556/1.909, allocations: 135.2 MB / 0.985 GB, free: 314.8 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.65/22.56, allocations: 15.22 kB / 0.985 GB, free: 314.7 MB / 0.6544 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: 25.297535012010485] Failed to read output from testmodel.py, exit status != 0: 22.832463358994573 22.850523131 21.748750176 Calling exit ...