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.001183/0.001183, allocations: 99.94 kB / 15.05 MB, free: 1.105 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.001349/0.001349, allocations: 177.3 kB / 15.95 MB, free: 216 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.697/1.697, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04571/0.04571, allocations: 9.062 MB / 279.4 MB, free: 12.27 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.0005467/0.0005468, allocations: 12.22 kB / 339.1 MB, free: 26.03 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1045, allocations: 49.2 MB / 388.3 MB, free: 8.793 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3323/0.4369, allocations: 106.8 MB / 495.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.09414/0.5311, allocations: 88.49 MB / 0.5699 GB, free: 3.727 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007858/0.5319, allocations: 7.938 kB / 0.5699 GB, free: 3.719 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003568/0.5355, allocations: 1.121 MB / 0.571 GB, free: 2.594 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003789/0.5393, allocations: 1.293 MB / 0.5722 GB, free: 1.297 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.3597/0.899, allocations: 23.21 MB / 0.5949 GB, free: 17.11 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001564/0.9006, allocations: 0.7774 MB / 0.5957 GB, free: 17.1 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002407/0.9008, allocations: 97.17 kB / 0.5958 GB, free: 17.09 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.09307/0.9939, allocations: 62.47 MB / 0.6568 GB, free: 2.375 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.9943, allocations: 257 kB / 0.657 GB, free: 2.246 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.625e-05/0.9944, allocations: 20 kB / 0.657 GB, free: 2.227 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05626/1.051, allocations: 27.61 MB / 0.684 GB, free: 14.02 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002826/1.051, allocations: 90.67 kB / 0.6841 GB, free: 13.97 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004026/1.051, allocations: 144.7 kB / 0.6842 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01983/1.071, allocations: 6.675 MB / 0.6907 GB, free: 8.566 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/1.071, allocations: 0 / 0.6907 GB, free: 8.566 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.665e-06/1.071, allocations: 0 / 0.6907 GB, free: 8.566 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/1.071, allocations: 0 / 0.6907 GB, free: 8.566 MB / 494.1 MB 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.007101/1.078, allocations: 2.001 MB / 0.6927 GB, free: 6.602 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/1.079, allocations: 8.031 kB / 0.6927 GB, free: 6.594 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007029/1.079, allocations: 92.66 kB / 0.6928 GB, free: 6.508 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/1.08, allocations: 330.9 kB / 0.6931 GB, free: 6.211 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.819e-05/1.08, allocations: 31.22 kB / 0.6931 GB, free: 6.195 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.321e-05/1.08, allocations: 33.12 kB / 0.6932 GB, free: 6.176 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/1.081, allocations: 0.6082 MB / 0.6938 GB, free: 5.742 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/1.081, allocations: 3.906 kB / 0.6938 GB, free: 5.738 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/1.081, allocations: 13.88 kB / 0.6938 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.181e-05/1.081, allocations: 22.7 kB / 0.6938 GB, free: 5.719 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/1.083, allocations: 0.5767 MB / 0.6944 GB, free: 5.32 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002793/1.085, allocations: 2.469 MB / 0.6968 GB, free: 3.07 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/1.086, allocations: 0.4895 MB / 0.6972 GB, free: 2.758 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.433/1.519, allocations: 136.2 MB / 0.8302 GB, free: 257.9 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/1.519, allocations: 36.97 kB / 0.8303 GB, free: 257.8 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=77): time 4.479e-06/1.519, allocations: 0 / 0.8303 GB, free: 257.8 MB / 0.5762 GB Notification: Performance of matching and sorting (n=81): time 0.005785/1.525, allocations: 2.702 MB / 0.8329 GB, free: 256.8 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/1.525, allocations: 55.38 kB / 0.833 GB, free: 256.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/1.525, allocations: 262.1 kB / 0.8332 GB, free: 256.6 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/1.526, allocations: 34.62 kB / 0.8333 GB, free: 256.6 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/1.526, allocations: 185 kB / 0.8334 GB, free: 256.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/1.526, allocations: 267.4 kB / 0.8337 GB, free: 256.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.898e-05/1.526, allocations: 4 kB / 0.8337 GB, free: 256.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.756e-05/1.526, allocations: 358.2 kB / 0.834 GB, free: 255.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004519/1.526, allocations: 284.6 kB / 0.8343 GB, free: 255.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004819/1.527, allocations: 404.1 kB / 0.8347 GB, free: 255.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005247/1.527, allocations: 335.3 kB / 0.835 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/1.527, allocations: 5.828 kB / 0.835 GB, free: 255.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001275/1.529, allocations: 0.8153 MB / 0.8358 GB, free: 254.8 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/1.529, allocations: 7.938 kB / 0.8358 GB, free: 254.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/1.529, allocations: 3.969 kB / 0.8358 GB, free: 254.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002426/1.529, allocations: 69.39 kB / 0.8359 GB, free: 254.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006783/1.53, allocations: 147 kB / 0.836 GB, free: 254.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09191/1.622, allocations: 28.36 MB / 0.8637 GB, free: 227.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005329/1.622, allocations: 51.86 kB / 0.8638 GB, free: 227.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/1.622, allocations: 24.06 kB / 0.8638 GB, free: 227.6 MB / 0.5762 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.0002839/1.622, allocations: 190.5 kB / 0.864 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.72e-05/1.623, allocations: 39.53 kB / 0.864 GB, free: 227.4 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001805/1.624, allocations: 1.737 MB / 0.8657 GB, free: 225.6 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-05/1.624, allocations: 25.42 kB / 0.8657 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/1.624, allocations: 3.938 kB / 0.8657 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00125/1.626, allocations: 1.316 MB / 0.867 GB, free: 224.1 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/1.628, allocations: 1.777 MB / 0.8688 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/1.628, allocations: 0 / 0.8688 GB, free: 222.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003137/1.628, allocations: 85.25 kB / 0.8688 GB, free: 222.2 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003506/1.628, allocations: 180 kB / 0.869 GB, free: 222 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/1.628, allocations: 12 kB / 0.869 GB, free: 222 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/1.629, allocations: 2.482 MB / 0.8714 GB, free: 219.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/1.629, allocations: 0 / 0.8714 GB, free: 219.4 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/1.631, allocations: 1.419 MB / 0.8728 GB, free: 217.9 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/1.631, allocations: 132.5 kB / 0.873 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.19e-05/1.631, allocations: 8 kB / 0.873 GB, free: 217.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/1.632, allocations: 51.92 kB / 0.873 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/1.632, allocations: 43.88 kB / 0.8731 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-05/1.632, allocations: 18.38 kB / 0.8731 GB, free: 217.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001844/1.632, allocations: 219.1 kB / 0.8733 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/1.632, allocations: 0 / 0.8733 GB, free: 217.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007633/1.64, allocations: 3.185 MB / 0.8764 GB, free: 214.5 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 (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.01905/1.659, allocations: 4.342 MB / 0.8806 GB, free: 210.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002149/1.661, allocations: 1.029 MB / 0.8816 GB, free: 209.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.231e-06/1.661, allocations: 3.938 kB / 0.8816 GB, free: 209.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007732/1.662, allocations: 0.5132 MB / 0.8821 GB, free: 209.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/1.664, allocations: 322.8 kB / 0.8825 GB, free: 208.8 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/1.665, allocations: 1.43 MB / 0.8839 GB, free: 207.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002542/1.666, allocations: 0.8603 MB / 0.8847 GB, free: 206.4 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0003822/1.666, allocations: 142.9 kB / 0.8848 GB, free: 206.3 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.375e-05/1.666, allocations: 39.42 kB / 0.8849 GB, free: 206.3 MB / 0.5762 GB Notification: Performance of SimCode: time 5.31e-07/1.666, allocations: 0 / 0.8849 GB, free: 206.3 MB / 0.5762 GB Notification: Performance of Templates: time 0.1367/1.803, allocations: 117.4 MB / 0.9995 GB, free: 88.68 MB / 0.5762 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: