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.001454/0.001454, allocations: 88.95 kB / 16.31 MB, free: 5.66 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.001887/0.001887, allocations: 183.3 kB / 17.21 MB, free: 5.578 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.56/1.56, allocations: 205.4 MB / 223.4 MB, free: 5.516 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.0004945/0.0004946, allocations: 14.81 kB / 280.1 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2622/0.2627, allocations: 47.58 MB / 327.7 MB, free: 1.629 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02926/0.292, allocations: 28.82 MB / 356.6 MB, free: 6.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01469/0.3067, allocations: 9.821 MB / 366.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001449/0.3082, allocations: 47.56 kB / 366.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001249/0.3095, allocations: 393.5 kB / 366.8 MB, free: 12.5 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.004512/0.314, allocations: 1.695 MB / 368.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005677/0.3197, allocations: 2.128 MB / 370.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004853/0.3245, allocations: 4.316 MB / 374.9 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.3264, allocations: 0.945 MB / 375.9 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002726/0.3291, allocations: 1.312 MB / 377.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00274/0.3318, allocations: 1.363 MB / 378.6 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004777/0.3323, allocations: 76 kB / 378.6 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004389/0.3367, allocations: 1.728 MB / 380.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007521/0.3375, allocations: 0.4908 MB / 380.9 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006311/0.3381, allocations: 281 kB / 381.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004362/0.3425, allocations: 2.303 MB / 383.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3425, allocations: 0 / 383.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.3425, allocations: 0 / 383.4 MB, free: 11.8 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.3426, allocations: 4 kB / 383.4 MB, free: 11.8 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.00451/0.3471, allocations: 1.78 MB / 385.2 MB, free: 9.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.3472, allocations: 12.03 kB / 385.2 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004503/0.3476, allocations: 166.2 kB / 385.4 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.349, allocations: 0.8673 MB / 386.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.3492, allocations: 238.4 kB / 386.5 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001799/0.3494, allocations: 104 kB / 386.6 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002715/0.3521, allocations: 1.787 MB / 388.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.3521, allocations: 3.938 kB / 388.4 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001349/0.3523, allocations: 47.94 kB / 388.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001239/0.3524, allocations: 102 kB / 388.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003094/0.3555, allocations: 1.768 MB / 390.3 MB, free: 4.742 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.01104/0.3665, allocations: 6.948 MB / 397.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002576/0.3691, allocations: 1.501 MB / 398.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001299/0.3704, allocations: 0.8822 MB / 399.6 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008056/0.3713, allocations: 0.6607 MB / 400.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.3713, allocations: 43.56 kB / 400.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 2.826e-06/0.3713, allocations: 0 / 400.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.0152/0.3865, allocations: 6.718 MB / 407 MB, free: 3.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.3866, allocations: 171.5 kB / 407.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.388, allocations: 1.084 MB / 408.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001035/0.3881, allocations: 53.7 kB / 408.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003717/0.3884, allocations: 0.4966 MB / 408.8 MB, free: 1.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003667/0.3888, allocations: 433.7 kB / 409.3 MB, free: 1.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.855e-05/0.3889, allocations: 28 kB / 409.3 MB, free: 1.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.3891, allocations: 365.9 kB / 409.7 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001293/0.3904, allocations: 0.8277 MB / 410.5 MB, free: 15.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.3918, allocations: 1.068 MB / 411.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.3932, allocations: 0.8808 MB / 412.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3932, allocations: 0 / 412.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004503/0.3977, allocations: 2.584 MB / 415 MB, free: 11.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002912/0.3981, allocations: 239.8 kB / 415.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/0.3981, allocations: 4 kB / 415.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003687/0.4018, allocations: 1.296 MB / 416.6 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.4029, allocations: 211.7 kB / 416.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006519/0.4094, allocations: 6.353 MB / 423.1 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001452/0.4109, allocations: 99.83 kB / 423.2 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.411, allocations: 51.98 kB / 423.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.411, allocations: 4 kB / 423.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004115/0.4152, allocations: 2.346 MB / 425.6 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.4152, allocations: 4 kB / 425.6 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002407/0.4176, allocations: 1.027 MB / 426.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009086/0.4185, allocations: 219.7 kB / 426.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006134/0.4247, allocations: 6.111 MB / 433 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/0.4261, allocations: 95.84 kB / 433.1 MB, free: 8.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/0.4263, allocations: 51.98 kB / 433.1 MB, free: 8.363 MB / 366.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.0008768/0.4272, allocations: 464.6 kB / 433.6 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003351/0.4275, allocations: 130.4 kB / 433.7 MB, free: 7.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005229/0.4327, allocations: 2.807 MB / 436.5 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.348e-05/0.4328, allocations: 16 kB / 436.5 MB, free: 4.922 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.4328, allocations: 4 kB / 436.5 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/0.4328, allocations: 7.969 kB / 436.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007293/0.4401, allocations: 4.514 MB / 441 MB, free: 332 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.4402, allocations: 12.06 kB / 441.1 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000788/0.4409, allocations: 151.8 kB / 441.2 MB, free: 168 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003252/0.4442, allocations: 1.295 MB / 442.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001375/0.4444, allocations: 39.92 kB / 442.5 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0066/0.451, allocations: 6.377 MB / 448.9 MB, free: 8.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.451, allocations: 4.125 kB / 448.9 MB, free: 8.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006643/0.4576, allocations: 3.94 MB / 452.9 MB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009706/0.4586, allocations: 439.1 kB / 453.3 MB, free: 3.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003977/0.4591, allocations: 32 kB / 453.3 MB, free: 3.633 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001262/0.4603, allocations: 99.77 kB / 453.4 MB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003993/0.4607, allocations: 141.1 kB / 453.6 MB, free: 3.395 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001566/0.4609, allocations: 55.95 kB / 453.6 MB, free: 3.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00122/0.4621, allocations: 0.7376 MB / 454.3 MB, free: 2.594 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4621, allocations: 4 kB / 454.3 MB, free: 2.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003345/0.4655, allocations: 1.054 MB / 455.4 MB, free: 1.535 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.002025/0.4675, allocations: 0.7154 MB / 456.1 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2051/0.6727, allocations: 3.771 MB / 459.9 MB, free: 116.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/0.6727, allocations: 1.688 kB / 459.9 MB, free: 116.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00305/0.6758, allocations: 1.425 MB / 461.3 MB, free: 116 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003284/0.6791, allocations: 0.5877 MB / 461.9 MB, free: 115.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006184/0.6853, allocations: 3.568 MB / 465.5 MB, free: 114.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008697/0.6862, allocations: 1.266 MB / 466.7 MB, free: 113.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001852/0.6881, allocations: 0.5841 MB / 467.3 MB, free: 113.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.6884, allocations: 115.7 kB / 467.4 MB, free: 113.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.6884, allocations: 0 / 467.4 MB, free: 113.4 MB / 382.1 MB Notification: Performance of Templates: time 0.052/0.7404, allocations: 42.8 MB / 0.4983 GB, free: 73.8 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (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)