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.0008713/0.0008714, allocations: 98.97 kB / 17.36 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001022/0.001022, allocations: 203.7 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 227.7 MB / 246.8 MB, free: 11.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002634, allocations: 8 kB / 307.7 MB, free: 0.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1076, allocations: 51.52 MB / 359.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2312/0.3388, allocations: 30.87 MB / 390.1 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0191/0.358, allocations: 10.7 MB / 400.8 MB, free: 12.84 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002605/0.3606, allocations: 44.41 kB / 400.9 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001974/0.3626, allocations: 415.7 kB / 401.3 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007414/0.3701, allocations: 1.738 MB / 403 MB, free: 11.58 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01015/0.3802, allocations: 2.306 MB / 405.3 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007271/0.3875, allocations: 5.225 MB / 410.6 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002358/0.3899, allocations: 1.01 MB / 411.6 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003657/0.3936, allocations: 1.299 MB / 412.9 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003122/0.3967, allocations: 1.4 MB / 414.3 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006085/0.3974, allocations: 80 kB / 414.3 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005446/0.4028, allocations: 2.008 MB / 416.4 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001046/0.4039, allocations: 0.4986 MB / 416.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001933/0.4058, allocations: 0.7559 MB / 417.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007319/0.4132, allocations: 3.241 MB / 420.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.4132, allocations: 0 / 420.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4132, allocations: 3.938 kB / 420.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.231e-05/0.4133, allocations: 0 / 420.9 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.005613/0.4189, allocations: 1.776 MB / 422.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.419, allocations: 8.031 kB / 422.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008827/0.4199, allocations: 166.2 kB / 422.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001999/0.4219, allocations: 0.894 MB / 423.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002373/0.4221, allocations: 242.5 kB / 423.9 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003615/0.4225, allocations: 95.98 kB / 424 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00367/0.4262, allocations: 1.802 MB / 425.8 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.4263, allocations: 7.984 kB / 425.8 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000198/0.4265, allocations: 39.92 kB / 425.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001477/0.4266, allocations: 102 kB / 426 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00341/0.43, 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.01307/0.4431, allocations: 6.96 MB / 434.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002889/0.446, allocations: 1.498 MB / 436.2 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001461/0.4475, allocations: 0.886 MB / 437.1 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009592/0.4485, allocations: 0.6607 MB / 437.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.378e-05/0.4486, allocations: 47.5 kB / 437.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 3.086e-06/0.4486, allocations: 4 kB / 437.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=128): time 0.01786/0.4665, allocations: 6.656 MB / 444.5 MB, free: 5.824 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.4666, allocations: 175.5 kB / 444.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/0.4684, allocations: 1.103 MB / 445.7 MB, free: 4.496 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.4686, allocations: 53.7 kB / 445.8 MB, free: 4.438 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004674/0.4691, allocations: 0.5004 MB / 446.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000452/0.4695, allocations: 433.8 kB / 446.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002207/0.4698, allocations: 113.7 kB / 446.8 MB, free: 3.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4699, allocations: 361.9 kB / 447.2 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001524/0.4715, allocations: 0.8432 MB / 448 MB, free: 2.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001662/0.4731, allocations: 1.072 MB / 449.1 MB, free: 1.027 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002895/0.476, allocations: 1.804 MB / 450.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.4761, allocations: 4 kB / 450.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004933/0.481, allocations: 2.623 MB / 453.5 MB, free: 12.51 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002003/0.4812, allocations: 231.7 kB / 453.7 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.4812, allocations: 4 kB / 453.8 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003782/0.485, allocations: 1.307 MB / 455.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.4861, allocations: 215.7 kB / 455.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006833/0.4929, allocations: 6.364 MB / 461.6 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.4944, allocations: 100 kB / 461.7 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/0.4946, allocations: 59.97 kB / 461.8 MB, free: 3.812 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.457e-06/0.4946, allocations: 4 kB / 461.8 MB, free: 3.809 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004606/0.4992, allocations: 2.346 MB / 464.1 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.4993, allocations: 8.062 kB / 464.1 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002599/0.5019, allocations: 1.021 MB / 465.2 MB, free: 412 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.5029, allocations: 227.7 kB / 465.4 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006772/0.5097, allocations: 6.107 MB / 471.5 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.5113, allocations: 99.84 kB / 471.6 MB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000215/0.5115, allocations: 63.97 kB / 471.7 MB, free: 9.566 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.001004/0.5125, allocations: 458.3 kB / 472.1 MB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000411/0.5129, allocations: 130.4 kB / 472.2 MB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005628/0.5186, allocations: 2.795 MB / 475 MB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.118e-05/0.5186, allocations: 19.98 kB / 475 MB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.5186, allocations: 7.938 kB / 475.1 MB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.483e-05/0.5187, allocations: 3.984 kB / 475.1 MB, free: 6.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008202/0.5269, allocations: 4.526 MB / 479.6 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.5269, allocations: 0 / 479.6 MB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008107/0.5277, allocations: 163.7 kB / 479.7 MB, free: 1.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003636/0.5314, allocations: 1.298 MB / 481 MB, free: 64 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001374/0.5315, allocations: 43.97 kB / 481.1 MB, free: 20 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007246/0.5388, allocations: 6.392 MB / 487.5 MB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.5388, allocations: 0 / 487.5 MB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00738/0.5462, allocations: 3.944 MB / 491.4 MB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.5472, allocations: 447 kB / 491.9 MB, free: 4.852 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003708/0.5476, allocations: 28 kB / 491.9 MB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.549, allocations: 100 kB / 492 MB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/0.5494, allocations: 141.1 kB / 492.1 MB, free: 4.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/0.5495, allocations: 51.97 kB / 492.2 MB, free: 4.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001299/0.5508, allocations: 0.7532 MB / 492.9 MB, free: 3.773 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5508, allocations: 0 / 492.9 MB, free: 3.773 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003576/0.5544, allocations: 1.05 MB / 494 MB, free: 2.723 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.002468/0.5569, allocations: 0.7482 MB / 494.7 MB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007983/0.5649, allocations: 3.794 MB / 498.5 MB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.259e-06/0.5649, allocations: 0 / 498.5 MB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003152/0.5681, allocations: 1.43 MB / 499.9 MB, free: 12.68 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003284/0.5714, allocations: 0.6005 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.00673/0.5781, allocations: 3.7 MB / 0.4924 GB, free: 8.355 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001073/0.5792, allocations: 1.268 MB / 0.4937 GB, free: 7.059 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00201/0.5812, allocations: 0.58 MB / 0.4942 GB, free: 6.477 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.5816, allocations: 115.4 kB / 0.4943 GB, free: 6.363 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.5817, allocations: 0 / 0.4943 GB, free: 6.363 MB / 414.1 MB Notification: Performance of Templates: time 0.243/0.8246, 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)