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.001134/0.001134, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008002/0.008002, allocations: 170 kB / 16.26 MB, free: 6.613 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.615/1.615, allocations: 205.4 MB / 222.4 MB, free: 5.562 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.000459/0.0004589, allocations: 16 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2715, allocations: 47.58 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03044/0.302, allocations: 30.75 MB / 357.8 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.3207, allocations: 10.64 MB / 368.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.323, allocations: 43.62 kB / 368.5 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.3248, allocations: 409.8 kB / 368.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006037/0.3309, allocations: 1.739 MB / 370.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00845/0.3393, allocations: 2.315 MB / 372.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007708/0.3471, allocations: 5.191 MB / 378.1 MB, free: 152 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002531/0.3496, allocations: 1.003 MB / 379.1 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003907/0.3536, allocations: 1.3 MB / 380.4 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.3565, allocations: 1.39 MB / 381.8 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006819/0.3572, allocations: 80 kB / 381.9 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006559/0.3637, allocations: 1.993 MB / 383.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001598/0.3654, allocations: 0.4985 MB / 384.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001774/0.3672, allocations: 0.752 MB / 385.1 MB, free: 9.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007743/0.3749, allocations: 3.218 MB / 388.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.862e-06/0.375, allocations: 0 / 388.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.137e-06/0.375, allocations: 0 / 388.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.844e-05/0.3751, allocations: 0 / 388.3 MB, free: 5.871 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.005264/0.3804, allocations: 1.784 MB / 390.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.3804, allocations: 8.031 kB / 390.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005299/0.381, allocations: 166.2 kB / 390.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.3824, allocations: 0.894 MB / 391.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000213/0.3826, allocations: 234.5 kB / 391.4 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002079/0.3828, allocations: 95.98 kB / 391.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003069/0.3859, allocations: 1.802 MB / 393.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/0.386, allocations: 0 / 393.3 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001548/0.3861, allocations: 47.97 kB / 393.4 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001472/0.3863, allocations: 106 kB / 393.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00293/0.3892, allocations: 1.776 MB / 395.2 MB, free: 14.77 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.01235/0.4016, allocations: 6.952 MB / 402.2 MB, free: 7.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002639/0.4043, allocations: 1.513 MB / 403.7 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001378/0.4057, allocations: 0.8822 MB / 404.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009158/0.4066, allocations: 0.6568 MB / 405.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.4066, allocations: 55.48 kB / 405.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.626e-06/0.4067, allocations: 0 / 405.3 MB, free: 4.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01737/0.424, allocations: 6.672 MB / 412 MB, free: 13.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.4242, allocations: 171.5 kB / 412.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001664/0.4259, allocations: 1.096 MB / 413.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001693/0.426, allocations: 53.7 kB / 413.3 MB, free: 12.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004424/0.4265, allocations: 0.5004 MB / 413.8 MB, free: 11.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004322/0.4269, allocations: 429.8 kB / 414.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001887/0.4271, allocations: 117.6 kB / 414.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.4273, allocations: 361.9 kB / 414.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001356/0.4287, allocations: 0.8393 MB / 415.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.4302, allocations: 1.08 MB / 416.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002742/0.433, allocations: 1.808 MB / 418.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.433, allocations: 0 / 418.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004803/0.4378, allocations: 2.615 MB / 421 MB, free: 4.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001772/0.438, allocations: 243.7 kB / 421.2 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.438, allocations: 8 kB / 421.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003622/0.4416, allocations: 1.296 MB / 422.5 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.4429, allocations: 215.6 kB / 422.8 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007454/0.4503, allocations: 6.365 MB / 429.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001801/0.4522, allocations: 99.89 kB / 429.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003397/0.4525, allocations: 55.97 kB / 429.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.123e-05/0.4526, allocations: 4 kB / 429.3 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004799/0.4574, allocations: 2.354 MB / 431.6 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.4574, allocations: 4 kB / 431.6 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002703/0.4601, allocations: 1.027 MB / 432.7 MB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.4612, allocations: 227.6 kB / 432.9 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006636/0.4679, allocations: 6.111 MB / 439 MB, free: 1.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001971/0.4699, allocations: 95.94 kB / 439.1 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003299/0.4703, allocations: 51.98 kB / 439.1 MB, free: 1.227 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.00133/0.4716, allocations: 460.7 kB / 439.6 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005288/0.4721, allocations: 138.2 kB / 439.7 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006149/0.4783, allocations: 2.803 MB / 442.5 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.767e-05/0.4784, allocations: 12 kB / 442.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.4784, allocations: 4 kB / 442.5 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.941e-05/0.4784, allocations: 11.91 kB / 442.6 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008859/0.4873, allocations: 4.526 MB / 447.1 MB, free: 9.176 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.4873, allocations: 4 kB / 447.1 MB, free: 9.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008163/0.4882, allocations: 159.8 kB / 447.2 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003687/0.4919, allocations: 1.295 MB / 448.5 MB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001717/0.4921, allocations: 43.91 kB / 448.6 MB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007809/0.4999, allocations: 6.388 MB / 455 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.5, allocations: 0 / 455 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2473/0.7472, allocations: 3.95 MB / 458.9 MB, free: 115.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009988/0.7483, allocations: 442.7 kB / 459.4 MB, free: 115.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002051/0.7485, allocations: 27.19 kB / 459.4 MB, free: 115.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.7496, allocations: 97.17 kB / 459.5 MB, free: 115 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003992/0.75, allocations: 140 kB / 459.6 MB, free: 115 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001639/0.7502, allocations: 52.34 kB / 459.7 MB, free: 115 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001139/0.7513, allocations: 0.7528 MB / 460.4 MB, free: 114.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7513, allocations: 0 / 460.4 MB, free: 114.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003486/0.7548, allocations: 1.061 MB / 461.5 MB, free: 114.6 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.00172/0.7566, allocations: 0.7206 MB / 462.2 MB, free: 114.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006756/0.7633, allocations: 3.8 MB / 466 MB, free: 112.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/0.7634, allocations: 0 / 466 MB, free: 112.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00276/0.7661, allocations: 1.424 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.0032/0.7694, allocations: 0.5869 MB / 468 MB, free: 112.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005888/0.7753, allocations: 3.723 MB / 471.7 MB, free: 109.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006277/0.7759, allocations: 1.27 MB / 473 MB, free: 108.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001868/0.7778, allocations: 0.569 MB / 473.6 MB, free: 108 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.7781, allocations: 119.4 kB / 473.7 MB, free: 107.8 MB / 382.1 MB Notification: Performance of SimCode: time 1.403e-06/0.7781, allocations: 0 / 473.7 MB, free: 107.8 MB / 382.1 MB Notification: Performance of Templates: time 0.057/0.8351, allocations: 43.87 MB / 0.5054 GB, free: 63.93 MB / 382.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)