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.001105/0.001105, allocations: 105.2 kB / 17.21 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001273/0.001273, allocations: 205.8 kB / 18.13 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.3 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 59.41 kB / 306.3 MB, free: 1.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09393, allocations: 50.54 MB / 356.8 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2006/0.2945, allocations: 31.65 MB / 388.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01495/0.3095, allocations: 10.85 MB / 399.3 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002121/0.3117, allocations: 48.72 kB / 399.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001915/0.3137, allocations: 410 kB / 399.7 MB, free: 11.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005807/0.3195, allocations: 1.753 MB / 401.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008579/0.3281, allocations: 2.301 MB / 403.8 MB, free: 9.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007764/0.3359, allocations: 5.218 MB / 409 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002288/0.3382, allocations: 1.03 MB / 410.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003305/0.3415, allocations: 1.325 MB / 411.4 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002638/0.3442, allocations: 1.418 MB / 412.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004287/0.3446, allocations: 84 kB / 412.9 MB, free: 4.109 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004879/0.3495, allocations: 2.02 MB / 414.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008381/0.3503, allocations: 0.5103 MB / 415.4 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001474/0.3518, allocations: 0.7464 MB / 416.2 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006035/0.3579, allocations: 3.277 MB / 419.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3579, allocations: 0 / 419.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3579, allocations: 0 / 419.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.715e-05/0.358, allocations: 0 / 419.4 MB, free: 13.54 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.006694/0.3647, allocations: 2.049 MB / 421.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3647, allocations: 12.03 kB / 421.5 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000826/0.3656, allocations: 166.2 kB / 421.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.3674, allocations: 0.8979 MB / 422.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/0.3676, allocations: 238.5 kB / 422.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.3678, allocations: 95.98 kB / 422.9 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00299/0.3708, allocations: 1.794 MB / 424.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.3708, allocations: 0 / 424.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001524/0.371, allocations: 47.91 kB / 424.7 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000129/0.3711, allocations: 109.9 kB / 424.8 MB, free: 7.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002909/0.374, allocations: 1.776 MB / 426.6 MB, free: 6.164 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.01149/0.3855, allocations: 6.925 MB / 433.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002679/0.3882, allocations: 1.482 MB / 435 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00136/0.3896, allocations: 0.8822 MB / 435.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008724/0.3905, allocations: 0.6451 MB / 436.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.3905, allocations: 51.5 kB / 436.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.116e-06/0.3906, allocations: 0 / 436.6 MB, free: 11.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01681/0.4074, allocations: 6.602 MB / 443.2 MB, free: 5.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/0.4075, allocations: 171.5 kB / 443.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001477/0.409, allocations: 1.099 MB / 444.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/0.4091, allocations: 57.64 kB / 444.5 MB, free: 3.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004535/0.4096, allocations: 0.5004 MB / 445 MB, free: 3.113 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004249/0.41, allocations: 429.8 kB / 445.4 MB, free: 2.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005176/0.4105, allocations: 271.5 kB / 445.7 MB, free: 2.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.4107, allocations: 365.9 kB / 446.1 MB, free: 2.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.4121, allocations: 0.848 MB / 446.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001601/0.4137, allocations: 1.076 MB / 448 MB, free: 52 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00288/0.4166, allocations: 1.808 MB / 449.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4166, allocations: 0 / 449.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004966/0.4216, allocations: 2.615 MB / 452.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.4216, allocations: 12.31 kB / 452.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.4216, allocations: 8 kB / 452.4 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00373/0.4254, allocations: 1.303 MB / 453.7 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.4265, allocations: 215.6 kB / 453.9 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006887/0.4334, allocations: 6.337 MB / 460.3 MB, free: 3.309 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.4349, allocations: 91.91 kB / 460.4 MB, free: 3.219 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002204/0.4351, allocations: 59.97 kB / 460.4 MB, free: 3.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002143/0.4372, allocations: 1.106 MB / 461.5 MB, free: 2.051 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001672/0.4389, allocations: 1.058 MB / 462.6 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002748/0.4417, allocations: 1.778 MB / 464.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.04e-06/0.4417, allocations: 320 / 464.4 MB, free: 15.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004666/0.4464, allocations: 2.502 MB / 466.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.4464, allocations: 11.94 kB / 466.9 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.4464, allocations: 7.984 kB / 466.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002618/0.4491, allocations: 1.016 MB / 467.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.4501, allocations: 227.6 kB / 468.1 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006565/0.4567, allocations: 6.098 MB / 474.2 MB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/0.4582, allocations: 87.89 kB / 474.3 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002584/0.4585, allocations: 67.91 kB / 474.4 MB, free: 4.668 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.0006385/0.4591, allocations: 256.5 kB / 474.6 MB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00052/0.4597, allocations: 138.3 kB / 474.8 MB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006732/0.4664, allocations: 2.807 MB / 477.6 MB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-05/0.4665, allocations: 20 kB / 477.6 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.4665, allocations: 0 / 477.6 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.07e-05/0.4665, allocations: 11.91 kB / 477.6 MB, free: 1.414 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008467/0.475, allocations: 4.534 MB / 482.1 MB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/0.4751, allocations: 0 / 482.1 MB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009292/0.476, allocations: 151.8 kB / 482.3 MB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003522/0.4795, allocations: 1.314 MB / 483.6 MB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001551/0.4797, allocations: 39.91 kB / 483.6 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0077/0.4874, allocations: 6.375 MB / 490 MB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.4875, allocations: 0 / 490 MB, free: 4.574 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008067/0.4955, allocations: 3.952 MB / 494 MB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.4967, allocations: 431.2 kB / 494.4 MB, free: 148 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004162/0.4972, allocations: 24.19 kB / 494.4 MB, free: 124 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001349/0.4985, allocations: 87.78 kB / 494.5 MB, free: 36 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004097/0.499, allocations: 145.1 kB / 494.6 MB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.4991, allocations: 55.97 kB / 494.7 MB, free: 15.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001254/0.5004, allocations: 0.7493 MB / 495.4 MB, free: 15.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5004, allocations: 4 kB / 495.4 MB, free: 15.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00337/0.5038, allocations: 1.054 MB / 496.5 MB, free: 14.02 MB / 414.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.002252/0.506, allocations: 0.7352 MB / 497.2 MB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008377/0.5144, allocations: 3.806 MB / 0.4893 GB, free: 9.43 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.5145, allocations: 7.859 kB / 0.4893 GB, free: 9.422 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003247/0.5177, allocations: 1.422 MB / 0.4907 GB, free: 7.977 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003156/0.5209, allocations: 0.596 MB / 0.4913 GB, free: 7.391 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007126/0.528, allocations: 3.592 MB / 0.4948 GB, free: 3.777 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.5291, allocations: 1.264 MB / 0.496 GB, free: 2.484 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002065/0.5312, allocations: 0.5764 MB / 0.4966 GB, free: 1.906 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004056/0.5316, allocations: 115.4 kB / 0.4967 GB, free: 1.793 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5316, allocations: 0 / 0.4967 GB, free: 1.793 MB / 414.1 MB Notification: Performance of Templates: time 0.223/0.7547, allocations: 44.3 MB / 0.5399 GB, free: 150 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)