Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001046/0.001046, allocations: 118.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001065/0.001065, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001058/0.001058, allocations: 59.89 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2972, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02891/0.3261, allocations: 30.29 MB / 439.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01502/0.3412, allocations: 10.29 MB / 449.8 MB, free: 8.883 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.3425, allocations: 31.81 kB / 449.9 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.3441, allocations: 481 kB / 450.3 MB, free: 8.379 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005994/0.3501, allocations: 1.874 MB / 452.2 MB, free: 6.496 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006355/0.3565, allocations: 2.75 MB / 455 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004197/0.3607, allocations: 3.697 MB / 458.7 MB, free: 52 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00177/0.3625, allocations: 1.158 MB / 459.8 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002835/0.3653, allocations: 1.526 MB / 461.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002356/0.3677, allocations: 1.429 MB / 462.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000471/0.3682, allocations: 155.9 kB / 462.9 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00402/0.3722, allocations: 2.11 MB / 465 MB, free: 9.645 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007267/0.373, allocations: 0.5688 MB / 465.6 MB, free: 9.074 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.3742, allocations: 0.805 MB / 466.4 MB, free: 8.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004824/0.379, allocations: 3.358 MB / 469.8 MB, free: 4.898 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.379, allocations: 0 / 469.8 MB, free: 4.898 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3791, allocations: 4 kB / 469.8 MB, free: 4.895 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.406e-05/0.3791, allocations: 0 / 469.8 MB, free: 4.895 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.004457/0.3835, allocations: 2.037 MB / 471.8 MB, free: 2.801 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.3836, allocations: 8.031 kB / 471.8 MB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004896/0.3841, allocations: 170.2 kB / 472 MB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.3857, allocations: 0.9485 MB / 472.9 MB, free: 1.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.3859, allocations: 234.5 kB / 473.2 MB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001769/0.386, allocations: 95.98 kB / 473.2 MB, free: 1.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0027/0.3888, allocations: 1.798 MB / 475 MB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.732e-05/0.3888, allocations: 3.938 kB / 475 MB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001355/0.3889, allocations: 47.92 kB / 475.1 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001225/0.3891, allocations: 102 kB / 475.2 MB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002744/0.3918, allocations: 1.776 MB / 477 MB, free: 13.49 MB / 398.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.01154/0.4034, allocations: 6.905 MB / 483.9 MB, free: 6.285 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002662/0.4061, allocations: 1.49 MB / 485.4 MB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001333/0.4074, allocations: 0.8861 MB / 486.3 MB, free: 3.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008737/0.4083, allocations: 0.6451 MB / 486.9 MB, free: 3.125 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.787e-05/0.4083, allocations: 47.56 kB / 486.9 MB, free: 3.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.105e-06/0.4083, allocations: 0 / 486.9 MB, free: 3.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.01647/0.4248, allocations: 6.621 MB / 493.6 MB, free: 12.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.67e-05/0.4249, allocations: 175.5 kB / 493.7 MB, free: 12.12 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.4264, allocations: 1.099 MB / 494.8 MB, free: 11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.4265, allocations: 53.7 kB / 494.9 MB, free: 10.95 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004477/0.4269, allocations: 0.4927 MB / 495.4 MB, free: 10.45 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003755/0.4273, allocations: 429.8 kB / 495.8 MB, free: 10.02 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004856/0.4278, allocations: 271.5 kB / 496.1 MB, free: 9.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.428, allocations: 357.9 kB / 496.4 MB, free: 9.391 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00142/0.4294, allocations: 0.8519 MB / 497.3 MB, free: 8.535 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.431, allocations: 1.072 MB / 498.3 MB, free: 7.383 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002862/0.4339, allocations: 1.812 MB / 0.4884 GB, free: 5.508 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.4339, allocations: 0 / 0.4884 GB, free: 5.508 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004569/0.4385, allocations: 2.623 MB / 0.491 GB, free: 2.859 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.4385, allocations: 11.94 kB / 0.491 GB, free: 2.848 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.4385, allocations: 4 kB / 0.491 GB, free: 2.844 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003744/0.4423, allocations: 1.307 MB / 0.4923 GB, free: 1.523 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.4433, allocations: 215.7 kB / 0.4925 GB, free: 1.312 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00696/0.4503, allocations: 6.719 MB / 0.499 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001149/0.4515, allocations: 71.92 kB / 0.4991 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001565/0.4516, allocations: 60.16 kB / 0.4992 GB, free: 10.11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001818/0.4535, allocations: 1.101 MB / 0.5002 GB, free: 9.008 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001542/0.455, allocations: 1.066 MB / 0.5013 GB, free: 7.859 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002705/0.4577, allocations: 1.778 MB / 0.503 GB, free: 6.012 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.088e-06/0.4578, allocations: 0 / 0.503 GB, free: 6.012 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004404/0.4622, allocations: 2.49 MB / 0.5055 GB, free: 3.496 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.4622, allocations: 11.98 kB / 0.5055 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.4622, allocations: 8 kB / 0.5055 GB, free: 3.477 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002559/0.4648, allocations: 1.023 MB / 0.5065 GB, free: 2.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009688/0.4658, allocations: 227.7 kB / 0.5067 GB, free: 2.215 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006324/0.4721, allocations: 6.463 MB / 0.513 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.4734, allocations: 68.02 kB / 0.5131 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/0.4736, allocations: 59.97 kB / 0.5131 GB, free: 11.27 MB / 446.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.0004593/0.474, allocations: 272.7 kB / 0.5134 GB, free: 11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003625/0.4744, allocations: 138.3 kB / 0.5135 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00522/0.4796, allocations: 2.795 MB / 0.5162 GB, free: 8.039 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.093e-05/0.4797, allocations: 15.98 kB / 0.5163 GB, free: 8.023 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.138e-06/0.4797, allocations: 4 kB / 0.5163 GB, free: 8.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.516e-05/0.4797, allocations: 7.922 kB / 0.5163 GB, free: 8.012 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007671/0.4874, allocations: 4.522 MB / 0.5207 GB, free: 3.418 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.4874, allocations: 4 kB / 0.5207 GB, free: 3.414 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008135/0.4882, allocations: 155.7 kB / 0.5208 GB, free: 3.262 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003208/0.4915, allocations: 1.276 MB / 0.5221 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.4916, allocations: 43.91 kB / 0.5221 GB, free: 1.926 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006737/0.4984, allocations: 6.764 MB / 0.5287 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.4984, allocations: 0 / 0.5287 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006856/0.5052, allocations: 3.942 MB / 0.5326 GB, free: 6.832 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.5063, allocations: 427.1 kB / 0.533 GB, free: 6.395 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003317/0.5067, allocations: 31.94 kB / 0.533 GB, free: 6.363 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.5078, allocations: 67.88 kB / 0.5331 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003518/0.5081, allocations: 141.1 kB / 0.5332 GB, free: 6.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.5083, allocations: 56.16 kB / 0.5333 GB, free: 6.105 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001151/0.5095, allocations: 0.7493 MB / 0.534 GB, free: 5.348 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5095, allocations: 0 / 0.534 GB, free: 5.348 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003105/0.5126, allocations: 1.058 MB / 0.535 GB, free: 4.289 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.001974/0.5146, allocations: 0.7316 MB / 0.5358 GB, free: 3.551 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2217/0.7363, allocations: 3.832 MB / 0.5395 GB, free: 130.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.7363, allocations: 1.062 kB / 0.5395 GB, free: 130.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004402/0.7407, allocations: 1.432 MB / 0.5409 GB, free: 130.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003331/0.7441, allocations: 0.6281 MB / 0.5415 GB, free: 130.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005917/0.75, allocations: 3.109 MB / 0.5445 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006432/0.7507, allocations: 1.265 MB / 0.5458 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001644/0.7524, allocations: 0.5793 MB / 0.5463 GB, free: 129 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003217/0.7527, allocations: 113.3 kB / 0.5465 GB, free: 128.9 MB / 462.1 MB Notification: Performance of SimCode: time 8.82e-07/0.7527, allocations: 3.938 kB / 0.5465 GB, free: 128.9 MB / 462.1 MB Notification: Performance of Templates: time 0.0546/0.8073, allocations: 47.92 MB / 0.5933 GB, free: 85.9 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)