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.001535/0.001535, allocations: 109.7 kB / 16.51 MB, free: 6.707 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.001493/0.001493, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.448/1.448, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.001231/0.001231, allocations: 47.94 kB / 279.3 MB, free: 3.578 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1102, allocations: 46.62 MB / 326 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03347/0.1437, allocations: 31.51 MB / 357.5 MB, free: 5.258 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01572/0.1595, allocations: 10.8 MB / 368.3 MB, free: 10.43 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001786/0.1613, allocations: 47.62 kB / 368.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.1627, allocations: 417.8 kB / 368.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004643/0.1673, allocations: 1.739 MB / 370.5 MB, free: 8.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00611/0.1734, allocations: 2.311 MB / 372.8 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005876/0.1793, allocations: 5.206 MB / 378 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2073/0.3866, allocations: 1.022 MB / 379 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005789/0.3925, allocations: 1.311 MB / 380.3 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006022/0.3986, allocations: 1.418 MB / 381.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006332/0.3992, allocations: 87.03 kB / 381.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006251/0.4055, allocations: 1.993 MB / 383.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001214/0.4068, allocations: 0.5106 MB / 384.3 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001776/0.4085, allocations: 0.7414 MB / 385.1 MB, free: 11.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007763/0.4163, allocations: 3.26 MB / 388.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.948e-06/0.4164, allocations: 1.188 kB / 388.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.4164, allocations: 0 / 388.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.741e-05/0.4164, allocations: 0 / 388.3 MB, free: 11.16 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.007916/0.4244, allocations: 2.046 MB / 390.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.844e-05/0.4244, allocations: 8.844 kB / 390.4 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007324/0.4252, allocations: 163 kB / 390.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.4268, allocations: 0.9011 MB / 391.4 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.427, allocations: 234.6 kB / 391.7 MB, free: 9.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002061/0.4273, allocations: 100.3 kB / 391.8 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003177/0.4304, allocations: 1.793 MB / 393.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.255e-05/0.4305, allocations: 8.25 kB / 393.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000159/0.4307, allocations: 46.16 kB / 393.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.4308, allocations: 97.3 kB / 393.7 MB, free: 9.438 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003098/0.4339, allocations: 1.779 MB / 395.5 MB, free: 9.418 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.01211/0.4461, allocations: 6.922 MB / 402.4 MB, free: 7.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002584/0.4487, allocations: 1.486 MB / 403.9 MB, free: 7.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001367/0.4501, allocations: 0.8812 MB / 404.8 MB, free: 6.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007859/0.4509, allocations: 0.6437 MB / 405.4 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.4509, allocations: 48.31 kB / 405.5 MB, free: 6.16 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.4509, allocations: 4 kB / 405.5 MB, free: 6.156 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01613/0.4671, allocations: 6.619 MB / 412.1 MB, free: 3.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.4672, allocations: 170.1 kB / 412.2 MB, free: 3.543 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/0.4686, allocations: 1.097 MB / 413.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001624/0.4688, allocations: 47.73 kB / 413.4 MB, free: 2.887 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003612/0.4691, allocations: 0.5007 MB / 413.9 MB, free: 2.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000412/0.4696, allocations: 438.6 kB / 414.3 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005012/0.4701, allocations: 263.3 kB / 414.6 MB, free: 1.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.728e-05/0.4702, allocations: 365.4 kB / 414.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.4715, allocations: 0.8528 MB / 415.8 MB, free: 1.133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/0.4729, allocations: 1.074 MB / 416.9 MB, free: 444 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.4757, allocations: 1.815 MB / 418.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.4757, allocations: 0 / 418.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004864/0.4806, allocations: 2.611 MB / 421.3 MB, free: 12.08 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.4806, allocations: 8 kB / 421.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.4806, allocations: 4.312 kB / 421.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003726/0.4844, allocations: 1.308 MB / 422.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/0.4855, allocations: 215.9 kB / 422.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007108/0.4927, allocations: 6.344 MB / 429.2 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001968/0.4947, allocations: 87.84 kB / 429.2 MB, free: 3.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001722/0.4949, allocations: 59.97 kB / 429.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00204/0.4969, allocations: 1.101 MB / 430.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00161/0.4985, allocations: 1.067 MB / 431.5 MB, free: 1.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002826/0.5014, allocations: 1.77 MB / 433.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.827e-06/0.5014, allocations: 4 kB / 433.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004951/0.5064, allocations: 2.497 MB / 435.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.5064, allocations: 4 kB / 435.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.5064, allocations: 8 kB / 435.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.5091, allocations: 1.02 MB / 436.8 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.5103, allocations: 231.5 kB / 437 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006375/0.5167, allocations: 6.085 MB / 443.1 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002014/0.5187, allocations: 98.77 kB / 443.2 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001806/0.5189, allocations: 64.03 kB / 443.2 MB, free: 5.426 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.0006206/0.5195, allocations: 260.3 kB / 443.5 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003271/0.5199, allocations: 134.4 kB / 443.6 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005377/0.5253, allocations: 2.806 MB / 446.4 MB, free: 2.234 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.282e-05/0.5253, allocations: 12 kB / 446.4 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.5253, allocations: 11.94 kB / 446.5 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.5253, allocations: 7.969 kB / 446.5 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00798/0.5333, allocations: 4.532 MB / 451 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.5334, allocations: 3.938 kB / 451 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008535/0.5342, allocations: 163 kB / 451.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003443/0.5377, allocations: 1.299 MB / 452.5 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001939/0.5379, allocations: 39.97 kB / 452.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00699/0.5449, allocations: 6.378 MB / 458.9 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5449, allocations: 0 / 458.9 MB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00791/0.5529, allocations: 3.949 MB / 462.8 MB, free: 1.488 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/0.5542, allocations: 435.2 kB / 463.3 MB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003682/0.5546, allocations: 31.98 kB / 463.3 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.5559, allocations: 87.77 kB / 463.4 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003791/0.5563, allocations: 137.1 kB / 463.5 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/0.5565, allocations: 54.84 kB / 463.6 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001195/0.5577, allocations: 0.7535 MB / 464.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5577, allocations: 3.656 kB / 464.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00492/0.5626, allocations: 1.054 MB / 465.4 MB, free: 14.93 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.00258/0.5652, allocations: 0.7243 MB / 466.1 MB, free: 14.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008271/0.5735, allocations: 3.815 MB / 469.9 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.5735, allocations: 0 / 469.9 MB, free: 10.44 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00314/0.5767, allocations: 1.422 MB / 471.3 MB, free: 9.008 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003373/0.5801, allocations: 0.6019 MB / 471.9 MB, free: 8.406 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007547/0.5877, allocations: 3.583 MB / 475.5 MB, free: 4.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.5887, allocations: 1.268 MB / 476.8 MB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00225/0.591, allocations: 0.5751 MB / 477.4 MB, free: 2.938 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003627/0.5914, allocations: 122.9 kB / 477.5 MB, free: 2.82 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.5914, allocations: 0 / 477.5 MB, free: 2.82 MB / 382.1 MB Notification: Performance of Templates: time 0.07834/0.6697, allocations: 44.29 MB / 0.5095 GB, free: 6.613 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)