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.001181/0.001181, allocations: 110.5 kB / 17.06 MB, free: 6.117 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.001138/0.001138, allocations: 198.9 kB / 18 MB, free: 5.195 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.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001027/0.001027, allocations: 48.06 kB / 351.3 MB, free: 3.258 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.253, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02862/0.2816, allocations: 30.17 MB / 430.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.2964, allocations: 10.28 MB / 441.2 MB, free: 304 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002111/0.2986, allocations: 31.81 kB / 441.2 MB, free: 272 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.3005, allocations: 477 kB / 441.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005886/0.3066, allocations: 1.894 MB / 443.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007476/0.314, allocations: 2.748 MB / 446.3 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005025/0.3191, allocations: 3.685 MB / 450 MB, free: 7.465 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002333/0.3215, allocations: 1.166 MB / 451.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00377/0.3252, allocations: 1.526 MB / 452.7 MB, free: 4.75 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003035/0.3283, allocations: 1.413 MB / 454.1 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006132/0.329, allocations: 156 kB / 454.2 MB, free: 3.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004681/0.3336, allocations: 2.083 MB / 456.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009139/0.3346, allocations: 0.5805 MB / 456.9 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001688/0.3363, allocations: 0.8011 MB / 457.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006769/0.3431, allocations: 3.351 MB / 461.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3431, allocations: 0 / 461.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3431, allocations: 0 / 461.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.457e-05/0.3432, allocations: 0 / 461.1 MB, free: 12.35 MB / 382.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.00624/0.3494, allocations: 2.037 MB / 463.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3495, allocations: 8.031 kB / 463.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000707/0.3502, allocations: 170.1 kB / 463.3 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001846/0.3521, allocations: 0.9447 MB / 464.2 MB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000196/0.3523, allocations: 234.5 kB / 464.4 MB, free: 8.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000256/0.3525, allocations: 103.9 kB / 464.5 MB, free: 8.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003187/0.3557, allocations: 1.798 MB / 466.3 MB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.3558, allocations: 0 / 466.3 MB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000168/0.356, allocations: 47.92 kB / 466.4 MB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001278/0.3561, allocations: 102 kB / 466.5 MB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003168/0.3593, allocations: 1.776 MB / 468.3 MB, free: 4.941 MB / 382.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.01237/0.3717, allocations: 6.917 MB / 475.2 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002728/0.3744, allocations: 1.494 MB / 476.7 MB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001403/0.3758, allocations: 0.8836 MB / 477.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008418/0.3767, allocations: 0.6412 MB / 478.2 MB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.181e-05/0.3768, allocations: 47.56 kB / 478.2 MB, free: 10.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=116): time 3.176e-06/0.3768, allocations: 0 / 478.2 MB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=128): time 0.0166/0.3934, allocations: 6.628 MB / 484.9 MB, free: 3.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.3935, allocations: 179.5 kB / 485 MB, free: 3.559 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/0.3952, allocations: 1.103 MB / 486.2 MB, free: 2.438 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.3954, allocations: 45.7 kB / 486.2 MB, free: 2.387 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003997/0.3958, allocations: 0.4966 MB / 486.7 MB, free: 1.883 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004141/0.3962, allocations: 437.8 kB / 487.1 MB, free: 1.449 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005242/0.3967, allocations: 259.5 kB / 487.4 MB, free: 1.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3969, allocations: 357.9 kB / 487.7 MB, free: 0.832 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001388/0.3983, allocations: 0.852 MB / 488.6 MB, free: 15.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001586/0.3999, allocations: 1.076 MB / 489.7 MB, free: 14.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002809/0.4027, allocations: 1.808 MB / 491.5 MB, free: 12.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.4027, allocations: 8 kB / 491.5 MB, free: 12.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004748/0.4075, allocations: 2.615 MB / 494.1 MB, free: 10.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.4075, allocations: 11.98 kB / 494.1 MB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.4075, allocations: 4 kB / 494.1 MB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003725/0.4113, allocations: 1.311 MB / 495.4 MB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.4123, allocations: 211.7 kB / 495.6 MB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006563/0.4189, allocations: 6.723 MB / 0.4906 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001263/0.4202, allocations: 59.95 kB / 0.4906 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001917/0.4204, allocations: 59.97 kB / 0.4907 GB, free: 1.562 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001834/0.4222, allocations: 1.105 MB / 0.4918 GB, free: 464 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001553/0.4238, allocations: 1.062 MB / 0.4928 GB, free: 15.31 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002741/0.4265, allocations: 1.77 MB / 0.4945 GB, free: 13.47 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.34e-06/0.4266, allocations: 4 kB / 0.4945 GB, free: 13.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004482/0.431, allocations: 2.494 MB / 0.497 GB, free: 10.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.4311, allocations: 8 kB / 0.497 GB, free: 10.94 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.4311, allocations: 4.312 kB / 0.497 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002476/0.4336, allocations: 1.027 MB / 0.498 GB, free: 9.891 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.4346, allocations: 227.7 kB / 0.4982 GB, free: 9.668 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006825/0.4414, allocations: 6.462 MB / 0.5045 GB, free: 2.848 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001584/0.4431, allocations: 79.94 kB / 0.5046 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003249/0.4434, allocations: 55.97 kB / 0.5046 GB, free: 2.715 MB / 430.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.0006492/0.4441, allocations: 261.3 kB / 0.5049 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000456/0.4445, allocations: 138.3 kB / 0.505 GB, free: 2.316 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005417/0.4499, allocations: 2.792 MB / 0.5077 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.45, allocations: 16 kB / 0.5078 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.45, allocations: 4 kB / 0.5078 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/0.45, allocations: 11.91 kB / 0.5078 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007657/0.4577, allocations: 4.53 MB / 0.5122 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.4577, allocations: 4 kB / 0.5122 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008133/0.4585, allocations: 151.8 kB / 0.5123 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003208/0.4618, allocations: 1.283 MB / 0.5136 GB, free: 9.414 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/0.4619, allocations: 39.91 kB / 0.5136 GB, free: 9.375 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006651/0.4686, allocations: 6.753 MB / 0.5202 GB, free: 2.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4686, allocations: 0 / 0.5202 GB, free: 2.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006628/0.4752, allocations: 3.954 MB / 0.5241 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009104/0.4762, allocations: 431.2 kB / 0.5245 GB, free: 13.84 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000329/0.4765, allocations: 31.92 kB / 0.5245 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.4777, allocations: 63.89 kB / 0.5246 GB, free: 13.75 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/0.478, allocations: 149 kB / 0.5247 GB, free: 13.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.4782, allocations: 47.97 kB / 0.5248 GB, free: 13.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001106/0.4793, allocations: 0.7532 MB / 0.5255 GB, free: 12.79 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4793, allocations: 0 / 0.5255 GB, free: 12.79 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003142/0.4825, allocations: 1.05 MB / 0.5265 GB, free: 11.74 MB / 462.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.002018/0.4845, allocations: 0.7317 MB / 0.5273 GB, free: 11 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007941/0.4924, allocations: 3.829 MB / 0.531 GB, free: 7.121 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.4925, allocations: 0 / 0.531 GB, free: 7.121 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003149/0.4956, allocations: 1.445 MB / 0.5324 GB, free: 5.652 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002985/0.4986, allocations: 0.6283 MB / 0.533 GB, free: 5.035 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006485/0.5051, allocations: 3.086 MB / 0.536 GB, free: 1.926 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009686/0.5061, allocations: 1.268 MB / 0.5373 GB, free: 0.6328 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001858/0.508, allocations: 0.5805 MB / 0.5378 GB, free: 52 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2016/0.7097, allocations: 121 kB / 0.538 GB, free: 134.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/0.7097, allocations: 0.625 kB / 0.538 GB, free: 134.9 MB / 462.1 MB Notification: Performance of Templates: time 0.06043/0.7701, allocations: 46.9 MB / 0.5838 GB, free: 97.98 MB / 462.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 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)