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.001082/0.001082, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001139/0.001139, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 246.9 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2937, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03425/0.328, allocations: 30.3 MB / 439.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01543/0.3435, allocations: 10.29 MB / 449.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.3449, allocations: 35.75 kB / 449.9 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001642/0.3466, allocations: 477 kB / 450.3 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005439/0.3521, allocations: 1.901 MB / 452.2 MB, free: 6.441 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007433/0.3595, allocations: 2.754 MB / 455 MB, free: 3.699 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005043/0.3646, allocations: 3.697 MB / 458.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002186/0.3668, allocations: 1.15 MB / 459.8 MB, free: 14.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003381/0.3702, allocations: 1.546 MB / 461.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002831/0.373, allocations: 1.413 MB / 462.8 MB, free: 11.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005994/0.3736, allocations: 156 kB / 462.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004674/0.3783, allocations: 2.11 MB / 465.1 MB, free: 9.59 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009995/0.3793, allocations: 0.5728 MB / 465.6 MB, free: 9.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001925/0.3813, allocations: 0.8089 MB / 466.4 MB, free: 8.203 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008831/0.3901, allocations: 3.358 MB / 469.8 MB, free: 4.836 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3902, allocations: 3.984 kB / 469.8 MB, free: 4.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3902, allocations: 0 / 469.8 MB, free: 4.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.072e-05/0.3903, allocations: 0 / 469.8 MB, free: 4.832 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.008092/0.3984, allocations: 2.034 MB / 471.8 MB, free: 2.742 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.426e-05/0.3984, allocations: 12.03 kB / 471.8 MB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.3996, allocations: 166.1 kB / 472 MB, free: 2.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/0.4021, allocations: 0.9485 MB / 473 MB, free: 1.574 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002409/0.4024, allocations: 238.5 kB / 473.2 MB, free: 1.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003691/0.4028, allocations: 99.92 kB / 473.3 MB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003753/0.4066, allocations: 1.79 MB / 475.1 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.664e-05/0.4066, allocations: 0 / 475.1 MB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.4068, allocations: 51.91 kB / 475.1 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002326/0.407, allocations: 102 kB / 475.2 MB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003247/0.4102, allocations: 1.776 MB / 477 MB, free: 13.43 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.01238/0.4226, allocations: 6.913 MB / 483.9 MB, free: 6.219 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002992/0.4257, allocations: 1.49 MB / 485.4 MB, free: 4.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001613/0.4273, allocations: 0.8816 MB / 486.3 MB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001135/0.4284, allocations: 0.6451 MB / 486.9 MB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.4285, allocations: 51.55 kB / 487 MB, free: 3.008 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.156e-06/0.4285, allocations: 0 / 487 MB, free: 3.008 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.01696/0.4455, allocations: 6.613 MB / 493.6 MB, free: 12.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.4456, allocations: 175.5 kB / 493.8 MB, free: 12.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.4473, allocations: 1.107 MB / 494.9 MB, free: 10.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.4475, allocations: 49.7 kB / 494.9 MB, free: 10.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004726/0.4479, allocations: 0.4927 MB / 495.4 MB, free: 10.39 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004076/0.4483, allocations: 437.8 kB / 495.8 MB, free: 9.953 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005634/0.4489, allocations: 263.4 kB / 496.1 MB, free: 9.688 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002545/0.4492, allocations: 361.9 kB / 496.5 MB, free: 9.328 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.4508, allocations: 0.848 MB / 497.3 MB, free: 8.477 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001914/0.4527, allocations: 1.076 MB / 498.4 MB, free: 7.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003069/0.4558, allocations: 1.808 MB / 0.4885 GB, free: 5.449 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.4558, allocations: 7.938 kB / 0.4885 GB, free: 5.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005122/0.461, allocations: 2.623 MB / 0.491 GB, free: 2.793 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.461, allocations: 8 kB / 0.491 GB, free: 2.785 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/0.461, allocations: 8 kB / 0.491 GB, free: 2.777 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003765/0.4648, allocations: 1.304 MB / 0.4923 GB, free: 1.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009474/0.4658, allocations: 223.6 kB / 0.4925 GB, free: 1.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007154/0.4729, allocations: 6.723 MB / 0.4991 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.4741, allocations: 59.95 kB / 0.4992 GB, free: 10.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/0.4743, allocations: 59.97 kB / 0.4992 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001869/0.4762, allocations: 1.105 MB / 0.5003 GB, free: 8.941 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001584/0.4778, allocations: 1.07 MB / 0.5013 GB, free: 7.789 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002742/0.4806, allocations: 1.767 MB / 0.5031 GB, free: 5.953 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.957e-06/0.4806, allocations: 4 kB / 0.5031 GB, free: 5.949 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004583/0.4852, allocations: 2.494 MB / 0.5055 GB, free: 3.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.4852, allocations: 8 kB / 0.5055 GB, free: 3.422 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.4852, allocations: 4 kB / 0.5055 GB, free: 3.418 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002527/0.4877, allocations: 1.023 MB / 0.5065 GB, free: 2.379 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.4888, allocations: 231.6 kB / 0.5067 GB, free: 2.152 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006341/0.4951, allocations: 6.463 MB / 0.513 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.4963, allocations: 72 kB / 0.5131 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/0.4965, allocations: 63.97 kB / 0.5132 GB, free: 11.2 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.0004634/0.497, allocations: 260.8 kB / 0.5134 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003488/0.4973, allocations: 138.3 kB / 0.5136 GB, free: 10.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005327/0.5027, allocations: 2.799 MB / 0.5163 GB, free: 7.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/0.5027, allocations: 20 kB / 0.5163 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.5027, allocations: 0 / 0.5163 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.5027, allocations: 11.91 kB / 0.5163 GB, free: 7.949 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007744/0.5105, allocations: 4.522 MB / 0.5207 GB, free: 3.355 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.5105, allocations: 0 / 0.5207 GB, free: 3.355 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008108/0.5113, allocations: 163.8 kB / 0.5209 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003276/0.5146, allocations: 1.287 MB / 0.5221 GB, free: 1.895 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001656/0.5148, allocations: 39.91 kB / 0.5222 GB, free: 1.855 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007083/0.5219, allocations: 6.745 MB / 0.5288 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.5219, allocations: 0 / 0.5288 GB, free: 10.76 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006573/0.5285, allocations: 3.946 MB / 0.5326 GB, free: 6.773 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008746/0.5294, allocations: 439.3 kB / 0.533 GB, free: 6.324 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002938/0.5297, allocations: 32 kB / 0.5331 GB, free: 6.293 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/0.5308, allocations: 67.83 kB / 0.5331 GB, free: 6.227 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003378/0.5312, allocations: 141.1 kB / 0.5333 GB, free: 6.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001424/0.5313, allocations: 51.97 kB / 0.5333 GB, free: 6.039 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.5324, allocations: 0.7493 MB / 0.5341 GB, free: 5.281 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5324, allocations: 4 kB / 0.5341 GB, free: 5.277 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002975/0.5354, allocations: 1.05 MB / 0.5351 GB, free: 4.227 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.001821/0.5373, allocations: 0.735 MB / 0.5358 GB, free: 3.484 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2152/0.7525, allocations: 3.826 MB / 0.5395 GB, free: 130.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.657e-06/0.7525, allocations: 1.344 kB / 0.5395 GB, free: 130.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003644/0.7562, allocations: 1.434 MB / 0.5409 GB, free: 130.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/0.7588, allocations: 0.6207 MB / 0.5415 GB, free: 130.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005472/0.7642, allocations: 3.109 MB / 0.5446 GB, free: 129.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/0.7649, allocations: 1.265 MB / 0.5458 GB, free: 128.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001511/0.7664, allocations: 0.5677 MB / 0.5464 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/0.7667, allocations: 124.3 kB / 0.5465 GB, free: 128.7 MB / 462.1 MB Notification: Performance of SimCode: time 3.81e-07/0.7667, allocations: 3.844 kB / 0.5465 GB, free: 128.7 MB / 462.1 MB Notification: Performance of Templates: time 0.05139/0.8181, allocations: 46.93 MB / 0.5923 GB, free: 86.51 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)