Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008607/0.008607, allocations: 109.1 kB / 15.74 MB, free: 6.016 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.001264/0.001264, allocations: 188.5 kB / 16.67 MB, free: 5.941 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.45/1.45, allocations: 205.1 MB / 222.6 MB, free: 4.543 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.001123/0.001123, allocations: 53.94 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1051, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02933/0.1345, allocations: 28.68 MB / 401.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02088/0.1554, allocations: 15.02 MB / 416.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002774/0.1582, allocations: 43.75 kB / 416.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002156/0.1605, allocations: 0.5901 MB / 417.5 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007228/0.1677, allocations: 2.29 MB / 419.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01013/0.1778, allocations: 3.732 MB / 423.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006978/0.1848, allocations: 4.135 MB / 427.7 MB, free: 10.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002049/0.1869, allocations: 1.16 MB / 428.8 MB, free: 9.449 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003428/0.1904, allocations: 1.569 MB / 430.4 MB, free: 7.875 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003174/0.1936, allocations: 1.663 MB / 432.1 MB, free: 6.207 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004263/0.194, allocations: 160 kB / 432.2 MB, free: 6.051 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005265/0.1993, allocations: 2.414 MB / 434.6 MB, free: 3.633 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000934/0.2003, allocations: 0.6155 MB / 435.2 MB, free: 3.016 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001409/0.2017, allocations: 0.8711 MB / 436.1 MB, free: 2.141 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007559/0.2093, allocations: 3.725 MB / 439.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2093, allocations: 0 / 439.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2093, allocations: 0 / 439.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.787e-05/0.2093, allocations: 0 / 439.8 MB, free: 14.41 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005685/0.215, allocations: 2.204 MB / 442 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.2151, allocations: 8.031 kB / 442 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006191/0.2157, allocations: 174.1 kB / 442.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00199/0.2177, allocations: 1.073 MB / 443.3 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001747/0.2179, allocations: 179 kB / 443.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001871/0.2181, allocations: 99.97 kB / 443.6 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00319/0.2213, allocations: 1.749 MB / 445.3 MB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.259e-05/0.2214, allocations: 4 kB / 445.3 MB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.2215, allocations: 43.97 kB / 445.4 MB, free: 8.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00017/0.2217, allocations: 117.9 kB / 445.5 MB, free: 8.594 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003175/0.2249, allocations: 1.784 MB / 447.3 MB, free: 6.801 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.2469/0.4718, allocations: 6.681 MB / 453.9 MB, free: 72.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002903/0.4748, allocations: 1.242 MB / 455.2 MB, free: 72.76 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001596/0.4764, allocations: 0.7626 MB / 455.9 MB, free: 72.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006725/0.4831, allocations: 4.277 MB / 460.2 MB, free: 69.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/0.4832, allocations: 45.92 kB / 460.3 MB, free: 69.84 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007551/0.4839, allocations: 172.7 kB / 460.4 MB, free: 69.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.877e-06/0.484, allocations: 2.062 kB / 460.4 MB, free: 69.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.01947/0.5034, allocations: 5.696 MB / 466.1 MB, free: 67.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.64e-05/0.5036, allocations: 142.3 kB / 466.3 MB, free: 67.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.5059, allocations: 1.259 MB / 467.5 MB, free: 67.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.5061, allocations: 48.73 kB / 467.6 MB, free: 67.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004904/0.5066, allocations: 0.6113 MB / 468.2 MB, free: 66.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003602/0.5069, allocations: 385.4 kB / 468.6 MB, free: 66.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006205/0.5076, allocations: 295.9 kB / 468.8 MB, free: 66.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.227e-05/0.5076, allocations: 305.1 kB / 469.1 MB, free: 65.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.5089, allocations: 0.7194 MB / 469.9 MB, free: 65.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00168/0.5106, allocations: 1.064 MB / 470.9 MB, free: 64.62 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00286/0.5135, allocations: 1.753 MB / 472.7 MB, free: 63.48 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.031e-05/0.5135, allocations: 3.938 kB / 472.7 MB, free: 63.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003788/0.5173, allocations: 2.279 MB / 475 MB, free: 62.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.796e-05/0.5174, allocations: 11.88 kB / 475 MB, free: 62.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.325e-05/0.5174, allocations: 11.89 kB / 475 MB, free: 62.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006493/0.5239, allocations: 1.279 MB / 476.3 MB, free: 61.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001123/0.525, allocations: 298 kB / 476.6 MB, free: 61.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.5271, allocations: 1.611 MB / 478.2 MB, free: 60.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.5285, allocations: 58.78 kB / 478.2 MB, free: 60.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.5287, allocations: 70.59 kB / 478.3 MB, free: 60.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001505/0.5303, allocations: 0.9783 MB / 479.3 MB, free: 59.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00124/0.5315, allocations: 1.054 MB / 480.3 MB, free: 59.15 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002287/0.5338, allocations: 1.729 MB / 482.1 MB, free: 57.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.015e-05/0.5338, allocations: 4 kB / 482.1 MB, free: 57.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003408/0.5372, allocations: 2.195 MB / 484.3 MB, free: 55.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.5373, allocations: 15.91 kB / 484.3 MB, free: 55.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.904e-05/0.5373, allocations: 8 kB / 484.3 MB, free: 55.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005671/0.543, allocations: 1.102 MB / 485.4 MB, free: 54.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.5443, allocations: 307.5 kB / 485.7 MB, free: 54.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001827/0.5461, allocations: 1.45 MB / 487.1 MB, free: 52.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/0.5478, allocations: 59.95 kB / 487.2 MB, free: 52.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002307/0.5481, allocations: 71.91 kB / 487.3 MB, free: 52.59 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 (tank3.inFlow[1],tank3.regularFlow[1],tank2.inFlow[1],tank2.regularFlow[1],tank1.inFlow[1],tank1.regularFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,18)} Notification: Performance of prepare postOptimizeDAE: time 0.0006566/0.5487, allocations: 279.8 kB / 487.5 MB, free: 52.3 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006864/0.5494, allocations: 146.2 kB / 487.7 MB, free: 52.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004113/0.5535, allocations: 2.079 MB / 489.8 MB, free: 50.08 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.5536, allocations: 19.94 kB / 489.8 MB, free: 50.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.5536, allocations: 4 kB / 489.8 MB, free: 50.06 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.415e-05/0.5536, allocations: 7.969 kB / 489.8 MB, free: 50.05 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005909/0.5595, allocations: 3.566 MB / 493.4 MB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.5595, allocations: 5.203 kB / 493.4 MB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000901/0.5605, allocations: 199.3 kB / 493.6 MB, free: 46.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00214/0.5626, allocations: 0.86 MB / 494.4 MB, free: 45.41 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/0.5628, allocations: 35.98 kB / 494.4 MB, free: 45.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001924/0.5647, allocations: 1.606 MB / 496.1 MB, free: 43.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5647, allocations: 3.938 kB / 496.1 MB, free: 43.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004164/0.5689, allocations: 2.916 MB / 499 MB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/0.5699, allocations: 399.1 kB / 499.4 MB, free: 40.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004206/0.5703, allocations: 26.52 kB / 499.4 MB, free: 40.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.5716, allocations: 55.95 kB / 499.4 MB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002073/0.5718, allocations: 97.11 kB / 499.5 MB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/0.5719, allocations: 52.16 kB / 499.6 MB, free: 40.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001164/0.5731, allocations: 0.8441 MB / 0.4887 GB, free: 39.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5731, allocations: 7.938 kB / 0.4887 GB, free: 39.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003544/0.5767, allocations: 1.157 MB / 0.4898 GB, free: 38.27 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T,tank3.level,tank3.medium.T) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002361/0.579, allocations: 0.8475 MB / 0.4907 GB, free: 37.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005973/0.585, allocations: 2.862 MB / 0.4935 GB, free: 34.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/0.5851, allocations: 0 / 0.4935 GB, free: 34.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001689/0.5868, allocations: 0.879 MB / 0.4943 GB, free: 33.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/0.5904, allocations: 0.6595 MB / 0.495 GB, free: 33.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005815/0.5963, allocations: 3.066 MB / 0.498 GB, free: 30.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000818/0.5971, allocations: 1.292 MB / 0.4992 GB, free: 28.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001938/0.5991, allocations: 0.5861 MB / 0.4998 GB, free: 28.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004182/0.5995, allocations: 127.4 kB / 0.4999 GB, free: 28.09 MB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5995, allocations: 4 kB / 0.4999 GB, free: 28.08 MB / 382.1 MB Notification: Performance of Templates: time 0.06733/0.6668, allocations: 45.05 MB / 0.5439 GB, free: 14.98 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)