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.0008498/0.0008498, allocations: 98.16 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009446/0.0009447, allocations: 206.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.2 MB / 245.9 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002477/0.0002478, allocations: 4 kB / 306.6 MB, free: 1.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1037, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2487/0.3524, allocations: 21.25 MB / 379.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0151/0.3676, allocations: 9.969 MB / 389.3 MB, free: 4.578 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001917/0.3695, allocations: 42.72 kB / 389.3 MB, free: 4.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001621/0.3712, allocations: 417 kB / 389.7 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00685/0.378, allocations: 1.503 MB / 391.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008425/0.3865, allocations: 2.127 MB / 393.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004798/0.3913, allocations: 2.086 MB / 395.5 MB, free: 1.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001973/0.3933, allocations: 0.9605 MB / 396.4 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002992/0.3963, allocations: 1.142 MB / 397.6 MB, free: 228 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00224/0.3986, allocations: 0.9605 MB / 398.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003228/0.3989, allocations: 79.06 kB / 398.6 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005414/0.4044, allocations: 1.804 MB / 400.4 MB, free: 14.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.4054, allocations: 467.3 kB / 400.9 MB, free: 14.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007954/0.4062, allocations: 285.3 kB / 401.1 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004956/0.4112, allocations: 2.29 MB / 403.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.4112, allocations: 1 kB / 403.4 MB, free: 12.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4112, allocations: 4 kB / 403.4 MB, free: 12.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.82e-05/0.4113, allocations: 0 / 403.4 MB, free: 12.95 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.00514/0.4164, allocations: 1.776 MB / 405.2 MB, free: 11.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.4165, allocations: 8.219 kB / 405.2 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007092/0.4172, allocations: 166.2 kB / 405.4 MB, free: 11.6 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.4189, allocations: 0.8693 MB / 406.2 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001851/0.4191, allocations: 235 kB / 406.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001798/0.4193, allocations: 97.7 kB / 406.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002751/0.4221, allocations: 1.781 MB / 408.3 MB, free: 9.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.701e-05/0.4221, allocations: 5.141 kB / 408.4 MB, free: 9.602 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001509/0.4223, allocations: 50.34 kB / 408.4 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001494/0.4224, allocations: 102.9 kB / 408.5 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002937/0.4254, allocations: 1.769 MB / 410.3 MB, free: 7.965 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.01213/0.4375, allocations: 6.953 MB / 417.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002535/0.4401, allocations: 1.513 MB / 418.7 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008847/0.441, allocations: 0.6568 MB / 419.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/0.441, allocations: 43.56 kB / 419.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.076e-06/0.441, allocations: 0 / 419.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01634/0.4574, allocations: 6.656 MB / 426.1 MB, free: 7.578 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.526e-05/0.4575, allocations: 171.5 kB / 426.3 MB, free: 7.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.459, allocations: 1.088 MB / 427.3 MB, free: 6.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001579/0.4592, allocations: 49.7 kB / 427.4 MB, free: 6.215 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004097/0.4596, allocations: 0.5004 MB / 427.9 MB, free: 5.707 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003898/0.46, allocations: 429.9 kB / 428.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.785e-05/0.4601, allocations: 28 kB / 428.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.4602, allocations: 365.9 kB / 428.7 MB, free: 4.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.4616, allocations: 0.8276 MB / 429.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.4631, allocations: 1.061 MB / 430.6 MB, free: 2.926 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001405/0.4645, allocations: 0.8848 MB / 431.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.798e-06/0.4645, allocations: 0 / 431.5 MB, free: 2.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004493/0.469, allocations: 2.588 MB / 434.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000651/0.4697, allocations: 1.851 MB / 435.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.4697, allocations: 4 kB / 435.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003456/0.4732, allocations: 1.282 MB / 437.2 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.4742, allocations: 215.6 kB / 437.4 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006571/0.4808, allocations: 6.387 MB / 443.8 MB, free: 5.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001553/0.4824, allocations: 91.91 kB / 443.9 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.4826, allocations: 63.91 kB / 443.9 MB, free: 5.035 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.427e-06/0.4826, allocations: 4 kB / 444 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004232/0.4868, allocations: 2.35 MB / 446.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.179e-05/0.4868, allocations: 7.938 kB / 446.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002465/0.4893, allocations: 1.019 MB / 447.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009909/0.4903, allocations: 227.6 kB / 447.6 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006105/0.4964, allocations: 6.143 MB / 453.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001634/0.4981, allocations: 91.91 kB / 453.8 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001795/0.4983, allocations: 55.97 kB / 453.8 MB, free: 10.77 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 (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],$PRE.hysteresis.y,hysteresis.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.0008835/0.4992, allocations: 454 kB / 454.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/0.4995, allocations: 142.4 kB / 454.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00507/0.5045, allocations: 2.806 MB / 457.2 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.981e-05/0.5046, allocations: 12 kB / 457.2 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.5046, allocations: 7.938 kB / 457.2 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.619e-05/0.5046, allocations: 7.969 kB / 457.3 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007622/0.5122, allocations: 4.534 MB / 461.8 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.643e-06/0.5123, allocations: 0 / 461.8 MB, free: 2.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000807/0.5131, allocations: 155.8 kB / 461.9 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003316/0.5164, allocations: 1.298 MB / 463.2 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001336/0.5166, allocations: 35.97 kB / 463.3 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006395/0.523, allocations: 6.428 MB / 469.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.523, allocations: 4.031 kB / 469.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006335/0.5293, allocations: 3.94 MB / 473.6 MB, free: 6.465 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001002/0.5304, allocations: 447.1 kB / 474.1 MB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002177/0.5306, allocations: 31.95 kB / 474.1 MB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.5316, allocations: 91.83 kB / 474.2 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/0.5319, allocations: 145.1 kB / 474.3 MB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.5321, allocations: 51.97 kB / 474.4 MB, free: 5.691 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009365/0.533, allocations: 0.7415 MB / 475.1 MB, free: 4.941 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.533, allocations: 0 / 475.1 MB, free: 4.941 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002754/0.5358, allocations: 1.058 MB / 476.2 MB, free: 3.883 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001724/0.5375, allocations: 0.7258 MB / 476.9 MB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008067/0.5456, allocations: 3.783 MB / 480.7 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/0.5456, allocations: 4.125 kB / 480.7 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003271/0.5489, allocations: 1.426 MB / 482.1 MB, free: 13.87 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002894/0.5518, allocations: 0.5757 MB / 482.7 MB, free: 13.3 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006288/0.5581, allocations: 3.559 MB / 486.3 MB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.5592, allocations: 1.295 MB / 487.6 MB, free: 8.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002062/0.5613, allocations: 0.5728 MB / 488.1 MB, free: 7.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003788/0.5616, allocations: 119.4 kB / 488.3 MB, free: 7.703 MB / 398.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5616, allocations: 0 / 488.3 MB, free: 7.703 MB / 398.1 MB Notification: Performance of Templates: time 0.06185/0.6235, allocations: 42.8 MB / 0.5186 GB, free: 13.17 MB / 446.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)