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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008992/0.008992, allocations: 104.1 kB / 15.74 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 197.8 kB / 16.68 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.481/1.481, allocations: 205.1 MB / 222.6 MB, free: 4.488 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04858/0.04858, allocations: 9.095 MB / 279 MB, free: 12.05 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002608/0.002608, allocations: 76.45 kB / 387 MB, free: 8.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3059, allocations: 48.15 MB / 435.2 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1308/0.4367, allocations: 128.9 MB / 0.5509 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3961/0.8329, allocations: 111.1 MB / 0.6593 GB, free: 360 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007727/0.8337, allocations: 8.5 kB / 0.6593 GB, free: 360 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002966/0.8367, allocations: 1.371 MB / 0.6607 GB, free: 344 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003108/0.8398, allocations: 1.657 MB / 0.6623 GB, free: 296 kB / 478.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.07068/0.9105, allocations: 30.12 MB / 0.6917 GB, free: 6.355 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001696/0.9122, allocations: 1.403 MB / 0.6931 GB, free: 5.344 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002175/0.9125, allocations: 129.9 kB / 0.6932 GB, free: 5.246 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01682/0.9293, allocations: 11.68 MB / 0.7046 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005013/0.9298, allocations: 380.3 kB / 0.705 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.393e-05/0.9299, allocations: 44 kB / 0.705 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06573/0.9956, allocations: 36.97 MB / 0.7411 GB, free: 9.387 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.00026/0.9959, allocations: 119.1 kB / 0.7412 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005561/0.9965, allocations: 309.6 kB / 0.7415 GB, free: 8.973 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05019/1.047, allocations: 14.52 MB / 0.7557 GB, free: 11.54 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/1.047, allocations: 0 / 0.7557 GB, free: 11.54 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.372e-06/1.047, allocations: 0 / 0.7557 GB, free: 11.54 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.796e-06/1.047, allocations: 0 / 0.7557 GB, free: 11.54 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.006283/1.053, allocations: 2.559 MB / 0.7582 GB, free: 8.93 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/1.053, allocations: 16.03 kB / 0.7582 GB, free: 8.914 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.945e-05/1.053, allocations: 85.89 kB / 0.7583 GB, free: 8.824 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000621/1.054, allocations: 91.39 kB / 0.7584 GB, free: 8.734 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004823/1.054, allocations: 340.2 kB / 0.7587 GB, free: 8.367 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/1.054, allocations: 28.66 kB / 0.7588 GB, free: 8.34 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/1.054, allocations: 35.94 kB / 0.7588 GB, free: 8.305 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/1.056, allocations: 0.6002 MB / 0.7594 GB, free: 7.688 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/1.056, allocations: 0 / 0.7594 GB, free: 7.688 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.07e-05/1.056, allocations: 16 kB / 0.7594 GB, free: 7.672 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/1.056, allocations: 14.34 kB / 0.7594 GB, free: 7.66 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/1.057, allocations: 0.552 MB / 0.7599 GB, free: 7.113 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002674/1.06, allocations: 2.459 MB / 0.7623 GB, free: 4.457 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/1.061, allocations: 494.3 kB / 0.7628 GB, free: 3.969 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005357/1.061, allocations: 342.5 kB / 0.7631 GB, free: 3.633 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4444/1.506, allocations: 139 MB / 0.8989 GB, free: 214 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/1.506, allocations: 32.94 kB / 0.8989 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 2.725e-06/1.506, allocations: 3.656 kB / 0.8989 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005537/1.511, allocations: 2.331 MB / 0.9012 GB, free: 212.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.325e-05/1.512, allocations: 63.09 kB / 0.9012 GB, free: 212 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002203/1.512, allocations: 264.1 kB / 0.9015 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/1.512, allocations: 36.42 kB / 0.9015 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.128e-05/1.512, allocations: 192.6 kB / 0.9017 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/1.512, allocations: 262.3 kB / 0.902 GB, free: 211.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/1.512, allocations: 101.2 kB / 0.9021 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.53e-05/1.512, allocations: 354.8 kB / 0.9024 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004372/1.513, allocations: 271.4 kB / 0.9027 GB, free: 210.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004732/1.513, allocations: 389.5 kB / 0.903 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009359/1.514, allocations: 0.6971 MB / 0.9037 GB, free: 209.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/1.514, allocations: 2.312 kB / 0.9037 GB, free: 209.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001268/1.515, allocations: 0.7975 MB / 0.9045 GB, free: 208.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/1.515, allocations: 4 kB / 0.9045 GB, free: 208.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/1.515, allocations: 4 kB / 0.9045 GB, free: 208.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002264/1.516, allocations: 63.73 kB / 0.9046 GB, free: 208.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006878/1.516, allocations: 141.8 kB / 0.9047 GB, free: 208.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06898/1.585, allocations: 22.95 MB / 0.9271 GB, free: 184.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004948/1.586, allocations: 34.28 kB / 0.9271 GB, free: 184.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.853e-05/1.586, allocations: 16 kB / 0.9272 GB, free: 184.8 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.0002248/1.586, allocations: 204 kB / 0.9273 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/1.586, allocations: 43.47 kB / 0.9274 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002127/1.588, allocations: 1.71 MB / 0.9291 GB, free: 182.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-05/1.588, allocations: 10.34 kB / 0.9291 GB, free: 182.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/1.588, allocations: 4 kB / 0.9291 GB, free: 182.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001553/1.59, allocations: 1.295 MB / 0.9303 GB, free: 181.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/1.592, allocations: 1.76 MB / 0.9321 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/1.592, allocations: 0 / 0.9321 GB, free: 179.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/1.592, allocations: 71.89 kB / 0.9321 GB, free: 179.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002787/1.592, allocations: 170.2 kB / 0.9323 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.354e-05/1.592, allocations: 12 kB / 0.9323 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/1.594, allocations: 2.564 MB / 0.9348 GB, free: 176.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/1.594, allocations: 0 / 0.9348 GB, free: 176.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001725/1.595, allocations: 1.378 MB / 0.9361 GB, free: 175.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 7.891e-05/1.595, allocations: 124.4 kB / 0.9363 GB, free: 175 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.941e-05/1.595, allocations: 8 kB / 0.9363 GB, free: 175 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003153/1.596, allocations: 27.97 kB / 0.9363 GB, free: 175 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.944e-05/1.596, allocations: 47.94 kB / 0.9363 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.448e-05/1.596, allocations: 12 kB / 0.9364 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001764/1.596, allocations: 227 kB / 0.9366 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/1.596, allocations: 0 / 0.9366 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007004/1.603, allocations: 3.511 MB / 0.94 GB, free: 171.7 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.01829/1.621, allocations: 6.436 MB / 0.9463 GB, free: 165.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00226/1.624, allocations: 1.07 MB / 0.9473 GB, free: 164.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/1.624, allocations: 0 / 0.9473 GB, free: 164.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007383/1.624, allocations: 0.5072 MB / 0.9478 GB, free: 164.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/1.626, allocations: 387.4 kB / 0.9482 GB, free: 163.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/1.638, allocations: 6.211 MB / 0.9543 GB, free: 157.4 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00032/1.639, allocations: 0.8526 MB / 0.9551 GB, free: 156.5 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004772/1.639, allocations: 135 kB / 0.9552 GB, free: 156.4 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002007/1.64, allocations: 167.4 kB / 0.9554 GB, free: 156.2 MB / 0.6075 GB Notification: Performance of SimCode: time 1.413e-06/1.64, allocations: 4 kB / 0.9554 GB, free: 156.2 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1703/1.81, allocations: 133.2 MB / 1.085 GB, free: 22.84 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.98/21.79, allocations: 0 / 1.085 GB, free: 22.84 MB / 0.6075 GB (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 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_CarbondioxideTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)