Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.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.00103/0.001031, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001238/0.001238, allocations: 172.7 kB / 15.95 MB, free: 208 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.614/1.614, allocations: 205.4 MB / 222.1 MB, free: 5.484 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.0004681/0.0004681, allocations: 12 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2753, allocations: 47.58 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02946/0.3048, allocations: 28.82 MB / 355.3 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01532/0.3202, allocations: 9.828 MB / 365.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.322, allocations: 43.62 kB / 365.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001552/0.3236, allocations: 401.5 kB / 365.6 MB, free: 12.32 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.005137/0.3287, allocations: 1.691 MB / 367.2 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006396/0.3351, allocations: 2.131 MB / 369.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005303/0.3405, allocations: 4.305 MB / 373.7 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002066/0.3425, allocations: 0.9567 MB / 374.6 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003089/0.3456, allocations: 1.316 MB / 376 MB, free: 1.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003297/0.349, allocations: 1.355 MB / 377.3 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006975/0.3497, allocations: 80 kB / 377.4 MB, free: 448 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004919/0.3546, allocations: 1.724 MB / 379.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009696/0.3556, allocations: 0.4947 MB / 379.6 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007485/0.3564, allocations: 281 kB / 379.9 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004002/0.3604, allocations: 2.303 MB / 382.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3604, allocations: 0 / 382.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3604, allocations: 0 / 382.2 MB, free: 11.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.912e-05/0.3605, allocations: 4 kB / 382.2 MB, free: 11.62 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.005299/0.3658, allocations: 1.78 MB / 384 MB, free: 9.789 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3658, allocations: 12.03 kB / 384 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007649/0.3666, allocations: 166.2 kB / 384.1 MB, free: 9.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.3684, allocations: 0.8673 MB / 385 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.3686, allocations: 234.5 kB / 385.2 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001807/0.3688, allocations: 99.92 kB / 385.3 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003029/0.3718, allocations: 1.786 MB / 387.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.3719, allocations: 0 / 387.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001473/0.372, allocations: 47.94 kB / 387.2 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.3722, allocations: 114 kB / 387.3 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00293/0.3751, allocations: 1.765 MB / 389 MB, free: 4.566 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.01147/0.3866, allocations: 6.952 MB / 396 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002627/0.3892, allocations: 1.493 MB / 397.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001368/0.3906, allocations: 0.8822 MB / 398.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008584/0.3915, allocations: 0.6607 MB / 399 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/0.3916, allocations: 47.55 kB / 399.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.226e-06/0.3916, allocations: 4 kB / 399.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.0168/0.4084, allocations: 6.707 MB / 405.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000132/0.4086, allocations: 175.5 kB / 406 MB, free: 3.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001889/0.4105, allocations: 1.088 MB / 407 MB, free: 1.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001522/0.4106, allocations: 49.7 kB / 407.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004758/0.4111, allocations: 0.5004 MB / 407.6 MB, free: 1.371 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004548/0.4116, allocations: 429.8 kB / 408 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.4117, allocations: 28 kB / 408 MB, free: 0.918 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.4119, allocations: 361.9 kB / 408.4 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001357/0.4132, allocations: 0.8354 MB / 409.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001528/0.4148, allocations: 1.053 MB / 410.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.4162, allocations: 0.8886 MB / 411.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.4163, allocations: 0 / 411.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004533/0.4208, allocations: 2.592 MB / 413.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001822/0.421, allocations: 239.7 kB / 414 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.421, allocations: 4 kB / 414 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003519/0.4245, allocations: 1.292 MB / 415.3 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000943/0.4255, allocations: 215.6 kB / 415.5 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006734/0.4323, allocations: 6.346 MB / 421.9 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/0.4338, allocations: 95.84 kB / 421.9 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/0.434, allocations: 59.97 kB / 422 MB, free: 2.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.677e-06/0.434, allocations: 4 kB / 422 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004112/0.4381, allocations: 2.342 MB / 424.4 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.4381, allocations: 4 kB / 424.4 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002362/0.4405, allocations: 1.023 MB / 425.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009622/0.4415, allocations: 227.6 kB / 425.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006106/0.4476, allocations: 6.104 MB / 431.7 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.449, allocations: 95.84 kB / 431.8 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001651/0.4492, allocations: 59.95 kB / 431.9 MB, free: 8.191 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.0008953/0.4501, allocations: 464.6 kB / 432.3 MB, free: 7.727 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003265/0.4504, allocations: 130.4 kB / 432.4 MB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005672/0.4561, allocations: 2.803 MB / 435.2 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.322e-05/0.4561, allocations: 23.98 kB / 435.3 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.4561, allocations: 4 kB / 435.3 MB, free: 4.742 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.4561, allocations: 7.969 kB / 435.3 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007725/0.4639, allocations: 4.51 MB / 439.8 MB, free: 156 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.4639, allocations: 3.984 kB / 439.8 MB, free: 152 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007918/0.4647, allocations: 155.8 kB / 439.9 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003233/0.468, allocations: 1.295 MB / 441.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.4681, allocations: 39.94 kB / 441.3 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00664/0.4747, allocations: 6.38 MB / 447.7 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4748, allocations: 0 / 447.7 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006453/0.4812, allocations: 3.94 MB / 451.6 MB, free: 3.945 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000952/0.4822, allocations: 439.1 kB / 452 MB, free: 3.496 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002949/0.4825, allocations: 28 kB / 452.1 MB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/0.4837, allocations: 99.77 kB / 452.2 MB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003281/0.484, allocations: 149 kB / 452.3 MB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000133/0.4841, allocations: 48.16 kB / 452.3 MB, free: 3.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001126/0.4853, allocations: 0.7454 MB / 453.1 MB, free: 2.422 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4853, allocations: 4 kB / 453.1 MB, free: 2.418 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003169/0.4885, allocations: 1.054 MB / 454.1 MB, free: 1.363 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.001682/0.4902, allocations: 0.7232 MB / 454.9 MB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2002/0.6903, allocations: 3.767 MB / 458.6 MB, free: 115.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.724e-06/0.6904, allocations: 1.406 kB / 458.6 MB, free: 115.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002883/0.6933, allocations: 1.425 MB / 460.1 MB, free: 115.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002964/0.6963, allocations: 0.5823 MB / 460.6 MB, free: 115.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00589/0.7022, allocations: 3.566 MB / 464.2 MB, free: 113.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006459/0.7028, allocations: 1.269 MB / 465.5 MB, free: 112.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001894/0.7047, allocations: 0.5805 MB / 466.1 MB, free: 112.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/0.7051, allocations: 118.7 kB / 466.2 MB, free: 112.8 MB / 382.1 MB Notification: Performance of SimCode: time 9.01e-07/0.7051, allocations: 0 / 466.2 MB, free: 112.8 MB / 382.1 MB Notification: Performance of Templates: time 0.05268/0.7577, allocations: 42.8 MB / 0.497 GB, free: 72.67 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)