Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001108/0.001108, allocations: 97.45 kB / 16.31 MB, free: 5.996 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.001732/0.001733, allocations: 184.7 kB / 17.2 MB, free: 5.914 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.54/1.54, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.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.0004358/0.0004359, allocations: 10.81 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.241, allocations: 47.58 MB / 327.7 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.03291/0.2739, allocations: 21.21 MB / 348.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02254/0.2965, allocations: 9.936 MB / 358.8 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002284/0.2989, allocations: 43.62 kB / 358.9 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002063/0.3009, allocations: 413.8 kB / 359.3 MB, free: 3.859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008605/0.3096, allocations: 1.496 MB / 360.8 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009373/0.319, allocations: 2.117 MB / 362.9 MB, free: 244 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005546/0.3246, allocations: 2.074 MB / 365 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002386/0.327, allocations: 0.9607 MB / 365.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003424/0.3304, allocations: 1.13 MB / 367.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002982/0.3334, allocations: 0.9658 MB / 368 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004703/0.3339, allocations: 80 kB / 368.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005895/0.3398, allocations: 1.783 MB / 369.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009271/0.3408, allocations: 462.8 kB / 370.3 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006956/0.3415, allocations: 285 kB / 370.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006138/0.3476, allocations: 2.272 MB / 372.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3477, allocations: 0 / 372.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3477, allocations: 0 / 372.9 MB, free: 6.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.052e-05/0.3478, allocations: 0 / 372.9 MB, free: 6.207 MB / 302.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.007541/0.3554, allocations: 1.784 MB / 374.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.023e-05/0.3554, allocations: 12.02 kB / 374.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009649/0.3564, allocations: 162.2 kB / 374.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002785/0.3592, allocations: 0.8751 MB / 375.7 MB, free: 3.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003008/0.3595, allocations: 234.5 kB / 376 MB, free: 3.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003377/0.3599, allocations: 99.97 kB / 376.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004653/0.3645, allocations: 1.771 MB / 377.8 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.556e-05/0.3646, allocations: 7.938 kB / 377.8 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002451/0.3649, allocations: 43.94 kB / 377.9 MB, free: 1.039 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002154/0.3651, allocations: 102 kB / 378 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004762/0.3699, allocations: 1.772 MB / 379.7 MB, free: 15.15 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.01958/0.3895, allocations: 6.96 MB / 386.7 MB, free: 7.891 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004019/0.3936, allocations: 1.497 MB / 388.2 MB, free: 6.383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001254/0.3949, allocations: 0.6529 MB / 388.9 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.373e-05/0.395, allocations: 55.56 kB / 388.9 MB, free: 5.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 5.971e-06/0.395, allocations: 0 / 388.9 MB, free: 5.539 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.0214/0.4164, allocations: 6.655 MB / 395.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.4166, allocations: 175.5 kB / 395.7 MB, free: 14.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001855/0.4184, allocations: 1.084 MB / 396.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002135/0.4187, allocations: 53.7 kB / 396.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004918/0.4192, allocations: 0.5004 MB / 397.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005174/0.4197, allocations: 429.8 kB / 397.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.4198, allocations: 32 kB / 397.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001683/0.42, allocations: 357.9 kB / 398.2 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001562/0.4216, allocations: 0.8354 MB / 399 MB, free: 11.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.4231, allocations: 1.057 MB / 400.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.4246, allocations: 0.8808 MB / 400.9 MB, free: 9.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.4246, allocations: 8 kB / 401 MB, free: 9.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004818/0.4294, allocations: 2.588 MB / 403.5 MB, free: 6.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007581/0.4302, allocations: 1.836 MB / 405.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.4302, allocations: 4 kB / 405.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003579/0.4338, allocations: 1.296 MB / 406.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.435, allocations: 211.7 kB / 406.9 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007631/0.4426, allocations: 6.392 MB / 413.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002008/0.4447, allocations: 95.89 kB / 413.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004287/0.4451, allocations: 59.97 kB / 413.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.4452, allocations: 4 kB / 413.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00511/0.4503, allocations: 2.346 MB / 415.8 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.4503, allocations: 4 kB / 415.8 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00279/0.4531, allocations: 1.031 MB / 416.8 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/0.4543, allocations: 223.7 kB / 417 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006581/0.4609, allocations: 6.146 MB / 423.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.4626, allocations: 92.45 kB / 423.3 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002372/0.4629, allocations: 55.98 kB / 423.3 MB, free: 1.945 MB / 350.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.001049/0.4639, allocations: 452.7 kB / 423.8 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00045/0.4644, allocations: 134.4 kB / 423.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005575/0.47, allocations: 2.819 MB / 426.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.37e-05/0.47, allocations: 12 kB / 426.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.4701, allocations: 4 kB / 426.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.789e-05/0.4701, allocations: 7.969 kB / 426.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008471/0.4786, allocations: 4.538 MB / 431.3 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/0.4786, allocations: 0 / 431.3 MB, free: 9.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008278/0.4795, allocations: 151.8 kB / 431.4 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003396/0.4829, allocations: 1.299 MB / 432.7 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/0.4831, allocations: 39.97 kB / 432.8 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007594/0.4907, allocations: 6.415 MB / 439.2 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4908, allocations: 0 / 439.2 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006796/0.4976, allocations: 3.94 MB / 443.1 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001119/0.4987, allocations: 443.1 kB / 443.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003878/0.4991, allocations: 31.95 kB / 443.6 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.5003, allocations: 103.8 kB / 443.7 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003532/0.5007, allocations: 149 kB / 443.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.5008, allocations: 47.97 kB / 443.9 MB, free: 12.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001059/0.5019, allocations: 0.7454 MB / 444.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5019, allocations: 0 / 444.6 MB, free: 12.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003219/0.5051, allocations: 1.05 MB / 445.7 MB, free: 11.06 MB / 382.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.001712/0.5068, allocations: 0.7309 MB / 446.4 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007274/0.5141, allocations: 3.774 MB / 450.2 MB, free: 6.496 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.5142, allocations: 5.062 kB / 450.2 MB, free: 6.492 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003047/0.5172, allocations: 1.426 MB / 451.6 MB, free: 5.039 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002979/0.5202, allocations: 0.5668 MB / 452.2 MB, free: 4.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006429/0.5267, allocations: 3.567 MB / 455.7 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1595/0.6862, allocations: 1.288 MB / 457 MB, free: 113.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002427/0.6887, allocations: 0.5742 MB / 457.6 MB, free: 113.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005061/0.6892, allocations: 120.3 kB / 457.7 MB, free: 113.3 MB / 382.1 MB Notification: Performance of SimCode: time 2.274e-06/0.6892, allocations: 0 / 457.7 MB, free: 113.3 MB / 382.1 MB Notification: Performance of Templates: time 0.05321/0.7424, allocations: 42.77 MB / 0.4888 GB, free: 79.7 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) Environment - environmentSimulation: