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.0009318/0.0009318, allocations: 102 kB / 16.94 MB, free: 5.984 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.001117/0.001117, allocations: 181.4 kB / 17.82 MB, free: 5.656 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.512/1.512, allocations: 205.4 MB / 224 MB, free: 13.03 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.0004505/0.0004507, allocations: 8.938 kB / 280.7 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.0885, allocations: 47.59 MB / 328.3 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02181/0.1104, allocations: 21.21 MB / 349.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01454/0.1249, allocations: 9.927 MB / 359.5 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00118/0.1262, allocations: 43.62 kB / 359.5 MB, free: 4.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001156/0.1273, allocations: 417.8 kB / 359.9 MB, free: 4.406 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004086/0.1314, allocations: 1.499 MB / 361.4 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005416/0.1369, allocations: 2.12 MB / 363.5 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003544/0.1404, allocations: 2.071 MB / 365.6 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001748/0.1422, allocations: 0.9607 MB / 366.6 MB, free: 13.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002614/0.1448, allocations: 1.141 MB / 367.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001863/0.1467, allocations: 0.9579 MB / 368.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003012/0.147, allocations: 80 kB / 368.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004703/0.1518, allocations: 1.783 MB / 370.5 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005851/0.1524, allocations: 466.8 kB / 371 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000492/0.1529, allocations: 285 kB / 371.3 MB, free: 9.02 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003592/0.1565, allocations: 2.276 MB / 373.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1565, allocations: 4 kB / 373.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.1565, allocations: 0 / 373.5 MB, free: 6.734 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.237e-05/0.1565, allocations: 0 / 373.5 MB, free: 6.734 MB / 318.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.004848/0.1614, allocations: 1.769 MB / 375.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.1614, allocations: 8.031 kB / 375.3 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006142/0.1621, allocations: 166.2 kB / 375.5 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.1638, allocations: 0.8751 MB / 376.4 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/0.164, allocations: 234.5 kB / 376.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001903/0.1642, allocations: 95.98 kB / 376.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002965/0.1672, allocations: 1.783 MB / 378.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.858e-05/0.1672, allocations: 0 / 378.5 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/0.1674, allocations: 47.92 kB / 378.5 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.1675, allocations: 106 kB / 378.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1586/0.3261, allocations: 1.759 MB / 380.4 MB, free: 53.41 MB / 318.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.01277/0.3389, allocations: 6.964 MB / 387.3 MB, free: 50.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002789/0.3417, allocations: 1.492 MB / 388.8 MB, free: 49.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008421/0.3426, allocations: 0.6547 MB / 389.5 MB, free: 49.09 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.154e-05/0.3427, allocations: 51.56 kB / 389.5 MB, free: 49.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.008e-06/0.3427, allocations: 1.031 kB / 389.5 MB, free: 49.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01576/0.3584, allocations: 6.667 MB / 396.2 MB, free: 45.84 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.3586, allocations: 171.3 kB / 396.4 MB, free: 45.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.36, allocations: 1.089 MB / 397.5 MB, free: 45.05 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.3601, allocations: 45.64 kB / 397.5 MB, free: 45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/0.3604, allocations: 0.5005 MB / 398 MB, free: 44.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.3607, allocations: 435.9 kB / 398.4 MB, free: 44.2 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.965e-05/0.3608, allocations: 28.91 kB / 398.5 MB, free: 44.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.475e-05/0.3609, allocations: 358.9 kB / 398.8 MB, free: 43.84 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.362, allocations: 0.83 MB / 399.6 MB, free: 43.4 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001225/0.3633, allocations: 1.058 MB / 400.7 MB, free: 42.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001155/0.3644, allocations: 0.89 MB / 401.6 MB, free: 42.24 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.3644, allocations: 0 / 401.6 MB, free: 42.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003801/0.3682, allocations: 2.58 MB / 404.2 MB, free: 40.88 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003251/0.3686, allocations: 1.839 MB / 406 MB, free: 38.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.3686, allocations: 7.562 kB / 406 MB, free: 38.92 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0031/0.3717, allocations: 1.295 MB / 407.3 MB, free: 37.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008629/0.3726, allocations: 218.5 kB / 407.5 MB, free: 37.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004814/0.3774, allocations: 6.396 MB / 413.9 MB, free: 30.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.3789, allocations: 95.84 kB / 414 MB, free: 30.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.379, allocations: 59.97 kB / 414.1 MB, free: 30.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/0.3791, allocations: 6.031 kB / 414.1 MB, free: 30.64 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003441/0.3825, allocations: 2.346 MB / 416.4 MB, free: 28.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.3825, allocations: 8 kB / 416.4 MB, free: 28.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/0.3846, allocations: 1.021 MB / 417.4 MB, free: 27.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008802/0.3855, allocations: 223.7 kB / 417.7 MB, free: 27.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004561/0.3901, allocations: 6.147 MB / 423.8 MB, free: 20.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/0.392, allocations: 91.94 kB / 423.9 MB, free: 20.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002187/0.3922, allocations: 55.97 kB / 424 MB, free: 20.4 MB / 318.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 (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],$PRE.hysteresis.y,hysteresis.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 3,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.00101/0.3932, allocations: 460.7 kB / 424.4 MB, free: 19.94 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003408/0.3936, allocations: 138.3 kB / 424.5 MB, free: 19.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004233/0.3978, allocations: 2.804 MB / 427.3 MB, free: 16.98 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.3979, allocations: 16.94 kB / 427.4 MB, free: 16.96 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.3979, allocations: 4 kB / 427.4 MB, free: 16.96 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/0.3979, allocations: 11.92 kB / 427.4 MB, free: 16.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006156/0.4041, allocations: 4.533 MB / 431.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.4041, allocations: 3.938 kB / 431.9 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007275/0.4048, allocations: 151.8 kB / 432.1 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002787/0.4076, allocations: 1.304 MB / 433.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.4078, allocations: 33.09 kB / 433.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004847/0.4126, allocations: 6.424 MB / 439.8 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4127, allocations: 0 / 439.8 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005848/0.4185, allocations: 3.945 MB / 443.8 MB, free: 144 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.4196, allocations: 451.3 kB / 444.2 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003311/0.4199, allocations: 28 kB / 444.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001185/0.4211, allocations: 87.94 kB / 444.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003127/0.4215, allocations: 149.1 kB / 444.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/0.4216, allocations: 55.91 kB / 444.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001096/0.4227, allocations: 0.7376 MB / 445.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4227, allocations: 0 / 445.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003077/0.4258, allocations: 1.053 MB / 446.3 MB, free: 13.64 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {2 4,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001896/0.4277, allocations: 0.718 MB / 447 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00737/0.4351, allocations: 3.781 MB / 450.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4352, allocations: 1 kB / 450.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002974/0.4381, allocations: 1.423 MB / 452.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002899/0.441, allocations: 0.5738 MB / 452.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006954/0.448, allocations: 3.564 MB / 456.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.4492, allocations: 1.288 MB / 457.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002206/0.4514, allocations: 0.573 MB / 458.2 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003913/0.4518, allocations: 123.3 kB / 458.4 MB, free: 1.516 MB / 334.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4518, allocations: 4 kB / 458.4 MB, free: 1.512 MB / 334.1 MB Notification: Performance of Templates: time 0.06418/0.516, allocations: 42.78 MB / 0.4894 GB, free: 6.668 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: