Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001186/0.001186, allocations: 113.8 kB / 17.72 MB, free: 5.418 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.001801/0.001801, allocations: 183.1 kB / 18.65 MB, free: 4.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.651/1.651, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 52.27 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1174, allocations: 46.62 MB / 375.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.2972/0.4147, allocations: 30.16 MB / 405.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01926/0.434, allocations: 10.25 MB / 415.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002537/0.4366, allocations: 37.03 kB / 415.6 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00222/0.4389, allocations: 472.2 kB / 416 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007428/0.4464, allocations: 1.868 MB / 417.9 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009518/0.4559, allocations: 2.748 MB / 420.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006611/0.4626, allocations: 3.674 MB / 424.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002017/0.4646, allocations: 1.158 MB / 425.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004176/0.4688, allocations: 1.505 MB / 427 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003725/0.4725, allocations: 1.421 MB / 428.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000502/0.473, allocations: 155 kB / 428.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006581/0.4796, allocations: 2.071 MB / 430.6 MB, free: 8.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009042/0.4806, allocations: 0.5767 MB / 431.2 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001589/0.4822, allocations: 0.805 MB / 432 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009677/0.4919, allocations: 3.368 MB / 435.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/0.4919, allocations: 0 / 435.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.4919, allocations: 0 / 435.4 MB, free: 3.312 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.861e-05/0.492, allocations: 0 / 435.4 MB, free: 3.312 MB / 350.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.006154/0.4981, allocations: 2.1 MB / 437.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.4982, allocations: 8.031 kB / 437.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006518/0.4989, allocations: 179.6 kB / 437.7 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001738/0.5006, allocations: 0.9454 MB / 438.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002693/0.5009, allocations: 242.5 kB / 438.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/0.5011, allocations: 99.94 kB / 438.9 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003198/0.5043, allocations: 1.79 MB / 440.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.158e-05/0.5043, allocations: 3.938 kB / 440.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001406/0.5045, allocations: 47.97 kB / 440.8 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001423/0.5046, allocations: 106 kB / 440.9 MB, free: 13.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003244/0.5079, allocations: 1.776 MB / 442.7 MB, free: 11.83 MB / 366.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.01224/0.5201, allocations: 6.927 MB / 449.6 MB, free: 4.602 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002843/0.523, allocations: 1.482 MB / 451.1 MB, free: 3.105 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001438/0.5245, allocations: 0.8822 MB / 452 MB, free: 2.219 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009056/0.5254, allocations: 0.649 MB / 452.6 MB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.5254, allocations: 47.5 kB / 452.7 MB, free: 1.387 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.156e-06/0.5255, allocations: 0 / 452.7 MB, free: 1.387 MB / 366.1 MB Notification: Performance of matching and sorting (n=128): time 0.01641/0.5419, allocations: 6.64 MB / 459.3 MB, free: 10.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.542, allocations: 171.5 kB / 459.5 MB, free: 10.43 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/0.5436, allocations: 1.103 MB / 460.6 MB, free: 9.309 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.5437, allocations: 49.7 kB / 460.6 MB, free: 9.254 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004225/0.5441, allocations: 0.5091 MB / 461.1 MB, free: 8.738 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004346/0.5446, allocations: 456.1 kB / 461.6 MB, free: 8.289 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005001/0.5451, allocations: 267.5 kB / 461.8 MB, free: 8.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.5453, allocations: 361.9 kB / 462.2 MB, free: 7.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/0.5467, allocations: 0.848 MB / 463 MB, free: 6.809 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.5483, allocations: 1.08 MB / 464.1 MB, free: 5.652 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003059/0.5514, allocations: 1.804 MB / 465.9 MB, free: 3.781 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.5514, allocations: 0 / 465.9 MB, free: 3.781 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005048/0.5564, allocations: 2.636 MB / 468.5 MB, free: 1.121 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.788e-05/0.5565, allocations: 8 kB / 468.6 MB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.5565, allocations: 4 kB / 468.6 MB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003905/0.5604, allocations: 1.3 MB / 469.9 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.5615, allocations: 215.6 kB / 470.1 MB, free: 15.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007543/0.5691, allocations: 6.729 MB / 476.8 MB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.571, allocations: 63.95 kB / 476.9 MB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003855/0.5714, allocations: 55.97 kB / 476.9 MB, free: 8.391 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002424/0.5739, allocations: 1.109 MB / 478 MB, free: 7.277 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002053/0.5759, allocations: 1.059 MB / 479.1 MB, free: 6.141 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0032/0.5792, allocations: 1.774 MB / 480.9 MB, free: 4.293 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.634e-06/0.5792, allocations: 0 / 480.9 MB, free: 4.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.005508/0.5847, allocations: 2.515 MB / 483.4 MB, free: 1.754 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.5847, allocations: 11.94 kB / 483.4 MB, free: 1.742 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.5848, allocations: 4 kB / 483.4 MB, free: 1.738 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002559/0.5873, allocations: 1.022 MB / 484.4 MB, free: 0.7031 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.5884, allocations: 231.6 kB / 484.6 MB, free: 488 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007026/0.5954, allocations: 6.47 MB / 491.1 MB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.5969, allocations: 67.94 kB / 491.2 MB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002151/0.5971, allocations: 55.98 kB / 491.2 MB, free: 9.531 MB / 414.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.0005812/0.5977, allocations: 268 kB / 491.5 MB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005643/0.5983, allocations: 147 kB / 491.6 MB, free: 9.117 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005512/0.6038, allocations: 2.803 MB / 494.4 MB, free: 6.289 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.089e-05/0.6038, allocations: 16 kB / 494.5 MB, free: 6.273 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.6038, allocations: 7.938 kB / 494.5 MB, free: 6.266 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.6039, allocations: 7.969 kB / 494.5 MB, free: 6.258 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007956/0.6118, allocations: 4.522 MB / 499 MB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.6119, allocations: 0 / 499 MB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008015/0.6127, allocations: 155.8 kB / 499.1 MB, free: 1.508 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003237/0.6159, allocations: 1.291 MB / 0.4887 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001505/0.6161, allocations: 35.97 kB / 0.4887 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007065/0.6232, allocations: 6.763 MB / 0.4953 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.6232, allocations: 0 / 0.4953 GB, free: 9.051 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007274/0.6305, allocations: 3.95 MB / 0.4992 GB, free: 5.062 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.6316, allocations: 439.9 kB / 0.4996 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004712/0.632, allocations: 27.94 kB / 0.4996 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.6335, allocations: 71.94 kB / 0.4997 GB, free: 4.516 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004174/0.6339, allocations: 141.1 kB / 0.4999 GB, free: 4.379 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001775/0.6341, allocations: 51.97 kB / 0.4999 GB, free: 4.328 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001366/0.6355, allocations: 0.7493 MB / 0.5006 GB, free: 3.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6355, allocations: 0 / 0.5006 GB, free: 3.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00403/0.6395, allocations: 1.057 MB / 0.5017 GB, free: 2.512 MB / 430.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.003075/0.6426, allocations: 0.7394 MB / 0.5024 GB, free: 1.762 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008901/0.6515, allocations: 3.841 MB / 0.5061 GB, free: 13.87 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/0.6516, allocations: 0 / 0.5061 GB, free: 13.87 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003481/0.6551, allocations: 1.438 MB / 0.5075 GB, free: 12.41 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003522/0.6586, allocations: 0.6241 MB / 0.5082 GB, free: 11.78 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007304/0.666, allocations: 3.142 MB / 0.5112 GB, free: 8.594 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001286/0.6673, allocations: 1.256 MB / 0.5124 GB, free: 7.312 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002016/0.6693, allocations: 0.5769 MB / 0.513 GB, free: 6.73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004329/0.6698, allocations: 127.3 kB / 0.5131 GB, free: 6.605 MB / 446.1 MB Notification: Performance of SimCode: time 7.51e-07/0.6698, allocations: 0 / 0.5131 GB, free: 6.605 MB / 446.1 MB Notification: Performance of Templates: time 0.2981/0.9679, allocations: 46.89 MB / 0.5589 GB, free: 157.3 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)