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: translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009118/0.0009119, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001117/0.001117, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.555/1.555, allocations: 205.4 MB / 222.1 MB, free: 5.883 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04616/0.04616, allocations: 9.069 MB / 279.5 MB, free: 12.5 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.000509/0.0005091, allocations: 16 kB / 339.1 MB, free: 26.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09488/0.0954, allocations: 49.19 MB / 388.3 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3382/0.4336, allocations: 120.1 MB / 0.4965 GB, free: 320 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.3782/0.8119, allocations: 103.8 MB / 0.5979 GB, free: 10.57 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007465/0.8127, allocations: 10.22 kB / 0.5979 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003399/0.8161, allocations: 1.069 MB / 0.5989 GB, free: 10.56 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004081/0.8202, allocations: 1.328 MB / 0.6002 GB, free: 10.55 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06728/0.8875, allocations: 23.23 MB / 0.6229 GB, free: 10.18 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002396/0.8899, allocations: 1.579 MB / 0.6244 GB, free: 10.17 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.8902, allocations: 90.19 kB / 0.6245 GB, free: 10.16 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1143/1.004, allocations: 85.6 MB / 0.7081 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005629/1.005, allocations: 370.7 kB / 0.7085 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.915e-05/1.005, allocations: 24 kB / 0.7085 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05512/1.06, allocations: 29.21 MB / 0.737 GB, free: 176 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002537/1.061, allocations: 102.5 kB / 0.7371 GB, free: 104 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003804/1.061, allocations: 142.8 kB / 0.7373 GB, free: 0 / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.02181/1.083, allocations: 8.784 MB / 0.7458 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/1.083, allocations: 0 / 0.7458 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.405e-06/1.083, allocations: 0 / 0.7458 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.416e-06/1.083, allocations: 0 / 0.7458 GB, free: 8.949 MB / 0.5294 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.006883/1.09, allocations: 2.499 MB / 0.7483 GB, free: 6.5 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/1.09, allocations: 8.031 kB / 0.7483 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006234/1.09, allocations: 95.92 kB / 0.7484 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/1.091, allocations: 323.5 kB / 0.7487 GB, free: 6.094 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.863e-05/1.091, allocations: 31.67 kB / 0.7487 GB, free: 6.078 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.999e-05/1.091, allocations: 34.41 kB / 0.7488 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/1.092, allocations: 0.6127 MB / 0.7494 GB, free: 5.609 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/1.092, allocations: 3.938 kB / 0.7494 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.744e-05/1.092, allocations: 17 kB / 0.7494 GB, free: 5.598 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.386e-05/1.092, allocations: 20.17 kB / 0.7494 GB, free: 5.582 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/1.093, allocations: 0.567 MB / 0.7499 GB, free: 5.18 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/1.096, allocations: 2.465 MB / 0.7524 GB, free: 2.922 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009302/1.097, allocations: 0.491 MB / 0.7528 GB, free: 2.609 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004715/1.097, allocations: 354.4 kB / 0.7532 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3807/1.478, allocations: 135.8 MB / 0.8858 GB, free: 180 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.045e-05/1.478, allocations: 38.31 kB / 0.8858 GB, free: 180 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=77): time 3.126e-06/1.478, allocations: 0 / 0.8858 GB, free: 180 MB / 0.5606 GB Notification: Performance of matching and sorting (n=81): time 0.005508/1.484, allocations: 2.418 MB / 0.8882 GB, free: 177.6 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/1.484, allocations: 59.39 kB / 0.8883 GB, free: 177.5 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/1.484, allocations: 264.4 kB / 0.8885 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.156e-05/1.484, allocations: 33.7 kB / 0.8885 GB, free: 177.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.569e-05/1.484, allocations: 190.3 kB / 0.8887 GB, free: 177 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/1.484, allocations: 258.2 kB / 0.889 GB, free: 176.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/1.484, allocations: 12 kB / 0.889 GB, free: 176.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.004e-05/1.484, allocations: 346.8 kB / 0.8893 GB, free: 176.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003976/1.485, allocations: 291.4 kB / 0.8896 GB, free: 176.1 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004286/1.485, allocations: 402.2 kB / 0.89 GB, free: 175.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004541/1.486, allocations: 338.1 kB / 0.8903 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.486, allocations: 0 / 0.8903 GB, free: 175.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001159/1.487, allocations: 0.8198 MB / 0.8911 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/1.487, allocations: 8 kB / 0.8911 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/1.487, allocations: 10.62 kB / 0.8911 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002235/1.487, allocations: 63.39 kB / 0.8912 GB, free: 174.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006239/1.488, allocations: 150.7 kB / 0.8913 GB, free: 174.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08089/1.569, allocations: 28.38 MB / 0.919 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004674/1.569, allocations: 67.89 kB / 0.9191 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/1.569, allocations: 16.5 kB / 0.9191 GB, free: 145.2 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 (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,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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 (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000245/1.569, allocations: 193.6 kB / 0.9193 GB, free: 145 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.269e-05/1.569, allocations: 43.48 kB / 0.9193 GB, free: 145 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001656/1.571, allocations: 1.74 MB / 0.921 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/1.571, allocations: 9.859 kB / 0.9211 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/1.571, allocations: 1 kB / 0.9211 GB, free: 143.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001198/1.572, allocations: 1.32 MB / 0.9223 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/1.574, allocations: 1.778 MB / 0.9241 GB, free: 139.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/1.574, allocations: 0 / 0.9241 GB, free: 139.9 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002891/1.574, allocations: 83.81 kB / 0.9242 GB, free: 139.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003305/1.575, allocations: 179.8 kB / 0.9243 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.063e-05/1.575, allocations: 4 kB / 0.9243 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00108/1.576, allocations: 2.478 MB / 0.9268 GB, free: 137 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/1.576, allocations: 0.875 kB / 0.9268 GB, free: 137 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/1.578, allocations: 1.416 MB / 0.9281 GB, free: 135.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/1.578, allocations: 140.4 kB / 0.9283 GB, free: 135.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.022e-05/1.578, allocations: 4 kB / 0.9283 GB, free: 135.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/1.578, allocations: 43.97 kB / 0.9283 GB, free: 135.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.453e-05/1.578, allocations: 55.84 kB / 0.9284 GB, free: 135.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/1.578, allocations: 8 kB / 0.9284 GB, free: 135.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001953/1.578, allocations: 223.1 kB / 0.9286 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.2e-07/1.578, allocations: 0 / 0.9286 GB, free: 135.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008073/1.586, allocations: 3.183 MB / 0.9317 GB, free: 132.3 MB / 0.5606 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01721/1.604, allocations: 4.353 MB / 0.9359 GB, free: 128.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001898/1.606, allocations: 1.037 MB / 0.937 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/1.606, allocations: 4 kB / 0.937 GB, free: 127.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0006393/1.606, allocations: 0.5228 MB / 0.9375 GB, free: 126.8 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/1.608, allocations: 328.1 kB / 0.9378 GB, free: 126.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001474/1.609, allocations: 1.431 MB / 0.9392 GB, free: 125 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/1.61, allocations: 0.8447 MB / 0.94 GB, free: 124.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003439/1.61, allocations: 139 kB / 0.9401 GB, free: 124 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.904e-05/1.61, allocations: 39.44 kB / 0.9402 GB, free: 124 MB / 0.5606 GB Notification: Performance of SimCode: time 1.232e-06/1.61, allocations: 0 / 0.9402 GB, free: 124 MB / 0.5606 GB Notification: Performance of Templates: time 0.122/1.732, allocations: 117.4 MB / 1.055 GB, free: 6.426 MB / 0.5606 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.makefile Environment - environmentSimulation: (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1) Environment - environmentSimulation: