Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009767/0.0009768, allocations: 170.1 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.278/1.278, allocations: 170.6 MB / 183.8 MB, free: 11.49 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001583/0.001583, allocations: 107.4 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.548e-05/2.549e-05, allocations: 7.984 kB / 268.9 MB, free: 20.93 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08644/0.08648, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.022/1.109, allocations: 399.6 MB / 0.6906 GB, free: 74.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002194/1.109, allocations: 80.58 kB / 0.6907 GB, free: 74.9 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6739/1.783, allocations: 210.1 MB / 0.8959 GB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.162e-06/1.783, allocations: 0 / 0.8959 GB, free: 13.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.096e-05/1.783, allocations: 32 kB / 0.8959 GB, free: 13.15 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004901/1.788, allocations: 1.789 MB / 0.8976 GB, free: 11.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/1.788, allocations: 12.03 kB / 0.8977 GB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005422/1.788, allocations: 170.2 kB / 0.8978 GB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/1.79, allocations: 0.9842 MB / 0.8988 GB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/1.791, allocations: 234.5 kB / 0.899 GB, free: 9.844 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002036/1.791, allocations: 103.9 kB / 0.8991 GB, free: 9.742 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002495/1.793, allocations: 1.77 MB / 0.9008 GB, free: 7.906 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.762e-05/1.793, allocations: 8 kB / 0.9008 GB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001432/1.794, allocations: 35.98 kB / 0.9009 GB, free: 7.863 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/1.794, allocations: 105.9 kB / 0.901 GB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002312/1.796, allocations: 1.722 MB / 0.9026 GB, free: 6.027 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2536/2.05, allocations: 6.821 MB / 0.9093 GB, free: 50.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005576/2.055, allocations: 1.418 MB / 0.9107 GB, free: 50.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002438/2.058, allocations: 0.8258 MB / 0.9115 GB, free: 50.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00963/2.067, allocations: 3.975 MB / 0.9154 GB, free: 48.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/2.067, allocations: 49.02 kB / 0.9154 GB, free: 48.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 4.769e-06/2.067, allocations: 0 / 0.9154 GB, free: 48.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.01162/2.079, allocations: 4.609 MB / 0.9199 GB, free: 48.25 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.072e-05/2.079, allocations: 145.2 kB / 0.9201 GB, free: 48.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003022/2.082, allocations: 0.97 MB / 0.921 GB, free: 47.94 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001946/2.082, allocations: 51.89 kB / 0.9211 GB, free: 47.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007565/2.083, allocations: 0.5211 MB / 0.9216 GB, free: 47.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005301/2.084, allocations: 414 kB / 0.922 GB, free: 47.53 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/2.084, allocations: 28.94 kB / 0.922 GB, free: 47.53 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/2.084, allocations: 358.2 kB / 0.9223 GB, free: 47.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001541/2.086, allocations: 0.7411 MB / 0.9231 GB, free: 47.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00169/2.087, allocations: 0.9995 MB / 0.924 GB, free: 46.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/2.089, allocations: 0.8115 MB / 0.9248 GB, free: 46.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/2.089, allocations: 0 / 0.9248 GB, free: 46.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004614/2.093, allocations: 2.411 MB / 0.9272 GB, free: 46.78 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000837/2.094, allocations: 2.355 MB / 0.9295 GB, free: 44.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.283e-05/2.094, allocations: 10.81 kB / 0.9295 GB, free: 44.33 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003774/2.098, allocations: 1.192 MB / 0.9307 GB, free: 44.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/2.099, allocations: 224.9 kB / 0.9309 GB, free: 44.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005564/2.105, allocations: 6.182 MB / 0.9369 GB, free: 40.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/2.107, allocations: 90.94 kB / 0.937 GB, free: 40.05 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000361/2.107, allocations: 63.95 kB / 0.9371 GB, free: 40.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/2.107, allocations: 3.969 kB / 0.9371 GB, free: 40.05 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004036/2.111, allocations: 2.009 MB / 0.939 GB, free: 39.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.235e-05/2.111, allocations: 7.656 kB / 0.939 GB, free: 39.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002192/2.114, allocations: 0.7863 MB / 0.9398 GB, free: 39.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001125/2.115, allocations: 230.4 kB / 0.94 GB, free: 39.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005202/2.12, allocations: 6.727 MB / 0.9466 GB, free: 34.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/2.122, allocations: 92.75 kB / 0.9467 GB, free: 34.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003047/2.122, allocations: 57.27 kB / 0.9467 GB, free: 34.88 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006965/2.123, allocations: 187.9 kB / 0.9469 GB, free: 34.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004981/2.123, allocations: 133.9 kB / 0.947 GB, free: 34.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004965/2.128, allocations: 2.563 MB / 0.9495 GB, free: 34.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/2.128, allocations: 18.94 kB / 0.9496 GB, free: 34.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/2.128, allocations: 0 / 0.9496 GB, free: 34.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.676e-05/2.128, allocations: 7.547 kB / 0.9496 GB, free: 34.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00677/2.135, allocations: 4.151 MB / 0.9536 GB, free: 34.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/2.135, allocations: 3 kB / 0.9536 GB, free: 34.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007639/2.136, allocations: 152.2 kB / 0.9538 GB, free: 34.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003249/2.139, allocations: 1.192 MB / 0.9549 GB, free: 34.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001542/2.139, allocations: 44.52 kB / 0.955 GB, free: 34.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005035/2.144, allocations: 6.205 MB / 0.961 GB, free: 29.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/2.144, allocations: 2.734 kB / 0.961 GB, free: 29.89 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005417/2.15, allocations: 3.533 MB / 0.9645 GB, free: 29.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001106/2.151, allocations: 431.1 kB / 0.9649 GB, free: 29.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003924/2.151, allocations: 30.88 kB / 0.9649 GB, free: 29.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/2.153, allocations: 93.72 kB / 0.965 GB, free: 29.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/2.153, allocations: 143 kB / 0.9652 GB, free: 29.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/2.153, allocations: 49.05 kB / 0.9652 GB, free: 29.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001159/2.154, allocations: 0.7363 MB / 0.9659 GB, free: 29.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.71e-07/2.154, allocations: 0 / 0.9659 GB, free: 29.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004256/2.158, allocations: 1.12 MB / 0.967 GB, free: 29.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00275/2.161, allocations: 0.8247 MB / 0.9678 GB, free: 29.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006511/2.168, allocations: 3.568 MB / 0.9713 GB, free: 28.57 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.513e-06/2.168, allocations: 0 / 0.9713 GB, free: 28.57 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002646/2.17, allocations: 1.317 MB / 0.9726 GB, free: 28.32 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003101/2.174, allocations: 0.5342 MB / 0.9731 GB, free: 28.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006612/2.18, allocations: 2.551 MB / 0.9756 GB, free: 27.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00095/2.181, allocations: 1.298 MB / 0.9769 GB, free: 27.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002724/2.184, allocations: 0.7033 MB / 0.9776 GB, free: 27.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003664/2.184, allocations: 111.2 kB / 0.9777 GB, free: 27.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.683e-06/2.184, allocations: 0 / 0.9777 GB, free: 27.09 MB / 362.7 MB Notification: Performance of Templates: time 0.06209/2.246, allocations: 41.73 MB / 1.018 GB, free: 19.77 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)