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/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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0095/0.0095, allocations: 103.5 kB / 15.74 MB, free: 6.488 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.001965/0.001965, allocations: 195.2 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 205.1 MB / 222.5 MB, free: 4.512 MB / 174.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.001253/0.001253, allocations: 49.52 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1181, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03247/0.1506, allocations: 30.16 MB / 403.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01928/0.17, allocations: 10.26 MB / 413.6 MB, free: 8.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002038/0.1721, allocations: 43.75 kB / 413.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001625/0.1738, allocations: 473 kB / 414.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00649/0.1803, allocations: 1.894 MB / 416 MB, free: 6.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009562/0.1899, allocations: 2.755 MB / 418.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006726/0.1966, allocations: 3.678 MB / 422.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002028/0.1987, allocations: 1.154 MB / 423.6 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003822/0.2025, allocations: 1.53 MB / 425.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004535/0.2071, allocations: 1.413 MB / 426.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005844/0.2077, allocations: 156 kB / 426.7 MB, free: 11.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006614/0.2143, allocations: 2.075 MB / 428.7 MB, free: 9.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001129/0.2155, allocations: 0.5728 MB / 429.3 MB, free: 8.965 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001559/0.2171, allocations: 0.8089 MB / 430.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008683/0.2258, allocations: 3.347 MB / 433.5 MB, free: 4.797 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2258, allocations: 4 kB / 433.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.2258, allocations: 0 / 433.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.941e-05/0.2259, allocations: 0 / 433.5 MB, free: 4.793 MB / 366.1 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.006699/0.2326, allocations: 2.045 MB / 435.5 MB, free: 2.691 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.519e-05/0.2327, allocations: 12.03 kB / 435.5 MB, free: 2.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005745/0.2333, allocations: 162.2 kB / 435.7 MB, free: 2.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.2349, allocations: 0.9409 MB / 436.6 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.2351, allocations: 234.5 kB / 436.8 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002412/0.2354, allocations: 103.8 kB / 437 MB, free: 1.176 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003218/0.2386, allocations: 1.79 MB / 438.7 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.056e-05/0.2387, allocations: 7.938 kB / 438.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001382/0.2388, allocations: 47.95 kB / 438.8 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.239, allocations: 102 kB / 438.9 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003075/0.242, allocations: 1.772 MB / 440.7 MB, free: 13.39 MB / 382.1 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.01449/0.2565, allocations: 6.916 MB / 447.6 MB, free: 6.172 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002935/0.2595, allocations: 1.482 MB / 449.1 MB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001449/0.261, allocations: 0.8822 MB / 449.9 MB, free: 3.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001053/0.2621, allocations: 0.6451 MB / 450.6 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.234e-05/0.2621, allocations: 51.55 kB / 450.6 MB, free: 2.961 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.046e-06/0.2621, allocations: 0 / 450.6 MB, free: 2.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=128): time 0.2906/0.5528, allocations: 6.62 MB / 457.3 MB, free: 73.78 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.513e-05/0.5529, allocations: 170.2 kB / 457.4 MB, free: 73.59 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.5546, allocations: 1.094 MB / 458.5 MB, free: 73.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001461/0.5548, allocations: 48.92 kB / 458.6 MB, free: 73.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004473/0.5552, allocations: 0.4987 MB / 459.1 MB, free: 72.71 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004615/0.5557, allocations: 446.1 kB / 459.5 MB, free: 72.38 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005632/0.5563, allocations: 264.7 kB / 459.8 MB, free: 72.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.5564, allocations: 367.3 kB / 460.1 MB, free: 71.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001666/0.5581, allocations: 0.85 MB / 461 MB, free: 71.63 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/0.5599, allocations: 1.076 MB / 462 MB, free: 71.08 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003067/0.563, allocations: 1.814 MB / 463.9 MB, free: 70.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.563, allocations: 1.156 kB / 463.9 MB, free: 70.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005113/0.5681, allocations: 2.624 MB / 466.5 MB, free: 69.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.668e-05/0.5682, allocations: 7.969 kB / 466.5 MB, free: 69.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.5682, allocations: 5.5 kB / 466.5 MB, free: 69.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003534/0.5717, allocations: 1.293 MB / 467.8 MB, free: 68.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.5728, allocations: 219.7 kB / 468 MB, free: 68.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006098/0.5789, allocations: 6.717 MB / 474.7 MB, free: 63.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/0.5807, allocations: 63.58 kB / 474.8 MB, free: 63.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/0.5809, allocations: 62.69 kB / 474.8 MB, free: 63.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002034/0.5829, allocations: 1.105 MB / 476 MB, free: 62.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00126/0.5842, allocations: 1.058 MB / 477 MB, free: 61.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002344/0.5866, allocations: 1.774 MB / 478.8 MB, free: 60.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.571e-06/0.5866, allocations: 1.781 kB / 478.8 MB, free: 60.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.003918/0.5905, allocations: 2.5 MB / 481.3 MB, free: 59.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.5905, allocations: 8.688 kB / 481.3 MB, free: 59.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.5906, allocations: 10.25 kB / 481.3 MB, free: 59.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/0.5926, allocations: 1.024 MB / 482.3 MB, free: 58.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008981/0.5935, allocations: 231.6 kB / 482.6 MB, free: 58.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004604/0.5981, allocations: 6.461 MB / 489 MB, free: 51.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001433/0.5996, allocations: 71.94 kB / 489.1 MB, free: 51.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/0.5997, allocations: 59.95 kB / 489.1 MB, free: 51.37 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 12 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005043/0.6003, allocations: 264 kB / 489.4 MB, free: 51.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.6006, allocations: 134.3 kB / 489.5 MB, free: 50.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004408/0.605, allocations: 2.806 MB / 492.3 MB, free: 48.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/0.605, allocations: 12 kB / 492.4 MB, free: 48.15 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.6051, allocations: 7.938 kB / 492.4 MB, free: 48.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.6051, allocations: 7.969 kB / 492.4 MB, free: 48.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006041/0.6111, allocations: 4.529 MB / 496.9 MB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.6112, allocations: 0 / 496.9 MB, free: 43.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007407/0.6119, allocations: 156.2 kB / 497 MB, free: 43.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002741/0.6147, allocations: 1.284 MB / 498.3 MB, free: 42.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001221/0.6148, allocations: 39.97 kB / 498.4 MB, free: 42.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005562/0.6204, allocations: 6.745 MB / 0.4933 GB, free: 35.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.6204, allocations: 2.844 kB / 0.4933 GB, free: 35.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006151/0.6265, allocations: 3.953 MB / 0.4971 GB, free: 31.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009615/0.6275, allocations: 431.1 kB / 0.4976 GB, free: 30.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004588/0.628, allocations: 31.94 kB / 0.4976 GB, free: 30.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.6293, allocations: 59.95 kB / 0.4976 GB, free: 30.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003629/0.6297, allocations: 145.1 kB / 0.4978 GB, free: 30.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.6298, allocations: 48.16 kB / 0.4978 GB, free: 30.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008534/0.6307, allocations: 0.7532 MB / 0.4986 GB, free: 29.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6307, allocations: 0 / 0.4986 GB, free: 29.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003373/0.6341, allocations: 1.05 MB / 0.4996 GB, free: 28.58 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.level,upperTank.medium.T,lowerTank.level,lowerTank.medium.T) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001891/0.636, allocations: 0.7395 MB / 0.5003 GB, free: 27.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006857/0.6429, allocations: 3.835 MB / 0.5041 GB, free: 24.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/0.6429, allocations: 4 kB / 0.5041 GB, free: 24.03 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002595/0.6455, allocations: 1.43 MB / 0.5055 GB, free: 22.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/0.6482, allocations: 0.6209 MB / 0.5061 GB, free: 21.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005405/0.6536, allocations: 3.096 MB / 0.5091 GB, free: 18.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006012/0.6542, allocations: 1.276 MB / 0.5103 GB, free: 17.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001486/0.6557, allocations: 0.5692 MB / 0.5109 GB, free: 16.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003098/0.656, allocations: 123.3 kB / 0.511 GB, free: 16.85 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.6561, allocations: 0 / 0.511 GB, free: 16.85 MB / 382.1 MB Notification: Performance of Templates: time 0.07277/0.7288, allocations: 46.91 MB / 0.5568 GB, free: 1.859 MB / 414.1 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)