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.007387/0.007387, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001647/0.001647, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.489/1.489, allocations: 205.1 MB / 222.5 MB, free: 4.379 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.001719/0.001719, allocations: 50.23 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1103, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.TanksWithOverflow): time 0.02983/0.1401, allocations: 30.15 MB / 403.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01486/0.155, allocations: 10.27 MB / 413.6 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001732/0.1568, allocations: 39.75 kB / 413.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001722/0.1586, allocations: 469 kB / 414.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005709/0.1643, allocations: 1.866 MB / 415.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00706/0.1714, allocations: 2.747 MB / 418.7 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005616/0.177, allocations: 3.682 MB / 422.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001769/0.1788, allocations: 1.146 MB / 423.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003346/0.1822, allocations: 1.503 MB / 425 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002644/0.1849, allocations: 1.425 MB / 426.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003443/0.1852, allocations: 156 kB / 426.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004668/0.1899, allocations: 2.075 MB / 428.7 MB, free: 9.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007024/0.1906, allocations: 0.5728 MB / 429.2 MB, free: 9.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001224/0.1919, allocations: 0.805 MB / 430.1 MB, free: 8.211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006199/0.1981, allocations: 3.347 MB / 433.4 MB, free: 4.855 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1981, allocations: 0 / 433.4 MB, free: 4.855 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.1981, allocations: 0 / 433.4 MB, free: 4.855 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.368e-05/0.1982, allocations: 0 / 433.4 MB, free: 4.855 MB / 366.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.005338/0.2035, allocations: 2.045 MB / 435.4 MB, free: 2.754 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.2036, allocations: 16.03 kB / 435.5 MB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005235/0.2041, allocations: 166.2 kB / 435.6 MB, free: 2.574 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001561/0.2057, allocations: 0.9409 MB / 436.6 MB, free: 1.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.2059, allocations: 238.5 kB / 436.8 MB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/0.2061, allocations: 99.89 kB / 436.9 MB, free: 1.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002686/0.2088, allocations: 1.794 MB / 438.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.2088, allocations: 0 / 438.7 MB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.209, allocations: 43.97 kB / 438.7 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000134/0.2091, allocations: 106 kB / 438.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002794/0.2119, allocations: 1.78 MB / 440.6 MB, free: 13.44 MB / 382.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.01159/0.2235, allocations: 6.916 MB / 447.5 MB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.2261, allocations: 1.474 MB / 449 MB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001398/0.2275, allocations: 0.8783 MB / 449.9 MB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009554/0.2285, allocations: 0.6529 MB / 450.5 MB, free: 3.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.2285, allocations: 47.56 kB / 450.6 MB, free: 3.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.487e-06/0.2285, allocations: 0 / 450.6 MB, free: 3.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=128): time 0.2983/0.5268, allocations: 6.612 MB / 457.2 MB, free: 73.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.649e-05/0.527, allocations: 174.5 kB / 457.4 MB, free: 73.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002078/0.529, allocations: 1.093 MB / 458.5 MB, free: 72.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001991/0.5293, allocations: 52.84 kB / 458.5 MB, free: 72.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005152/0.5298, allocations: 0.4968 MB / 459 MB, free: 72.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005388/0.5303, allocations: 435.4 kB / 459.4 MB, free: 72.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007476/0.5311, allocations: 268 kB / 459.7 MB, free: 71.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.5313, allocations: 369 kB / 460.1 MB, free: 71.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001798/0.5331, allocations: 0.8505 MB / 460.9 MB, free: 71.35 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001903/0.535, allocations: 1.079 MB / 462 MB, free: 70.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003377/0.5384, allocations: 1.811 MB / 463.8 MB, free: 69.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/0.5384, allocations: 1.281 kB / 463.8 MB, free: 69.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005593/0.544, allocations: 2.619 MB / 466.4 MB, free: 68.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.014e-05/0.5441, allocations: 12.28 kB / 466.4 MB, free: 68.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.674e-05/0.5441, allocations: 4.594 kB / 466.4 MB, free: 68.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003676/0.5478, allocations: 1.299 MB / 467.7 MB, free: 68.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.5489, allocations: 220.8 kB / 467.9 MB, free: 68.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005776/0.5547, allocations: 6.718 MB / 474.7 MB, free: 63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/0.5564, allocations: 67.11 kB / 474.7 MB, free: 62.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/0.5566, allocations: 62.91 kB / 474.8 MB, free: 62.94 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001816/0.5584, allocations: 1.102 MB / 475.9 MB, free: 62.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001348/0.5598, allocations: 1.056 MB / 477 MB, free: 61.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002466/0.5622, allocations: 1.776 MB / 478.7 MB, free: 60.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.154e-06/0.5623, allocations: 2.25 kB / 478.7 MB, free: 60.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=170) (initialization_lambda0): time 0.004307/0.5666, allocations: 2.501 MB / 481.2 MB, free: 59.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.5666, allocations: 9.969 kB / 481.2 MB, free: 59.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/0.5666, allocations: 3.719 kB / 481.2 MB, free: 59.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00228/0.5689, allocations: 1.025 MB / 482.3 MB, free: 58.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009443/0.5699, allocations: 227.6 kB / 482.5 MB, free: 58.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005446/0.5753, allocations: 6.468 MB / 489 MB, free: 51.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/0.5771, allocations: 68.59 kB / 489 MB, free: 51.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001683/0.5773, allocations: 59.97 kB / 489.1 MB, free: 51.18 MB / 382.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 (hysteresis.y,$PRE.hysteresis.y,lowerTank.inFlow[2],lowerTank.inFlow[1],lowerTank.regularFlow[2],lowerTank.regularFlow[1],upperTank.inFlow[3],upperTank.inFlow[2],upperTank.inFlow[1],upperTank.regularFlow[3],upperTank.regularFlow[2],upperTank.regularFlow[1]) * 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,3), (4,11), (4,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005512/0.5779, allocations: 259.3 kB / 489.3 MB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003743/0.5782, allocations: 134.3 kB / 489.5 MB, free: 50.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004326/0.5826, allocations: 2.806 MB / 492.3 MB, free: 47.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.855e-05/0.5826, allocations: 17.42 kB / 492.3 MB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.5826, allocations: 0 / 492.3 MB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.5826, allocations: 11.91 kB / 492.3 MB, free: 47.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006337/0.589, allocations: 4.536 MB / 496.8 MB, free: 43.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.589, allocations: 3.906 kB / 496.8 MB, free: 43.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007565/0.5898, allocations: 151.8 kB / 497 MB, free: 43.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002734/0.5925, allocations: 1.285 MB / 498.3 MB, free: 41.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.5927, allocations: 35.98 kB / 498.3 MB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005074/0.5977, allocations: 6.749 MB / 0.4932 GB, free: 34.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.5978, allocations: 0 / 0.4932 GB, free: 34.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005604/0.6034, allocations: 3.957 MB / 0.4971 GB, free: 30.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.6045, allocations: 423.2 kB / 0.4975 GB, free: 30.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.6047, allocations: 28 kB / 0.4975 GB, free: 30.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.6057, allocations: 63.94 kB / 0.4976 GB, free: 30.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003532/0.6061, allocations: 145 kB / 0.4977 GB, free: 30.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.6062, allocations: 51.97 kB / 0.4978 GB, free: 30.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008424/0.6071, allocations: 0.7532 MB / 0.4985 GB, free: 29.37 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6071, allocations: 0 / 0.4985 GB, free: 29.37 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002827/0.6099, allocations: 1.054 MB / 0.4995 GB, free: 28.4 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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,4), (4,14), (4,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001746/0.6117, allocations: 0.7374 MB / 0.5003 GB, free: 27.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006994/0.6187, allocations: 3.837 MB / 0.504 GB, free: 23.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.894e-06/0.6187, allocations: 0 / 0.504 GB, free: 23.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002727/0.6214, allocations: 1.436 MB / 0.5054 GB, free: 22.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002926/0.6244, allocations: 0.6254 MB / 0.506 GB, free: 21.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005754/0.6302, allocations: 3.09 MB / 0.509 GB, free: 18.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006529/0.6308, allocations: 1.264 MB / 0.5103 GB, free: 17.42 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001752/0.6326, allocations: 0.5769 MB / 0.5108 GB, free: 16.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003442/0.633, allocations: 123.3 kB / 0.5109 GB, free: 16.72 MB / 382.1 MB Notification: Performance of SimCode: time 1.633e-06/0.633, allocations: 0 / 0.5109 GB, free: 16.72 MB / 382.1 MB Notification: Performance of Templates: time 0.07763/0.7106, allocations: 46.91 MB / 0.5568 GB, free: 1.73 MB / 414.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)