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.000912/0.0009118, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.000994/0.0009942, allocations: 168.7 kB / 15.95 MB, free: 204 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.507/1.507, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004851/0.0004853, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3177, allocations: 47.58 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.04542/0.3632, allocations: 28.83 MB / 355.3 MB, free: 6.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01787/0.3812, allocations: 9.824 MB / 365.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002048/0.3832, allocations: 43.62 kB / 365.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001764/0.385, 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.006712/0.3918, allocations: 1.691 MB / 367.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008677/0.4005, allocations: 2.128 MB / 369.4 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006072/0.4066, allocations: 4.309 MB / 373.7 MB, free: 4.168 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002442/0.409, allocations: 0.9528 MB / 374.6 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003916/0.413, allocations: 1.312 MB / 376 MB, free: 1.887 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003183/0.4162, allocations: 1.363 MB / 377.3 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000689/0.4169, allocations: 80 kB / 377.4 MB, free: 452 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006351/0.4232, allocations: 1.728 MB / 379.1 MB, free: 14.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001306/0.4246, allocations: 0.4908 MB / 379.6 MB, free: 14.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009324/0.4255, allocations: 281 kB / 379.9 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004713/0.4303, allocations: 2.299 MB / 382.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.4303, allocations: 0 / 382.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.514e-06/0.4303, allocations: 0 / 382.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.877e-05/0.4304, allocations: 4 kB / 382.2 MB, free: 11.63 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.006241/0.4366, allocations: 1.78 MB / 384 MB, free: 9.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.671e-05/0.4367, allocations: 12.03 kB / 384 MB, free: 9.785 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001184/0.4379, allocations: 166.2 kB / 384.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002347/0.4403, allocations: 0.8712 MB / 385 MB, free: 8.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002838/0.4406, allocations: 230.5 kB / 385.2 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004869/0.4411, allocations: 104 kB / 385.3 MB, free: 8.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004284/0.4454, allocations: 1.783 MB / 387.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.309e-05/0.4454, allocations: 0 / 387.1 MB, free: 6.508 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002148/0.4456, allocations: 47.94 kB / 387.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001831/0.4458, allocations: 110 kB / 387.3 MB, free: 6.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003444/0.4493, allocations: 1.761 MB / 389 MB, free: 4.582 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.01395/0.4633, allocations: 6.967 MB / 396 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002964/0.4663, allocations: 1.493 MB / 397.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/0.4678, allocations: 0.8822 MB / 398.4 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001012/0.4688, allocations: 0.6607 MB / 399 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.074e-05/0.4689, allocations: 43.56 kB / 399.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of pre-optimization done (n=116): time 3.307e-06/0.4689, allocations: 4 kB / 399.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of matching and sorting (n=128): time 0.01744/0.4864, allocations: 6.711 MB / 405.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.4865, allocations: 175.5 kB / 406 MB, free: 3.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.4884, allocations: 1.084 MB / 407.1 MB, free: 1.938 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.4885, allocations: 49.7 kB / 407.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000483/0.489, allocations: 0.5004 MB / 407.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004771/0.4895, allocations: 437.7 kB / 408 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001396/0.4897, allocations: 28 kB / 408.1 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000179/0.4899, allocations: 365.8 kB / 408.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/0.4913, allocations: 0.8315 MB / 409.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001614/0.493, allocations: 1.053 MB / 410.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001575/0.4946, allocations: 0.8847 MB / 411.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.4946, allocations: 3.938 kB / 411.2 MB, free: 13.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.004912/0.4995, allocations: 2.58 MB / 413.8 MB, free: 11.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001849/0.4997, allocations: 239.7 kB / 414 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/0.4997, allocations: 7.984 kB / 414 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003615/0.5034, allocations: 1.292 MB / 415.3 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.5044, allocations: 215.6 kB / 415.5 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007139/0.5116, allocations: 6.353 MB / 421.9 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.5132, allocations: 91.84 kB / 422 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002738/0.5135, allocations: 59.97 kB / 422 MB, free: 2.422 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.5135, allocations: 4 kB / 422 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004605/0.5181, allocations: 2.338 MB / 424.4 MB, free: 64 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/0.5182, allocations: 4 kB / 424.4 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002576/0.5207, allocations: 1.027 MB / 425.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00103/0.5218, allocations: 227.6 kB / 425.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006726/0.5285, allocations: 6.103 MB / 431.7 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/0.5302, allocations: 95.84 kB / 431.8 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003177/0.5305, allocations: 59.91 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.001145/0.5317, allocations: 460.7 kB / 432.3 MB, free: 7.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004537/0.5321, allocations: 130.4 kB / 432.4 MB, free: 7.602 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005736/0.5379, allocations: 2.799 MB / 435.2 MB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.859e-05/0.5379, allocations: 23.98 kB / 435.3 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.115e-05/0.5379, allocations: 7.984 kB / 435.3 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.538, allocations: 7.969 kB / 435.3 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008957/0.5469, allocations: 4.51 MB / 439.8 MB, free: 160 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.288e-05/0.547, allocations: 0 / 439.8 MB, free: 160 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008184/0.5478, allocations: 159.8 kB / 439.9 MB, free: 0 / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003535/0.5514, allocations: 1.295 MB / 441.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001672/0.5516, allocations: 43.92 kB / 441.3 MB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008242/0.5598, allocations: 6.373 MB / 447.7 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.5598, allocations: 0 / 447.7 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007708/0.5676, allocations: 3.944 MB / 451.6 MB, free: 3.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001145/0.5687, allocations: 439.1 kB / 452 MB, free: 3.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004373/0.5692, allocations: 28 kB / 452.1 MB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/0.5706, allocations: 99.77 kB / 452.2 MB, free: 3.375 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000443/0.5711, allocations: 149 kB / 452.3 MB, free: 3.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/0.5713, allocations: 47.97 kB / 452.3 MB, free: 3.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001506/0.5728, allocations: 0.7415 MB / 453.1 MB, free: 2.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5728, allocations: 4 kB / 453.1 MB, free: 2.426 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004286/0.5771, allocations: 1.054 MB / 454.1 MB, free: 1.371 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.002624/0.5797, allocations: 0.7195 MB / 454.9 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2185/0.7983, allocations: 3.772 MB / 458.6 MB, free: 115.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.7983, allocations: 1.406 kB / 458.6 MB, free: 115.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003323/0.8017, allocations: 1.422 MB / 460.1 MB, free: 115.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003224/0.8049, allocations: 0.5802 MB / 460.6 MB, free: 114.9 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006222/0.8111, allocations: 3.589 MB / 464.2 MB, free: 113.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006536/0.8118, allocations: 1.263 MB / 465.5 MB, free: 112.6 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001989/0.8138, allocations: 0.5728 MB / 466.1 MB, free: 112.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003301/0.8142, allocations: 119.9 kB / 466.2 MB, free: 112.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.021e-06/0.8142, allocations: 0 / 466.2 MB, free: 112.5 MB / 382.1 MB Notification: Performance of Templates: time 0.05964/0.8738, allocations: 42.79 MB / 0.497 GB, free: 72.35 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (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)