Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6743/0.6743, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001695/0.001695, allocations: 139.4 kB / 151.8 MB, free: 4.992 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003003, allocations: 4 kB / 184.9 MB, free: 3.926 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.168/0.1683, allocations: 25.15 MB / 210 MB, free: 29.72 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.42/3.589, allocations: 1.428 GB / 1.633 GB, free: 46.44 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/3.589, allocations: 78.03 kB / 1.633 GB, free: 46.43 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.809/5.398, allocations: 0.5476 GB / 2.18 GB, free: 2.41 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.385e-06/5.398, allocations: 0 / 2.18 GB, free: 2.41 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.142e-05/5.398, allocations: 31.72 kB / 2.18 GB, free: 2.383 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.009148/5.407, allocations: 2.658 MB / 2.183 GB, free: 15.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/5.407, allocations: 12.03 kB / 2.183 GB, free: 15.67 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005046/5.408, allocations: 161.5 kB / 2.183 GB, free: 15.52 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002544/5.41, allocations: 0.9608 MB / 2.184 GB, free: 14.51 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003694/5.411, allocations: 270.5 kB / 2.184 GB, free: 14.21 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000249/5.411, allocations: 107.9 kB / 2.184 GB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004366/5.415, allocations: 2.113 MB / 2.186 GB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/5.415, allocations: 0 / 2.186 GB, free: 11.91 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001623/5.416, allocations: 43.98 kB / 2.187 GB, free: 11.87 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001368/5.416, allocations: 110.1 kB / 2.187 GB, free: 11.76 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004221/5.42, allocations: 2.218 MB / 2.189 GB, free: 9.535 MB / 282.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.01473/5.435, allocations: 8.706 MB / 2.197 GB, free: 296 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1876/5.622, allocations: 1.645 MB / 2.199 GB, free: 22.69 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06372/5.686, allocations: 36 MB / 2.234 GB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.207e-05/5.686, allocations: 48.48 kB / 2.234 GB, free: 15.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=114): time 4.919e-06/5.686, allocations: 0 / 2.234 GB, free: 15.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=124): time 0.0249/5.711, allocations: 8.02 MB / 2.242 GB, free: 14.2 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/5.711, allocations: 141.8 kB / 2.242 GB, free: 14.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00169/5.713, allocations: 0.9089 MB / 2.243 GB, free: 13.9 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002204/5.713, allocations: 51.14 kB / 2.243 GB, free: 13.87 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005365/5.714, allocations: 0.5241 MB / 2.244 GB, free: 13.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000506/5.714, allocations: 432.5 kB / 2.244 GB, free: 13.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/5.714, allocations: 27.03 kB / 2.244 GB, free: 13.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/5.715, allocations: 357.1 kB / 2.244 GB, free: 13.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001821/5.716, allocations: 0.9626 MB / 2.245 GB, free: 13.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002032/5.718, allocations: 1.205 MB / 2.246 GB, free: 12.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001888/5.72, allocations: 1.022 MB / 2.247 GB, free: 12.89 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/5.72, allocations: 6.391 kB / 2.247 GB, free: 12.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=166) (initialization): time 0.006145/5.727, allocations: 3.098 MB / 2.25 GB, free: 12.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.476e-05/5.727, allocations: 9.375 kB / 2.25 GB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/5.727, allocations: 3.438 kB / 2.25 GB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00641/5.733, allocations: 1.932 MB / 2.252 GB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/5.734, allocations: 198.8 kB / 2.253 GB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007066/5.741, allocations: 5.936 MB / 2.258 GB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001944/5.743, allocations: 149.2 kB / 2.258 GB, free: 8.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003919/5.744, allocations: 66.77 kB / 2.259 GB, free: 8.887 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 9 (overflow.flowModel.states[2].phase,overflow.flowModel.states[1].phase,pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 110 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 7 {1 5,3 3,1 5,4 13,5 12,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00129/5.745, allocations: 394.2 kB / 2.259 GB, free: 8.766 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004775/5.745, allocations: 130.6 kB / 2.259 GB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008114/5.753, allocations: 5.093 MB / 2.264 GB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.545e-05/5.754, allocations: 33.75 kB / 2.264 GB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.15e-05/5.754, allocations: 1.922 kB / 2.264 GB, free: 8.395 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.782e-05/5.754, allocations: 10.05 kB / 2.264 GB, free: 8.391 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01135/5.765, allocations: 7.297 MB / 2.271 GB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/5.765, allocations: 3.344 kB / 2.271 GB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007979/5.766, allocations: 159.3 kB / 2.271 GB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008892/5.775, allocations: 3.662 MB / 2.275 GB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004807/5.775, allocations: 45.34 kB / 2.275 GB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007794/5.783, allocations: 6.397 MB / 2.281 GB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/5.783, allocations: 5.734 kB / 2.281 GB, free: 5.059 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01163/5.795, allocations: 6.949 MB / 2.288 GB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000788/5.796, allocations: 277.5 kB / 2.288 GB, free: 4.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00058/5.796, allocations: 29.05 kB / 2.288 GB, free: 4.426 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00192/5.798, allocations: 145.3 kB / 2.288 GB, free: 4.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005746/5.799, allocations: 177.7 kB / 2.289 GB, free: 4.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003043/5.799, allocations: 55.59 kB / 2.289 GB, free: 4.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001302/5.8, allocations: 0.7063 MB / 2.289 GB, free: 4.301 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.61e-07/5.8, allocations: 0 / 2.289 GB, free: 4.301 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.008436/5.809, allocations: 1.877 MB / 2.291 GB, free: 4.207 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.h,upperTank.level,lowerTank.medium.h,lowerTank.level) * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse8.phase,$cse9.phase,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse21.phase,$cse21.region,$cse24.phase,$cse25.phase,$cse26.phase,$cse26.region,$cse27.phase,$cse27.region,upperTank.heatTransfer.states[1].phase,massFlowRate.medium.phase,lowerTank.heatTransfer.states[1].phase,hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 4,3 6,2 4,4 20,4 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01145/5.82, allocations: 2.439 MB / 2.294 GB, free: 3.855 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.007698/5.828, allocations: 2.88 MB / 2.296 GB, free: 3.543 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/5.828, allocations: 3.594 kB / 2.296 GB, free: 3.543 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004322/5.832, allocations: 1.892 MB / 2.298 GB, free: 2.391 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003292/5.836, allocations: 0.6247 MB / 2.299 GB, free: 1.945 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1906/6.026, allocations: 4.861 MB / 2.304 GB, free: 36.51 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008441/6.027, allocations: 1.418 MB / 2.305 GB, free: 35.8 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.00146/6.029, allocations: 343.3 kB / 2.305 GB, free: 35.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002987/6.029, allocations: 113 kB / 2.305 GB, free: 35.78 MB / 298.7 MB Notification: Performance of SimCode: time 8.62e-07/6.029, allocations: 0 / 2.305 GB, free: 35.78 MB / 298.7 MB Notification: Performance of Templates: time 0.08939/6.118, allocations: 71.21 MB / 2.375 GB, free: 25.88 MB / 298.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)