Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|lowerTank.level|lowerTank.medium.h|upperTank.level|upperTank.medium.h|hysteresis.y",fileNamePrefix="Modelica_4.0.0_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.001505/0.001505, allocations: 104.9 kB / 17.06 MB, free: 6.027 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.001639/0.001639, allocations: 195 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009635/0.0009635, allocations: 47.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2887, allocations: 49.42 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02895/0.3177, allocations: 30.17 MB / 430.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01357/0.3313, allocations: 10.28 MB / 441.2 MB, free: 292 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00117/0.3325, allocations: 31.81 kB / 441.2 MB, free: 260 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001218/0.3338, allocations: 477 kB / 441.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004357/0.3382, allocations: 1.866 MB / 443.5 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007201/0.3454, allocations: 2.745 MB / 446.3 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004677/0.3501, allocations: 3.681 MB / 449.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00174/0.3518, allocations: 1.165 MB / 451.1 MB, free: 6.309 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002577/0.3544, allocations: 1.526 MB / 452.6 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00191/0.3563, allocations: 1.413 MB / 454 MB, free: 3.359 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002317/0.3566, allocations: 152 kB / 454.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004021/0.3606, allocations: 2.083 MB / 456.3 MB, free: 1.125 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005366/0.3612, allocations: 0.5728 MB / 456.9 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008875/0.3621, allocations: 0.809 MB / 457.7 MB, free: 15.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004918/0.367, allocations: 3.35 MB / 461 MB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.367, allocations: 0 / 461 MB, free: 12.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.367, allocations: 0 / 461 MB, free: 12.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.404e-05/0.3671, allocations: 4 kB / 461 MB, free: 12.38 MB / 382.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.005139/0.3722, allocations: 2.037 MB / 463.1 MB, free: 10.29 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3723, allocations: 12.03 kB / 463.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005062/0.3728, allocations: 170.1 kB / 463.2 MB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001658/0.3744, allocations: 0.9486 MB / 464.2 MB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000173/0.3746, allocations: 234.4 kB / 464.4 MB, free: 8.855 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001859/0.3748, allocations: 99.97 kB / 464.5 MB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002819/0.3776, allocations: 1.787 MB / 466.3 MB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.222e-05/0.3777, allocations: 4 kB / 466.3 MB, free: 6.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001472/0.3778, allocations: 43.92 kB / 466.3 MB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/0.378, allocations: 105.9 kB / 466.4 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002882/0.3809, allocations: 1.776 MB / 468.2 MB, free: 4.977 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.01264/0.3935, allocations: 6.917 MB / 475.1 MB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002575/0.3961, allocations: 1.498 MB / 476.6 MB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.3974, allocations: 0.8797 MB / 477.5 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008224/0.3983, allocations: 0.6451 MB / 478.2 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.647e-05/0.3983, allocations: 51.5 kB / 478.2 MB, free: 10.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.086e-06/0.3983, allocations: 0 / 478.2 MB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.01633/0.4146, allocations: 6.621 MB / 484.8 MB, free: 3.805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.4148, allocations: 175.5 kB / 485 MB, free: 3.598 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001949/0.4168, allocations: 1.107 MB / 486.1 MB, free: 2.473 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.4169, allocations: 53.64 kB / 486.2 MB, free: 2.414 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000408/0.4173, allocations: 0.4966 MB / 486.7 MB, free: 1.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003815/0.4177, allocations: 429.8 kB / 487.1 MB, free: 1.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004805/0.4182, allocations: 263.5 kB / 487.3 MB, free: 1.219 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001298/0.4184, allocations: 357.9 kB / 487.7 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00131/0.4197, allocations: 0.848 MB / 488.5 MB, free: 12 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001549/0.4212, allocations: 1.08 MB / 489.6 MB, free: 14.85 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002706/0.424, allocations: 1.804 MB / 491.4 MB, free: 12.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.424, allocations: 0 / 491.4 MB, free: 12.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004861/0.4288, allocations: 2.635 MB / 494 MB, free: 10.32 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.898e-05/0.4289, allocations: 8 kB / 494.1 MB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.586e-05/0.4289, allocations: 4 kB / 494.1 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003921/0.4328, allocations: 1.3 MB / 495.4 MB, free: 8.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009995/0.4339, allocations: 219.6 kB / 495.6 MB, free: 8.781 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007172/0.441, allocations: 6.722 MB / 0.4905 GB, free: 1.711 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.4424, allocations: 63.95 kB / 0.4906 GB, free: 1.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002352/0.4426, allocations: 60.28 kB / 0.4906 GB, free: 1.59 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002016/0.4447, allocations: 1.101 MB / 0.4917 GB, free: 496 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001795/0.4465, allocations: 1.066 MB / 0.4928 GB, free: 15.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002974/0.4495, allocations: 1.763 MB / 0.4945 GB, free: 13.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.268e-06/0.4495, allocations: 7.984 kB / 0.4945 GB, free: 13.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004787/0.4543, allocations: 2.498 MB / 0.4969 GB, free: 10.97 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.4543, allocations: 11.94 kB / 0.4969 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.4543, allocations: 4 kB / 0.4969 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002755/0.4571, allocations: 1.019 MB / 0.4979 GB, free: 9.922 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00102/0.4581, allocations: 231.6 kB / 0.4982 GB, free: 9.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006671/0.4648, allocations: 6.458 MB / 0.5045 GB, free: 2.879 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001311/0.4662, allocations: 76 kB / 0.5045 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/0.4664, allocations: 63.91 kB / 0.5046 GB, free: 2.742 MB / 430.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.0004934/0.4669, allocations: 257.4 kB / 0.5048 GB, free: 2.484 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003965/0.4673, allocations: 134.3 kB / 0.505 GB, free: 2.352 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00543/0.4727, allocations: 2.799 MB / 0.5077 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.4728, allocations: 16 kB / 0.5077 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4728, allocations: 0 / 0.5077 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-05/0.4728, allocations: 11.91 kB / 0.5077 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007861/0.4807, allocations: 4.522 MB / 0.5121 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.4807, allocations: 4.062 kB / 0.5122 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008191/0.4815, allocations: 159.8 kB / 0.5123 GB, free: 10.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003277/0.4848, allocations: 1.283 MB / 0.5136 GB, free: 9.445 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001439/0.485, allocations: 43.91 kB / 0.5136 GB, free: 9.402 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006853/0.4918, allocations: 6.744 MB / 0.5202 GB, free: 2.305 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.4919, allocations: 192 / 0.5202 GB, free: 2.305 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006852/0.4987, allocations: 3.954 MB / 0.524 GB, free: 14.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/0.4998, allocations: 439.1 kB / 0.5245 GB, free: 13.87 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003438/0.5002, allocations: 32 kB / 0.5245 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.5013, allocations: 63.89 kB / 0.5246 GB, free: 13.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003643/0.5017, allocations: 141.1 kB / 0.5247 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/0.5018, allocations: 47.97 kB / 0.5247 GB, free: 13.59 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001216/0.5031, allocations: 0.7571 MB / 0.5255 GB, free: 12.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5031, allocations: 0 / 0.5255 GB, free: 12.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003578/0.5067, allocations: 1.05 MB / 0.5265 GB, free: 11.77 MB / 462.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.002289/0.509, allocations: 0.7421 MB / 0.5272 GB, free: 11.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008245/0.5172, allocations: 3.826 MB / 0.531 GB, free: 7.148 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.127e-05/0.5173, allocations: 4 kB / 0.531 GB, free: 7.145 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003192/0.5205, allocations: 1.434 MB / 0.5324 GB, free: 5.688 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00338/0.5239, allocations: 0.6228 MB / 0.533 GB, free: 5.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006904/0.5308, allocations: 3.089 MB / 0.536 GB, free: 1.961 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001105/0.5319, allocations: 1.268 MB / 0.5372 GB, free: 0.668 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001972/0.5339, allocations: 0.5806 MB / 0.5378 GB, free: 88 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.209/0.743, allocations: 122.2 kB / 0.5379 GB, free: 135.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.563e-06/0.743, allocations: 4.406 kB / 0.5379 GB, free: 135.2 MB / 462.1 MB Notification: Performance of Templates: time 0.06304/0.806, allocations: 47.9 MB / 0.5847 GB, free: 97.29 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)