Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem") translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001076/0.001076, allocations: 181.4 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.667/1.667, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00098/0.0009799, allocations: 98.84 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002648/0.0002648, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.2549, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.681/7.936, allocations: 3.154 GB / 3.521 GB, free: 74.61 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/7.936, allocations: 80.61 kB / 3.521 GB, free: 74.61 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 13.23/21.17, allocations: 3.1 GB / 6.621 GB, free: 41.02 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.096e-06/21.17, allocations: 0 / 6.621 GB, free: 41.02 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004102/21.17, allocations: 76.2 kB / 6.621 GB, free: 41 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.02327/21.19, allocations: 3.899 MB / 6.625 GB, free: 39.03 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.816e-05/21.19, allocations: 10.62 kB / 6.625 GB, free: 39.03 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003053/21.19, allocations: 312.7 kB / 6.625 GB, free: 38.89 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009494/21.2, allocations: 2.035 MB / 6.627 GB, free: 38.37 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004188/21.2, allocations: 221.9 kB / 6.627 GB, free: 38.3 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00169/21.21, allocations: 202.2 kB / 6.627 GB, free: 38.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/21.22, allocations: 3.347 MB / 6.631 GB, free: 37.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001497/21.22, allocations: 11.25 kB / 6.631 GB, free: 37.79 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001013/21.22, allocations: 84.56 kB / 6.631 GB, free: 37.79 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003929/21.22, allocations: 209.4 kB / 6.631 GB, free: 37.78 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008921/21.23, allocations: 3.098 MB / 6.634 GB, free: 37.74 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02617/21.25, allocations: 12.42 MB / 6.646 GB, free: 31.33 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004128/21.26, allocations: 2.252 MB / 6.648 GB, free: 30.39 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01058/21.27, allocations: 5.876 MB / 6.654 GB, free: 26.42 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/21.27, allocations: 56.06 kB / 6.654 GB, free: 26.36 MB / 474.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00144/21.27, allocations: 191.4 kB / 6.654 GB, free: 26.24 MB / 474.7 MB Notification: Performance of pre-optimization done (n=174): time 9.859e-06/21.27, allocations: 0 / 6.654 GB, free: 26.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=200): time 0.02343/21.29, allocations: 9.109 MB / 6.663 GB, free: 22.67 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.722e-05/21.29, allocations: 124 kB / 6.663 GB, free: 22.54 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00391/21.3, allocations: 1.672 MB / 6.665 GB, free: 21.13 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002881/21.3, allocations: 64.61 kB / 6.665 GB, free: 21.07 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009894/21.3, allocations: 1.035 MB / 6.666 GB, free: 20.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007906/21.3, allocations: 0.6864 MB / 6.667 GB, free: 19.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/21.3, allocations: 48 kB / 6.667 GB, free: 19.46 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002057/21.3, allocations: 399.4 kB / 6.667 GB, free: 19.09 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002135/21.3, allocations: 1.232 MB / 6.668 GB, free: 18.07 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002471/21.3, allocations: 1.747 MB / 6.67 GB, free: 16.36 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002498/21.31, allocations: 1.472 MB / 6.671 GB, free: 15.08 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.709e-05/21.31, allocations: 4 kB / 6.671 GB, free: 15.08 MB / 474.7 MB Notification: Performance of matching and sorting (n=294) (initialization): time 0.007762/21.32, allocations: 4.274 MB / 6.676 GB, free: 11.37 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00209/21.32, allocations: 5.797 MB / 6.681 GB, free: 5.18 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.248e-05/21.32, allocations: 19.59 kB / 6.681 GB, free: 5.164 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01402/21.33, allocations: 3.601 MB / 6.685 GB, free: 2.02 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/21.33, allocations: 311.5 kB / 6.685 GB, free: 1.715 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4012/21.73, allocations: 4.035 MB / 6.689 GB, free: 37.14 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003388/21.74, allocations: 200.3 kB / 6.689 GB, free: 37.14 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000308/21.74, allocations: 116.5 kB / 6.689 GB, free: 37.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/21.74, allocations: 4.594 kB / 6.689 GB, free: 37.14 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006407/21.74, allocations: 3.817 MB / 6.693 GB, free: 37.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/21.74, allocations: 17.56 kB / 6.693 GB, free: 37.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01011/21.75, allocations: 2.947 MB / 6.696 GB, free: 37.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/21.76, allocations: 358.5 kB / 6.696 GB, free: 37.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005448/21.76, allocations: 3.512 MB / 6.7 GB, free: 36.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00313/21.76, allocations: 198.6 kB / 6.7 GB, free: 36.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005856/21.77, allocations: 105.7 kB / 6.7 GB, free: 36.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (168): * Single equations (assignments): 167 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.002641/21.77, allocations: 0.6975 MB / 6.701 GB, free: 36.31 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/21.77, allocations: 226.6 kB / 6.701 GB, free: 36.31 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009403/21.78, allocations: 4.066 MB / 6.705 GB, free: 36.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.301e-05/21.78, allocations: 27.61 kB / 6.705 GB, free: 36.12 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.792e-05/21.78, allocations: 10.14 kB / 6.705 GB, free: 36.12 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006534/21.79, allocations: 3.464 MB / 6.708 GB, free: 35.65 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/21.8, allocations: 6.435 MB / 6.715 GB, free: 35.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/21.8, allocations: 1 kB / 6.715 GB, free: 35.21 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00161/21.8, allocations: 319.7 kB / 6.715 GB, free: 35.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005231/21.81, allocations: 1.276 MB / 6.716 GB, free: 35.14 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003112/21.81, allocations: 69.34 kB / 6.716 GB, free: 35.14 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009917/21.82, allocations: 10.6 MB / 6.727 GB, free: 27.27 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/21.82, allocations: 1.469 kB / 6.727 GB, free: 27.27 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01072/21.83, allocations: 5.279 MB / 6.732 GB, free: 26.94 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00229/21.83, allocations: 0.639 MB / 6.732 GB, free: 26.73 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008671/21.83, allocations: 58.75 kB / 6.732 GB, free: 26.73 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002329/21.83, allocations: 162.2 kB / 6.733 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00044/21.83, allocations: 173.4 kB / 6.733 GB, free: 26.71 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002499/21.83, allocations: 80.34 kB / 6.733 GB, free: 26.71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002687/21.84, allocations: 1.263 MB / 6.734 GB, free: 26.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.71e-07/21.84, allocations: 0 / 6.734 GB, free: 26.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009817/21.85, allocations: 1.938 MB / 6.736 GB, free: 26.57 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.medium.T,tank.level,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.005728/21.85, allocations: 1.365 MB / 6.737 GB, free: 26.44 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01179/21.86, allocations: 5.07 MB / 6.742 GB, free: 26.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.647e-06/21.86, allocations: 6.594 kB / 6.742 GB, free: 26.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004729/21.87, allocations: 2.264 MB / 6.744 GB, free: 25.74 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006383/21.88, allocations: 0.9283 MB / 6.745 GB, free: 25.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01437/21.89, allocations: 6.664 MB / 6.752 GB, free: 23.37 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002315/21.89, allocations: 1.921 MB / 6.754 GB, free: 22.61 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004403/21.9, allocations: 0.9523 MB / 6.755 GB, free: 22.54 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009808/21.9, allocations: 200.6 kB / 6.755 GB, free: 22.53 MB / 474.7 MB Notification: Performance of SimCode: time 1.673e-06/21.9, allocations: 0 / 6.755 GB, free: 22.53 MB / 474.7 MB Notification: Performance of Templates: time 0.1255/22.02, allocations: 72.72 MB / 6.826 GB, free: 12.01 MB / 474.7 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.HeatingSystem.pipe 2>&1)