Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001469/0.001469, allocations: 106.5 kB / 16.62 MB, free: 6.332 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.001466/0.001466, allocations: 189.9 kB / 17.55 MB, free: 5.801 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.555/1.555, allocations: 205.1 MB / 223.4 MB, free: 12.42 MB / 190.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.001135/0.001135, allocations: 47.92 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1233, allocations: 46.62 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03415/0.1574, allocations: 31.2 MB / 357.3 MB, free: 5.473 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.1735, allocations: 10.46 MB / 367.8 MB, free: 10.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001996/0.1755, allocations: 47.62 kB / 367.8 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.177, allocations: 413.8 kB / 368.2 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005158/0.1822, allocations: 1.739 MB / 370 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00723/0.1894, allocations: 2.514 MB / 372.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005018/0.1945, allocations: 3.697 MB / 376.2 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001876/0.1964, allocations: 1.158 MB / 377.3 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2439/0.4402, allocations: 1.5 MB / 378.8 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003246/0.4435, allocations: 1.476 MB / 380.3 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006166/0.4442, allocations: 154.8 kB / 380.5 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005374/0.4496, allocations: 2.08 MB / 382.6 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000958/0.4505, allocations: 0.578 MB / 383.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001481/0.452, allocations: 0.8042 MB / 383.9 MB, free: 12.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007099/0.4591, allocations: 3.331 MB / 387.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.4592, allocations: 3.75 kB / 387.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4592, allocations: 0 / 387.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.285e-05/0.4592, allocations: 1.156 kB / 387.3 MB, free: 12.45 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.005777/0.465, allocations: 2.04 MB / 389.3 MB, free: 11.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.4651, allocations: 8.406 kB / 389.3 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005866/0.4657, allocations: 165.7 kB / 389.5 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.4671, allocations: 0.9034 MB / 390.4 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.4673, allocations: 236.4 kB / 390.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/0.4675, allocations: 102.5 kB / 390.7 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002975/0.4705, allocations: 1.795 MB / 392.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.4705, allocations: 1.312 kB / 392.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001496/0.4707, allocations: 40.12 kB / 392.6 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001113/0.4708, allocations: 101.3 kB / 392.7 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00275/0.4736, allocations: 1.786 MB / 394.4 MB, free: 10.71 MB / 318.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.01011/0.4837, allocations: 6.926 MB / 401.4 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002323/0.486, allocations: 1.483 MB / 402.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.4871, allocations: 0.8867 MB / 403.7 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006804/0.4878, allocations: 0.644 MB / 404.4 MB, free: 7.668 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.883e-05/0.4879, allocations: 46.25 kB / 404.4 MB, free: 7.629 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.046e-06/0.4879, allocations: 3.5 kB / 404.4 MB, free: 7.629 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01536/0.5033, allocations: 6.621 MB / 411 MB, free: 4.844 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.353e-05/0.5034, allocations: 173 kB / 411.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.5047, allocations: 1.09 MB / 412.3 MB, free: 4.051 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001382/0.5048, allocations: 49.27 kB / 412.4 MB, free: 4.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002956/0.5051, allocations: 0.4998 MB / 412.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003103/0.5054, allocations: 437.4 kB / 413.3 MB, free: 3.195 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004605/0.5059, allocations: 267.7 kB / 413.5 MB, free: 3.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.993e-05/0.506, allocations: 358.3 kB / 413.9 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.5072, allocations: 0.8533 MB / 414.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001339/0.5086, allocations: 1.072 MB / 415.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002302/0.5109, allocations: 1.814 MB / 417.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.5109, allocations: 0 / 417.6 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00477/0.5157, allocations: 2.611 MB / 420.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.5158, allocations: 19.17 kB / 420.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.5158, allocations: 4 kB / 420.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003727/0.5195, allocations: 1.309 MB / 421.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.5206, allocations: 215.9 kB / 421.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006819/0.5274, allocations: 6.713 MB / 428.5 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001716/0.5292, allocations: 91.78 kB / 428.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.5294, allocations: 59.97 kB / 428.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001865/0.5312, allocations: 1.104 MB / 429.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001534/0.5328, allocations: 1.065 MB / 430.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002612/0.5354, allocations: 1.774 MB / 432.6 MB, free: 472 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.159e-06/0.5354, allocations: 4 kB / 432.6 MB, free: 468 kB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004554/0.54, allocations: 2.5 MB / 435.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.54, allocations: 11.94 kB / 435.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.54, allocations: 4 kB / 435.1 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002529/0.5426, allocations: 1.016 MB / 436.1 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009924/0.5436, allocations: 226.9 kB / 436.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006362/0.5499, allocations: 6.47 MB / 442.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001591/0.5516, allocations: 102.9 kB / 442.9 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002054/0.5518, allocations: 59.97 kB / 443 MB, free: 5.785 MB / 350.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.0005421/0.5523, allocations: 252.7 kB / 443.2 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000434/0.5528, allocations: 134.4 kB / 443.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005362/0.5581, allocations: 2.811 MB / 446.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.919e-05/0.5582, allocations: 12 kB / 446.2 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.149e-05/0.5582, allocations: 4 kB / 446.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.697e-05/0.5582, allocations: 7.969 kB / 446.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008421/0.5666, allocations: 4.528 MB / 450.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.906e-06/0.5667, allocations: 0 / 450.7 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008471/0.5675, allocations: 169.9 kB / 450.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003295/0.5708, allocations: 1.282 MB / 452.2 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/0.571, allocations: 43.44 kB / 452.2 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007495/0.5785, allocations: 6.741 MB / 458.9 MB, free: 5.465 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.738e-06/0.5786, allocations: 8.156 kB / 459 MB, free: 5.457 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007126/0.5857, allocations: 3.942 MB / 462.9 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/0.5868, allocations: 435.2 kB / 463.3 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000498/0.5874, allocations: 24 kB / 463.3 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00152/0.5889, allocations: 87.78 kB / 463.4 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003814/0.5893, allocations: 145 kB / 463.6 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001635/0.5895, allocations: 51.97 kB / 463.6 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001316/0.5908, allocations: 0.7532 MB / 464.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5908, allocations: 3.938 kB / 464.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004416/0.5952, allocations: 1.054 MB / 465.4 MB, free: 14.92 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.002867/0.5981, allocations: 0.7302 MB / 466.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01034/0.6085, allocations: 4.394 MB / 470.6 MB, free: 9.859 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/0.6085, allocations: 4 kB / 470.6 MB, free: 9.855 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003386/0.6119, allocations: 1.435 MB / 472 MB, free: 8.414 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003258/0.6152, allocations: 0.6288 MB / 472.6 MB, free: 7.785 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006966/0.6222, allocations: 3.585 MB / 476.2 MB, free: 4.191 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009216/0.6231, allocations: 1.276 MB / 477.5 MB, free: 2.883 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002149/0.6253, allocations: 0.5637 MB / 478.1 MB, free: 2.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.6257, allocations: 126.6 kB / 478.2 MB, free: 2.199 MB / 382.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6257, allocations: 0 / 478.2 MB, free: 2.199 MB / 382.1 MB Notification: Performance of Templates: time 0.07371/0.6994, allocations: 46.17 MB / 0.5121 GB, free: 4.121 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)