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.001099/0.001099, allocations: 114 kB / 17.7 MB, free: 5.309 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.001059/0.00106, allocations: 191 kB / 18.63 MB, free: 4.379 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.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 49.23 kB / 302.1 MB, free: 5.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1029, allocations: 49.44 MB / 351.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.1984/0.3014, allocations: 30.15 MB / 381.6 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.013/0.3145, allocations: 10.29 MB / 391.9 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001482/0.316, allocations: 33.06 kB / 392 MB, free: 4.848 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.3172, allocations: 477.7 kB / 392.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00476/0.322, allocations: 1.863 MB / 394.3 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007089/0.3291, allocations: 2.75 MB / 397 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00491/0.3341, allocations: 3.68 MB / 400.7 MB, free: 40 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001955/0.3361, allocations: 1.163 MB / 401.9 MB, free: 15.29 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003879/0.34, allocations: 1.506 MB / 403.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003097/0.3431, allocations: 1.414 MB / 404.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004123/0.3435, allocations: 154.9 kB / 405 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005003/0.3485, allocations: 2.084 MB / 407 MB, free: 12.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007426/0.3493, allocations: 0.5744 MB / 407.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001197/0.3505, allocations: 0.8126 MB / 408.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005725/0.3562, allocations: 3.343 MB / 411.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3563, allocations: 0 / 411.8 MB, free: 8.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.3563, allocations: 7.938 kB / 411.8 MB, free: 8.477 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.277e-05/0.3563, allocations: 0 / 411.8 MB, free: 8.477 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.005102/0.3614, allocations: 2.038 MB / 413.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.3615, allocations: 12.03 kB / 413.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005248/0.362, allocations: 166.2 kB / 414 MB, free: 6.211 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.3638, allocations: 0.9447 MB / 414.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.364, allocations: 238.4 kB / 415.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.3642, allocations: 95.98 kB / 415.3 MB, free: 4.863 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002951/0.3672, allocations: 1.787 MB / 417.1 MB, free: 3.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.3672, allocations: 4 kB / 417.1 MB, free: 3.016 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001416/0.3674, allocations: 51.84 kB / 417.1 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00014/0.3675, allocations: 102 kB / 417.2 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002817/0.3703, allocations: 1.776 MB / 419 MB, free: 1.078 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.0116/0.3819, allocations: 6.921 MB / 425.9 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00255/0.3845, allocations: 1.486 MB / 427.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001328/0.3859, allocations: 0.8822 MB / 428.3 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008421/0.3867, allocations: 0.6451 MB / 428.9 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.7e-05/0.3868, allocations: 47.56 kB / 429 MB, free: 6.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 5.03e-06/0.3868, allocations: 0 / 429 MB, free: 6.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01597/0.4028, allocations: 6.609 MB / 435.6 MB, free: 15.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.926e-05/0.4029, allocations: 175.5 kB / 435.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/0.4044, allocations: 1.099 MB / 436.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001587/0.4045, allocations: 53.7 kB / 436.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000383/0.4049, allocations: 0.4966 MB / 437.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003637/0.4053, allocations: 433.7 kB / 437.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004872/0.4058, allocations: 271.4 kB / 438.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4059, allocations: 361.9 kB / 438.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00137/0.4073, allocations: 0.8558 MB / 439.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.4088, allocations: 1.072 MB / 440.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00273/0.4116, allocations: 1.816 MB / 442.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4116, allocations: 4 kB / 442.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004557/0.4162, allocations: 2.612 MB / 444.8 MB, free: 6.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.4162, allocations: 11.94 kB / 444.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.4162, allocations: 7.984 kB / 444.8 MB, free: 6.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003547/0.4198, allocations: 1.3 MB / 446.1 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.4208, allocations: 215.6 kB / 446.3 MB, free: 4.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006377/0.4272, allocations: 6.712 MB / 453 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001394/0.4286, allocations: 67.95 kB / 453.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001693/0.4288, allocations: 59.97 kB / 453.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001765/0.4306, allocations: 1.105 MB / 454.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001496/0.4321, allocations: 1.062 MB / 455.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002602/0.4347, allocations: 1.775 MB / 457.1 MB, free: 9.605 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.581e-05/0.4347, allocations: 4 kB / 457.1 MB, free: 9.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004377/0.4391, allocations: 2.498 MB / 459.6 MB, free: 7.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.4392, allocations: 8 kB / 459.6 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.4392, allocations: 4 kB / 459.6 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002449/0.4416, allocations: 1.02 MB / 460.6 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.4427, allocations: 231.6 kB / 460.9 MB, free: 5.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00601/0.4487, allocations: 6.457 MB / 467.3 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.4501, allocations: 76 kB / 467.4 MB, free: 14.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002289/0.4503, allocations: 55.97 kB / 467.4 MB, free: 14.86 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.0004544/0.4508, allocations: 261.6 kB / 467.7 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003247/0.4511, allocations: 142.2 kB / 467.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004949/0.4561, allocations: 2.803 MB / 470.6 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/0.4561, allocations: 16 kB / 470.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.4561, allocations: 4.062 kB / 470.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/0.4562, allocations: 11.91 kB / 470.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007449/0.4636, allocations: 4.533 MB / 475.2 MB, free: 6.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.4637, allocations: 4 kB / 475.2 MB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008668/0.4645, allocations: 155.8 kB / 475.4 MB, free: 6.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0032/0.4677, allocations: 1.279 MB / 476.6 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001372/0.4679, allocations: 39.92 kB / 476.7 MB, free: 5.508 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006429/0.4743, allocations: 6.742 MB / 483.4 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.4744, allocations: 0 / 483.4 MB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006649/0.481, allocations: 3.958 MB / 487.4 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009962/0.482, allocations: 419.3 kB / 487.8 MB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003109/0.4823, allocations: 31.98 kB / 487.8 MB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.4835, allocations: 67.88 kB / 487.9 MB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/0.4838, allocations: 141.1 kB / 488 MB, free: 9.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001338/0.484, allocations: 55.91 kB / 488.1 MB, free: 9.691 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009504/0.4849, allocations: 0.7532 MB / 488.8 MB, free: 8.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4849, allocations: 0 / 488.8 MB, free: 8.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002706/0.4876, allocations: 1.058 MB / 489.9 MB, free: 7.871 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.001547/0.4892, allocations: 0.7235 MB / 490.6 MB, free: 7.145 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007316/0.4965, allocations: 3.833 MB / 494.5 MB, free: 3.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4966, allocations: 7.938 kB / 494.5 MB, free: 3.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002867/0.4994, allocations: 1.426 MB / 495.9 MB, free: 1.801 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002576/0.502, allocations: 0.6245 MB / 496.5 MB, free: 1.188 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005682/0.5077, allocations: 3.109 MB / 499.6 MB, free: 14.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/0.5085, allocations: 1.272 MB / 0.4892 GB, free: 12.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001668/0.5102, allocations: 0.572 MB / 0.4897 GB, free: 12.18 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003561/0.5106, allocations: 127.3 kB / 0.4898 GB, free: 12.06 MB / 414.1 MB Notification: Performance of SimCode: time 5.52e-07/0.5106, allocations: 0 / 0.4898 GB, free: 12.06 MB / 414.1 MB Notification: Performance of Templates: time 0.2561/0.7667, allocations: 46.47 MB / 0.5352 GB, free: 157.7 MB / 446.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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)