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.001046/0.001046, allocations: 118.9 kB / 18.41 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 208.5 kB / 19.36 MB, free: 3.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 247.5 MB, free: 10.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 57.41 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1119, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2069/0.3189, allocations: 30.3 MB / 389.2 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01494/0.3339, allocations: 10.31 MB / 399.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001518/0.3354, allocations: 36.66 kB / 399.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001419/0.3369, allocations: 473.6 kB / 400 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005064/0.342, allocations: 1.88 MB / 401.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007402/0.3494, allocations: 2.738 MB / 404.6 MB, free: 9.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005592/0.355, allocations: 3.693 MB / 408.3 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00215/0.3572, allocations: 1.159 MB / 409.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003503/0.3607, allocations: 1.513 MB / 411 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002625/0.3634, allocations: 1.42 MB / 412.4 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003168/0.3637, allocations: 154.7 kB / 412.6 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004743/0.3685, allocations: 2.108 MB / 414.7 MB, free: 3.387 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008808/0.3694, allocations: 0.5805 MB / 415.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001675/0.3711, allocations: 0.7973 MB / 416 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007914/0.379, allocations: 3.358 MB / 419.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.379, allocations: 0 / 419.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.379, allocations: 3.938 kB / 419.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.244e-05/0.3791, allocations: 4 kB / 419.4 MB, free: 14.63 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.005733/0.3848, allocations: 2.038 MB / 421.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3849, allocations: 8.031 kB / 421.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005946/0.3855, allocations: 162.2 kB / 421.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.3873, allocations: 0.9485 MB / 422.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.3875, allocations: 238.5 kB / 422.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/0.3877, allocations: 95.98 kB / 422.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/0.3908, allocations: 1.802 MB / 424.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.3908, allocations: 0 / 424.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001417/0.3909, allocations: 47.92 kB / 424.7 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/0.3911, allocations: 102 kB / 424.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003109/0.3942, allocations: 1.776 MB / 426.6 MB, free: 7.223 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.01225/0.4065, allocations: 6.921 MB / 433.5 MB, free: 0 / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002717/0.4092, allocations: 1.494 MB / 435 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001345/0.4106, allocations: 0.8783 MB / 435.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008619/0.4115, allocations: 0.6451 MB / 436.6 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/0.4116, allocations: 51.56 kB / 436.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 2.855e-06/0.4116, allocations: 0 / 436.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01633/0.4279, allocations: 6.61 MB / 443.2 MB, free: 6.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.428, allocations: 167.5 kB / 443.4 MB, free: 5.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.4295, allocations: 1.103 MB / 444.5 MB, free: 4.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001314/0.4296, allocations: 45.7 kB / 444.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003849/0.43, allocations: 0.5004 MB / 445 MB, free: 4.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003665/0.4304, allocations: 437.8 kB / 445.5 MB, free: 3.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004715/0.4308, allocations: 267.4 kB / 445.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.431, allocations: 361.9 kB / 446.1 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001366/0.4324, allocations: 0.848 MB / 446.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.4339, allocations: 1.076 MB / 448 MB, free: 1.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002777/0.4367, allocations: 1.816 MB / 449.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.4367, allocations: 0 / 449.8 MB, free: 15.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004626/0.4413, allocations: 2.608 MB / 452.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.4414, allocations: 16.03 kB / 452.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.627e-05/0.4414, allocations: 7.984 kB / 452.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003687/0.4451, allocations: 1.307 MB / 453.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.4462, allocations: 211.7 kB / 454 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006621/0.4529, allocations: 6.717 MB / 460.7 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.4542, allocations: 68.02 kB / 460.7 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001495/0.4543, allocations: 60.28 kB / 460.8 MB, free: 3.844 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001783/0.4561, allocations: 1.102 MB / 461.9 MB, free: 2.738 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001527/0.4576, allocations: 1.068 MB / 463 MB, free: 1.594 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002736/0.4604, allocations: 1.767 MB / 464.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.123e-06/0.4604, allocations: 7.984 kB / 464.7 MB, free: 15.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004407/0.4648, allocations: 2.495 MB / 467.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.4649, allocations: 8 kB / 467.2 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.756e-06/0.4649, allocations: 4 kB / 467.2 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002466/0.4673, allocations: 1.027 MB / 468.3 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.4684, allocations: 235.6 kB / 468.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006145/0.4745, allocations: 6.455 MB / 475 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/0.4758, allocations: 71.94 kB / 475 MB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001453/0.476, allocations: 59.91 kB / 475.1 MB, free: 5.004 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.0004311/0.4764, allocations: 272.8 kB / 475.4 MB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002791/0.4767, allocations: 134.3 kB / 475.5 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005052/0.4818, allocations: 2.799 MB / 478.3 MB, free: 1.777 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.939e-05/0.4818, allocations: 16 kB / 478.3 MB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.4818, allocations: 4 kB / 478.3 MB, free: 1.758 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/0.4819, allocations: 11.91 kB / 478.3 MB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007399/0.4893, allocations: 4.526 MB / 482.8 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.133e-06/0.4893, allocations: 0 / 482.8 MB, free: 13.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008231/0.4901, allocations: 155.8 kB / 483 MB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003143/0.4933, allocations: 1.279 MB / 484.3 MB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000135/0.4934, allocations: 39.91 kB / 484.3 MB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006708/0.5001, allocations: 6.754 MB / 491.1 MB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5002, allocations: 0 / 491.1 MB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00697/0.5071, allocations: 3.946 MB / 495 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001016/0.5082, allocations: 431.2 kB / 495.4 MB, free: 132 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003287/0.5085, allocations: 27.98 kB / 495.5 MB, free: 104 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.5097, allocations: 75.83 kB / 495.5 MB, free: 28 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003634/0.5101, allocations: 145.2 kB / 495.7 MB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/0.5102, allocations: 47.97 kB / 495.7 MB, free: 15.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.5114, allocations: 0.7532 MB / 496.5 MB, free: 15.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5114, allocations: 0 / 496.5 MB, free: 15.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003053/0.5145, allocations: 1.05 MB / 497.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.001997/0.5165, allocations: 0.7335 MB / 498.3 MB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007781/0.5243, allocations: 3.829 MB / 0.4903 GB, free: 9.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/0.5243, allocations: 4 kB / 0.4903 GB, free: 9.406 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003093/0.5274, allocations: 1.438 MB / 0.4917 GB, free: 7.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002892/0.5303, allocations: 0.6317 MB / 0.4923 GB, free: 7.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006288/0.5366, allocations: 3.097 MB / 0.4954 GB, free: 4.207 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000943/0.5376, allocations: 1.264 MB / 0.4966 GB, free: 2.914 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001842/0.5394, allocations: 0.5765 MB / 0.4972 GB, free: 2.336 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003879/0.5398, allocations: 127.4 kB / 0.4973 GB, free: 2.211 MB / 414.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5398, allocations: 0 / 0.4973 GB, free: 2.211 MB / 414.1 MB Notification: Performance of Templates: time 0.2101/0.75, allocations: 46.49 MB / 0.5427 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 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)