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.0008214/0.0008214, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001009/0.001009, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002328/0.0002329, allocations: 4 kB / 307.7 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09022, allocations: 51.53 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2037/0.294, allocations: 30.88 MB / 390.1 MB, free: 4.238 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01431/0.3083, allocations: 10.68 MB / 400.8 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001418/0.3098, allocations: 45.09 kB / 400.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.3109, allocations: 418.4 kB / 401.3 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004498/0.3154, allocations: 1.748 MB / 403 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007131/0.3226, allocations: 2.305 MB / 405.3 MB, free: 9.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006487/0.3291, allocations: 5.225 MB / 410.6 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/0.3305, allocations: 1.012 MB / 411.6 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002407/0.333, allocations: 1.305 MB / 412.9 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002047/0.335, allocations: 1.386 MB / 414.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001982/0.3352, allocations: 80 kB / 414.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004568/0.3398, allocations: 2.016 MB / 416.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004776/0.3403, allocations: 0.5063 MB / 416.9 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008739/0.3412, allocations: 0.7481 MB / 417.6 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004001/0.3452, allocations: 3.237 MB / 420.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3452, allocations: 4 kB / 420.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3452, allocations: 0 / 420.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.372e-05/0.3452, allocations: 0 / 420.8 MB, free: 14.2 MB / 334.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.004205/0.3495, allocations: 1.78 MB / 422.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.3495, allocations: 12.03 kB / 422.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004567/0.35, allocations: 162.2 kB / 422.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001304/0.3513, allocations: 0.894 MB / 423.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001856/0.3515, allocations: 238.5 kB / 423.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.3517, allocations: 99.98 kB / 424 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002689/0.3544, allocations: 1.79 MB / 425.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.603e-05/0.3544, allocations: 4 kB / 425.8 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001423/0.3546, allocations: 51.91 kB / 425.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001269/0.3547, allocations: 102 kB / 426 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002761/0.3575, allocations: 1.776 MB / 427.7 MB, free: 7.105 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.0106/0.3681, allocations: 6.972 MB / 434.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002529/0.3706, allocations: 1.49 MB / 436.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.3719, allocations: 0.8851 MB / 437.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008122/0.3727, allocations: 0.6607 MB / 437.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.3728, allocations: 51.55 kB / 437.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.555e-06/0.3728, allocations: 0 / 437.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01587/0.3887, allocations: 6.672 MB / 444.5 MB, free: 5.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.3888, allocations: 167.5 kB / 444.6 MB, free: 5.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001348/0.3901, allocations: 1.099 MB / 445.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.3903, allocations: 49.7 kB / 445.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003782/0.3906, allocations: 0.5043 MB / 446.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003512/0.391, allocations: 433.8 kB / 446.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/0.3912, allocations: 121.6 kB / 446.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3913, allocations: 361.9 kB / 447.2 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/0.3927, allocations: 0.8393 MB / 448 MB, free: 2.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001483/0.3942, allocations: 1.072 MB / 449.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002664/0.3969, allocations: 1.804 MB / 450.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.3969, allocations: 4 kB / 450.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004366/0.4013, allocations: 2.616 MB / 453.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.4014, allocations: 231.6 kB / 453.7 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.4014, allocations: 8 kB / 453.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003597/0.405, allocations: 1.306 MB / 455.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009335/0.406, allocations: 211.7 kB / 455.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006362/0.4124, allocations: 6.374 MB / 461.6 MB, free: 3.965 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/0.4137, allocations: 103.8 kB / 461.7 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.4139, allocations: 47.98 kB / 461.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.875e-06/0.4139, allocations: 4 kB / 461.8 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004022/0.4179, allocations: 2.35 MB / 464.1 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.4179, allocations: 8 kB / 464.1 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002453/0.4204, allocations: 1.027 MB / 465.2 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009503/0.4214, allocations: 223.7 kB / 465.4 MB, free: 180 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0058/0.4272, allocations: 6.103 MB / 471.5 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.4286, allocations: 99.83 kB / 471.6 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001316/0.4287, allocations: 51.98 kB / 471.6 MB, free: 9.578 MB / 382.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.0008101/0.4295, allocations: 466.3 kB / 472.1 MB, free: 9.113 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002476/0.4298, allocations: 134.4 kB / 472.2 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004921/0.4347, allocations: 2.807 MB / 475 MB, free: 6.152 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.4347, allocations: 19.98 kB / 475.1 MB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.4348, allocations: 4 kB / 475.1 MB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.47e-05/0.4348, allocations: 11.97 kB / 475.1 MB, free: 6.117 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007945/0.4427, allocations: 4.522 MB / 479.6 MB, free: 1.523 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.4427, allocations: 3.938 kB / 479.6 MB, free: 1.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008111/0.4436, allocations: 155.8 kB / 479.7 MB, free: 1.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003483/0.4471, allocations: 1.294 MB / 481 MB, free: 60 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/0.4472, allocations: 39.97 kB / 481.1 MB, free: 20 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007368/0.4546, allocations: 6.399 MB / 487.5 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.4546, allocations: 0 / 487.5 MB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006724/0.4613, allocations: 3.948 MB / 491.4 MB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009258/0.4623, allocations: 443 kB / 491.9 MB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/0.4625, allocations: 28 kB / 491.9 MB, free: 4.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.4636, allocations: 99.8 kB / 492 MB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000343/0.4639, allocations: 141.4 kB / 492.1 MB, free: 4.582 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.4641, allocations: 51.97 kB / 492.2 MB, free: 4.531 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001104/0.4652, allocations: 0.7493 MB / 492.9 MB, free: 3.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4652, allocations: 0 / 492.9 MB, free: 3.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00306/0.4682, allocations: 1.058 MB / 494 MB, free: 2.715 MB / 398.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.001946/0.4702, allocations: 0.7386 MB / 494.7 MB, free: 1.973 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007676/0.4779, allocations: 3.798 MB / 498.5 MB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.4779, allocations: 0 / 498.5 MB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003007/0.4809, allocations: 1.434 MB / 500 MB, free: 12.66 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003064/0.484, allocations: 0.591 MB / 0.4888 GB, free: 12.08 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006632/0.4906, allocations: 3.697 MB / 0.4924 GB, free: 8.355 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009145/0.4916, allocations: 1.272 MB / 0.4937 GB, free: 7.055 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001976/0.4936, allocations: 0.5761 MB / 0.4942 GB, free: 6.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003574/0.4939, allocations: 115.4 kB / 0.4943 GB, free: 6.363 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4939, allocations: 0 / 0.4943 GB, free: 6.363 MB / 414.1 MB Notification: Performance of Templates: time 0.2526/0.7466, allocations: 43.88 MB / 0.5372 GB, free: 149.2 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)