Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001195/0.001195, allocations: 97.91 kB / 15.05 MB, free: 1.105 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.001044/0.001044, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0007066/0.0007067, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2639, allocations: 47.58 MB / 326.4 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02081/0.2848, allocations: 21.2 MB / 347.6 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01539/0.3002, allocations: 9.944 MB / 357.6 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.3017, allocations: 47.62 kB / 357.6 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001219/0.3029, allocations: 409.8 kB / 358 MB, free: 3.859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004649/0.3076, allocations: 1.496 MB / 359.5 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006017/0.3136, allocations: 2.12 MB / 361.7 MB, free: 240 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003884/0.3175, allocations: 2.067 MB / 363.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001811/0.3194, allocations: 0.9646 MB / 364.7 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003005/0.3224, allocations: 1.137 MB / 365.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002241/0.3247, allocations: 0.9541 MB / 366.8 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002467/0.3249, allocations: 80 kB / 366.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00454/0.3295, allocations: 1.783 MB / 368.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005929/0.3301, allocations: 462.7 kB / 369.1 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005185/0.3306, allocations: 285 kB / 369.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003531/0.3342, allocations: 2.272 MB / 371.6 MB, free: 6.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3342, allocations: 4 kB / 371.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3342, allocations: 0 / 371.6 MB, free: 6.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.046e-05/0.3342, allocations: 0 / 371.6 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.005083/0.3393, allocations: 1.784 MB / 373.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3394, allocations: 8.031 kB / 373.4 MB, free: 4.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006458/0.34, allocations: 162.2 kB / 373.6 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/0.3418, allocations: 0.8712 MB / 374.5 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.3421, allocations: 238.5 kB / 374.7 MB, free: 3.023 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001815/0.3422, allocations: 104 kB / 374.8 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003034/0.3453, allocations: 1.775 MB / 376.6 MB, free: 1.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/0.3453, allocations: 4 kB / 376.6 MB, free: 1.086 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001341/0.3455, allocations: 43.94 kB / 376.6 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.3456, allocations: 105.9 kB / 376.7 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002836/0.3485, allocations: 1.765 MB / 378.5 MB, free: 15.16 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.01228/0.3607, allocations: 6.96 MB / 385.4 MB, free: 7.898 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002616/0.3634, allocations: 1.497 MB / 386.9 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001024/0.3644, allocations: 0.6568 MB / 387.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.3645, allocations: 47.5 kB / 387.6 MB, free: 5.551 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.376e-06/0.3645, allocations: 4 kB / 387.7 MB, free: 5.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=128): time 0.01632/0.3808, allocations: 6.663 MB / 394.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.381, allocations: 167.5 kB / 394.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001442/0.3824, allocations: 1.088 MB / 395.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.3826, allocations: 53.7 kB / 395.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003943/0.383, allocations: 0.4965 MB / 396.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/0.3834, allocations: 429.8 kB / 396.5 MB, free: 12.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.924e-05/0.3835, allocations: 36 kB / 396.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.3837, allocations: 357.9 kB / 396.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.385, allocations: 0.8315 MB / 397.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001507/0.3865, allocations: 1.057 MB / 398.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00141/0.3879, allocations: 0.8887 MB / 399.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3879, allocations: 0 / 399.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004705/0.3927, allocations: 2.588 MB / 402.3 MB, free: 6.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001019/0.3937, allocations: 1.84 MB / 404.1 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.397e-05/0.3937, allocations: 4 kB / 404.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003433/0.3972, allocations: 1.3 MB / 405.4 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009966/0.3982, allocations: 211.7 kB / 405.6 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006498/0.4047, allocations: 6.392 MB / 412 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/0.4062, allocations: 91.91 kB / 412.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/0.4064, allocations: 59.97 kB / 412.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.528e-06/0.4064, allocations: 4 kB / 412.2 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004126/0.4106, allocations: 2.354 MB / 414.5 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.4106, allocations: 4.312 kB / 414.5 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002533/0.4131, allocations: 1.031 MB / 415.6 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.4143, allocations: 223.7 kB / 415.8 MB, free: 8.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006285/0.4206, allocations: 6.146 MB / 421.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001659/0.4223, allocations: 91.91 kB / 422 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001402/0.4224, allocations: 51.98 kB / 422.1 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.0009178/0.4233, allocations: 456.7 kB / 422.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000293/0.4236, allocations: 138.4 kB / 422.7 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005071/0.4287, allocations: 2.807 MB / 425.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.229e-05/0.4288, allocations: 12 kB / 425.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.4288, allocations: 4 kB / 425.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.577e-05/0.4288, allocations: 7.969 kB / 425.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007592/0.4364, allocations: 4.538 MB / 430 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.853e-06/0.4365, allocations: 0 / 430 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007859/0.4373, allocations: 155.8 kB / 430.2 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003302/0.4406, allocations: 1.307 MB / 431.5 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001594/0.4408, allocations: 35.97 kB / 431.5 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00685/0.4476, allocations: 6.415 MB / 437.9 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4476, allocations: 0 / 437.9 MB, free: 1.613 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007049/0.4547, allocations: 3.936 MB / 441.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.4559, allocations: 447.1 kB / 442.3 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002281/0.4561, allocations: 27.95 kB / 442.3 MB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00105/0.4572, allocations: 100.3 kB / 442.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003371/0.4575, allocations: 149 kB / 442.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.4577, allocations: 55.95 kB / 442.6 MB, free: 12.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001131/0.4588, allocations: 0.7337 MB / 443.4 MB, free: 12.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4588, allocations: 8 kB / 443.4 MB, free: 12.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003412/0.4622, allocations: 1.05 MB / 444.4 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.001819/0.4641, allocations: 0.7349 MB / 445.2 MB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007281/0.4714, allocations: 3.775 MB / 448.9 MB, free: 6.492 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.2e-05/0.4714, allocations: 8.125 kB / 448.9 MB, free: 6.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002991/0.4744, allocations: 1.418 MB / 450.4 MB, free: 5.035 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002902/0.4773, allocations: 0.5622 MB / 450.9 MB, free: 4.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006299/0.4837, allocations: 3.567 MB / 454.5 MB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1757/0.6594, allocations: 1.292 MB / 455.8 MB, free: 113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002586/0.662, allocations: 0.5769 MB / 456.4 MB, free: 113 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/0.6625, allocations: 120.1 kB / 456.5 MB, free: 113 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6625, allocations: 0 / 456.5 MB, free: 113 MB / 382.1 MB Notification: Performance of Templates: time 0.05221/0.7147, allocations: 42.76 MB / 499.2 MB, free: 79.33 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1) Environment - environmentSimulation: