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.001431/0.001431, allocations: 182.6 kB / 18.04 MB, free: 3.785 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.36/1.36, allocations: 205.4 MB / 224.2 MB, free: 9.043 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.0009027/0.0009029, allocations: 93.17 kB / 272.5 MB, free: 8.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002996/0.0002996, allocations: 12 kB / 329.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1977, allocations: 47.57 MB / 377 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.019/6.216, allocations: 3.155 GB / 3.523 GB, free: 42.18 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/6.217, allocations: 87.95 kB / 3.523 GB, free: 42.09 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.917/13.13, allocations: 2.311 GB / 5.834 GB, free: 36.48 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.994e-06/13.13, allocations: 4.969 kB / 5.834 GB, free: 36.48 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002976/13.13, allocations: 64.12 kB / 5.834 GB, free: 36.48 MB / 458.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.01437/13.15, allocations: 3.869 MB / 5.838 GB, free: 34.52 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/13.15, allocations: 11.31 kB / 5.838 GB, free: 34.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001806/13.15, allocations: 310.3 kB / 5.838 GB, free: 34.38 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005941/13.16, allocations: 2.17 MB / 5.841 GB, free: 33.85 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002464/13.16, allocations: 221 kB / 5.841 GB, free: 33.78 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009664/13.16, allocations: 197.5 kB / 5.841 GB, free: 33.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006843/13.16, allocations: 3.368 MB / 5.844 GB, free: 33.29 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.026e-05/13.16, allocations: 15.38 kB / 5.844 GB, free: 33.29 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005144/13.17, allocations: 87.36 kB / 5.844 GB, free: 33.29 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002937/13.17, allocations: 204.2 kB / 5.845 GB, free: 33.28 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005407/13.17, allocations: 3.101 MB / 5.848 GB, free: 33.27 MB / 458.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.02007/13.19, allocations: 12.28 MB / 5.86 GB, free: 28.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003793/13.19, allocations: 2.257 MB / 5.862 GB, free: 28.11 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00209/13.2, allocations: 1.369 MB / 5.863 GB, free: 28.09 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008554/13.21, allocations: 5.805 MB / 5.869 GB, free: 25.01 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.533e-05/13.21, allocations: 58.92 kB / 5.869 GB, free: 24.95 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00113/13.21, allocations: 187.7 kB / 5.869 GB, free: 24.83 MB / 458.7 MB Notification: Performance of pre-optimization done (n=172): time 6.262e-06/13.21, allocations: 0 / 5.869 GB, free: 24.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=198): time 0.02205/13.23, allocations: 9.152 MB / 5.878 GB, free: 21.29 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.909e-05/13.23, allocations: 124.1 kB / 5.878 GB, free: 21.17 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/13.23, allocations: 1.872 MB / 5.88 GB, free: 20.45 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000427/13.23, allocations: 62.92 kB / 5.88 GB, free: 20.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006725/13.23, allocations: 1.046 MB / 5.881 GB, free: 19.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007753/13.23, allocations: 0.6804 MB / 5.882 GB, free: 19.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002804/13.23, allocations: 48.41 kB / 5.882 GB, free: 19.01 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001805/13.23, allocations: 402.9 kB / 5.882 GB, free: 18.66 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002222/13.24, allocations: 1.223 MB / 5.883 GB, free: 18.24 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002449/13.24, allocations: 1.737 MB / 5.885 GB, free: 17.21 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004406/13.24, allocations: 3.043 MB / 5.888 GB, free: 15.66 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.237e-05/13.24, allocations: 6.125 kB / 5.888 GB, free: 15.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=293) (initialization): time 0.007603/13.25, allocations: 4.227 MB / 5.892 GB, free: 13.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002428/13.25, allocations: 0.5164 MB / 5.893 GB, free: 12.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/13.25, allocations: 12 kB / 5.893 GB, free: 12.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01357/13.27, allocations: 3.676 MB / 5.896 GB, free: 9.672 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/13.27, allocations: 322.4 kB / 5.896 GB, free: 9.402 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00686/13.27, allocations: 3.966 MB / 5.9 GB, free: 5.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002717/13.28, allocations: 197.7 kB / 5.901 GB, free: 5.836 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004247/13.28, allocations: 109.4 kB / 5.901 GB, free: 5.738 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/13.28, allocations: 4 kB / 5.901 GB, free: 5.734 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006461/13.28, allocations: 3.779 MB / 5.904 GB, free: 2.477 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.673e-05/13.28, allocations: 19.66 kB / 5.904 GB, free: 2.461 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009483/13.29, allocations: 2.911 MB / 5.907 GB, free: 256 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001838/13.29, allocations: 378.7 kB / 5.908 GB, free: 15.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006345/13.3, allocations: 3.463 MB / 5.911 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00279/13.3, allocations: 197 kB / 5.911 GB, free: 12.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004446/13.3, allocations: 106.9 kB / 5.911 GB, free: 12.73 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (169): * Single equations (assignments): 168 * 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 {18 107} Notification: Performance of prepare postOptimizeDAE: time 0.001991/13.31, allocations: 0.6917 MB / 5.912 GB, free: 12.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007073/13.31, allocations: 233.1 kB / 5.912 GB, free: 11.87 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008718/13.32, allocations: 3.964 MB / 5.916 GB, free: 8.617 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.371e-05/13.32, allocations: 31.94 kB / 5.916 GB, free: 8.586 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/13.32, allocations: 0 / 5.916 GB, free: 8.586 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006125/13.32, allocations: 3.391 MB / 5.919 GB, free: 5.586 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/13.33, allocations: 6.371 MB / 5.926 GB, free: 468 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/13.33, allocations: 3.781 kB / 5.926 GB, free: 468 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00147/13.34, allocations: 317.1 kB / 5.926 GB, free: 196 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2382/13.57, allocations: 1.293 MB / 5.927 GB, free: 48.27 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000646/13.57, allocations: 76.48 kB / 5.927 GB, free: 48.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007684/13.58, allocations: 10.46 MB / 5.937 GB, free: 40.42 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/13.58, allocations: 0 / 5.937 GB, free: 40.42 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009159/13.59, allocations: 5.221 MB / 5.943 GB, free: 40.16 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/13.59, allocations: 0.6225 MB / 5.943 GB, free: 40.07 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000703/13.59, allocations: 52.92 kB / 5.943 GB, free: 40.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002112/13.6, allocations: 156.3 kB / 5.943 GB, free: 40.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004476/13.6, allocations: 177.5 kB / 5.943 GB, free: 40.06 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002357/13.6, allocations: 77.14 kB / 5.944 GB, free: 40.06 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002091/13.6, allocations: 1.281 MB / 5.945 GB, free: 39.92 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/13.6, allocations: 0 / 5.945 GB, free: 39.92 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006494/13.61, allocations: 1.887 MB / 5.947 GB, free: 39.92 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 (183): * Single equations (assignments): 169 * 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%) 6,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.003505/13.61, allocations: 1.298 MB / 5.948 GB, free: 39.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0108/13.62, allocations: 5.003 MB / 5.953 GB, free: 39.68 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/13.62, allocations: 7.219 kB / 5.953 GB, free: 39.68 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003849/13.62, allocations: 2.253 MB / 5.955 GB, free: 39.11 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005591/13.63, allocations: 0.9696 MB / 5.956 GB, free: 39.09 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/13.64, allocations: 6.614 MB / 5.962 GB, free: 36.81 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002142/13.64, allocations: 1.872 MB / 5.964 GB, free: 36.06 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003487/13.65, allocations: 0.954 MB / 5.965 GB, free: 36.01 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007161/13.65, allocations: 199.4 kB / 5.965 GB, free: 36 MB / 474.7 MB Notification: Performance of SimCode: time 7.11e-07/13.65, allocations: 0 / 5.965 GB, free: 36 MB / 474.7 MB Notification: Performance of Templates: time 0.09947/13.75, allocations: 73.61 MB / 6.037 GB, free: 32.86 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)