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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001082/0.001082, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009402/0.009402, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.609/1.609, allocations: 205.4 MB / 222.4 MB, free: 5.781 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.0004945/0.0004946, allocations: 16 kB / 279.4 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2841, allocations: 47.59 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03381/0.3179, allocations: 30.74 MB / 357.8 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01871/0.3367, allocations: 10.64 MB / 368.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001766/0.3385, allocations: 43.62 kB / 368.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.3398, allocations: 409.7 kB / 368.9 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005358/0.3452, allocations: 1.747 MB / 370.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007537/0.3528, allocations: 2.315 MB / 372.9 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006739/0.3595, allocations: 5.187 MB / 378.1 MB, free: 180 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00193/0.3615, allocations: 1.011 MB / 379.1 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002798/0.3643, allocations: 1.292 MB / 380.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002084/0.3664, allocations: 1.394 MB / 381.8 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002104/0.3666, allocations: 80 kB / 381.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004623/0.3713, allocations: 1.993 MB / 383.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006527/0.3719, allocations: 0.4946 MB / 384.4 MB, free: 9.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.3731, allocations: 0.7558 MB / 385.1 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005636/0.3787, allocations: 3.218 MB / 388.3 MB, free: 5.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.16e-05/0.3788, allocations: 3.938 kB / 388.3 MB, free: 5.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.3788, allocations: 3.938 kB / 388.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.931e-05/0.3788, allocations: 0 / 388.3 MB, free: 5.887 MB / 318.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.004887/0.3837, allocations: 1.773 MB / 390.1 MB, free: 4.062 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.535e-05/0.3838, allocations: 11.97 kB / 390.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005194/0.3843, allocations: 162.2 kB / 390.3 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/0.3858, allocations: 0.9018 MB / 391.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000199/0.386, allocations: 230.5 kB / 391.4 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002244/0.3862, allocations: 99.98 kB / 391.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003093/0.3893, allocations: 1.806 MB / 393.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.824e-05/0.3894, allocations: 0 / 393.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001499/0.3895, allocations: 43.98 kB / 393.4 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.3897, allocations: 102 kB / 393.5 MB, free: 0.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003015/0.3927, allocations: 1.776 MB / 395.2 MB, free: 14.8 MB / 334.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.01239/0.4051, allocations: 6.956 MB / 402.2 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002729/0.4079, allocations: 1.509 MB / 403.7 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.4093, allocations: 0.886 MB / 404.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009581/0.4103, allocations: 0.6568 MB / 405.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.4103, allocations: 47.55 kB / 405.3 MB, free: 4.297 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.086e-06/0.4104, allocations: 4 kB / 405.3 MB, free: 4.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01678/0.4271, allocations: 6.672 MB / 412 MB, free: 13.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.98e-05/0.4273, allocations: 171.5 kB / 412.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.4288, allocations: 1.096 MB / 413.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000138/0.4289, allocations: 49.7 kB / 413.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004302/0.4294, allocations: 0.4965 MB / 413.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004391/0.4298, allocations: 437.8 kB / 414.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001963/0.43, allocations: 117.6 kB / 414.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.4302, allocations: 361.9 kB / 414.7 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.4315, allocations: 0.8354 MB / 415.5 MB, free: 9.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.433, allocations: 1.076 MB / 416.6 MB, free: 8.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002772/0.4358, allocations: 1.816 MB / 418.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.4358, allocations: 0 / 418.4 MB, free: 6.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004766/0.4406, allocations: 2.62 MB / 421 MB, free: 4.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002004/0.4408, allocations: 235.5 kB / 421.3 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.4409, allocations: 7.938 kB / 421.3 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003631/0.4445, allocations: 1.296 MB / 422.6 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.4456, allocations: 219.6 kB / 422.8 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006668/0.4522, allocations: 6.364 MB / 429.1 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.4539, allocations: 103.8 kB / 429.2 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001433/0.4541, allocations: 51.98 kB / 429.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.267e-06/0.4541, allocations: 4 kB / 429.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004198/0.4583, allocations: 2.35 MB / 431.6 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.4583, allocations: 7.938 kB / 431.6 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/0.4608, allocations: 1.019 MB / 432.7 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.4619, allocations: 227.6 kB / 432.9 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006652/0.4685, allocations: 6.111 MB / 439 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.4702, allocations: 95.94 kB / 439.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.4704, allocations: 47.98 kB / 439.1 MB, free: 1.262 MB / 366.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.0009494/0.4713, allocations: 460.7 kB / 439.6 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002538/0.4716, allocations: 142.2 kB / 439.7 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005195/0.4768, allocations: 2.8 MB / 442.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.367e-05/0.4768, allocations: 12.19 kB / 442.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.4769, allocations: 4 kB / 442.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.12e-05/0.4769, allocations: 19.89 kB / 442.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007667/0.4846, allocations: 4.526 MB / 447.1 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.4846, allocations: 0 / 447.1 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008009/0.4854, allocations: 155.8 kB / 447.2 MB, free: 9.051 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003335/0.4887, allocations: 1.307 MB / 448.5 MB, free: 7.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.4889, allocations: 39.91 kB / 448.6 MB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006598/0.4955, allocations: 6.388 MB / 455 MB, free: 0.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.4955, allocations: 3.938 kB / 455 MB, free: 0.9531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2427/0.7382, allocations: 3.947 MB / 458.9 MB, free: 115.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001068/0.7393, allocations: 439 kB / 459.4 MB, free: 115.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002119/0.7396, allocations: 30.41 kB / 459.4 MB, free: 115.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.7407, allocations: 97.06 kB / 459.5 MB, free: 115.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004011/0.7411, allocations: 143.3 kB / 459.6 MB, free: 115.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/0.7412, allocations: 54.81 kB / 459.7 MB, free: 115.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001171/0.7424, allocations: 0.7505 MB / 460.4 MB, free: 114.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.7424, allocations: 0 / 460.4 MB, free: 114.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003772/0.7462, allocations: 1.057 MB / 461.5 MB, free: 114.7 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.001797/0.748, allocations: 0.7253 MB / 462.2 MB, free: 114.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006675/0.7547, allocations: 3.797 MB / 466 MB, free: 113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.7548, allocations: 0 / 466 MB, free: 113 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002607/0.7574, allocations: 1.421 MB / 467.4 MB, free: 112.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002904/0.7603, allocations: 0.5892 MB / 468 MB, free: 112.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005499/0.7658, allocations: 3.724 MB / 471.7 MB, free: 109.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006126/0.7664, allocations: 1.264 MB / 473 MB, free: 108.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001688/0.7681, allocations: 0.5768 MB / 473.6 MB, free: 108 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003104/0.7684, allocations: 119.4 kB / 473.7 MB, free: 107.9 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7685, allocations: 0 / 473.7 MB, free: 107.9 MB / 382.1 MB Notification: Performance of Templates: time 0.05563/0.8241, allocations: 43.87 MB / 0.5054 GB, free: 64.01 MB / 382.1 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)