Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.00115/0.00115, allocations: 111.6 kB / 16.62 MB, free: 6.812 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.001225/0.001225, allocations: 186 kB / 17.55 MB, free: 5.934 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.503/1.503, allocations: 205.1 MB / 223.4 MB, free: 12.43 MB / 190.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.001582/0.001582, allocations: 51.91 kB / 279.5 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1118, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02989/0.1418, allocations: 30.23 MB / 356.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02136/0.1632, allocations: 15.3 MB / 371.7 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002657/0.1659, allocations: 67.5 kB / 371.7 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002036/0.168, allocations: 0.5245 MB / 372.3 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006398/0.1744, allocations: 2.136 MB / 374.4 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009679/0.1841, allocations: 3.418 MB / 377.8 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2563/0.4404, allocations: 4.155 MB / 382 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003147/0.4436, allocations: 1.147 MB / 383.1 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005438/0.4491, allocations: 1.564 MB / 384.7 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004869/0.454, allocations: 1.731 MB / 386.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006196/0.4546, allocations: 161 kB / 386.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008047/0.4627, allocations: 2.417 MB / 389 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001479/0.4642, allocations: 0.6167 MB / 389.6 MB, free: 12.1 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001931/0.4662, allocations: 0.8732 MB / 390.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01038/0.4766, allocations: 3.706 MB / 394.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.4766, allocations: 0 / 394.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4767, allocations: 0 / 394.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.613e-05/0.4767, allocations: 0 / 394.2 MB, free: 11.57 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008428/0.4851, allocations: 2.196 MB / 396.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.401e-05/0.4852, allocations: 13.44 kB / 396.4 MB, free: 10.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009638/0.4862, allocations: 174.9 kB / 396.6 MB, free: 10.42 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002652/0.4889, allocations: 1.005 MB / 397.6 MB, free: 10.06 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002169/0.4891, allocations: 174.5 kB / 397.7 MB, free: 9.961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002818/0.4894, allocations: 103.4 kB / 397.8 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004207/0.4936, allocations: 1.76 MB / 399.6 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.852e-05/0.4937, allocations: 0 / 399.6 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001997/0.4939, allocations: 44.78 kB / 399.6 MB, free: 9.797 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002267/0.4941, allocations: 114 kB / 399.7 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004228/0.4984, allocations: 1.783 MB / 401.5 MB, free: 9.777 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.01664/0.515, allocations: 6.713 MB / 408.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002611/0.5177, allocations: 1.231 MB / 409.5 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.5192, allocations: 0.7652 MB / 410.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007585/0.5268, allocations: 4.28 MB / 414.5 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.971e-05/0.5269, allocations: 46.31 kB / 414.6 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001266/0.5282, allocations: 199.8 kB / 414.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.857e-06/0.5282, allocations: 0 / 414.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.0241/0.5523, allocations: 5.685 MB / 420.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.5524, allocations: 148.9 kB / 420.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001836/0.5543, allocations: 1.253 MB / 421.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001605/0.5544, allocations: 45.7 kB / 421.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004492/0.5549, allocations: 0.6119 MB / 422.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003665/0.5553, allocations: 384.1 kB / 422.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005091/0.5558, allocations: 295.3 kB / 423.2 MB, free: 9.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.5559, allocations: 305.1 kB / 423.5 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.5571, allocations: 0.7267 MB / 424.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001416/0.5586, allocations: 1.063 MB / 425.3 MB, free: 7.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002467/0.5611, allocations: 1.745 MB / 427 MB, free: 5.547 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.5611, allocations: 4 kB / 427 MB, free: 5.543 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003869/0.5649, allocations: 2.273 MB / 429.3 MB, free: 3.312 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.989e-05/0.565, allocations: 15.12 kB / 429.3 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.095e-05/0.565, allocations: 13.48 kB / 429.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007181/0.5722, allocations: 1.3 MB / 430.6 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/0.5736, allocations: 292.5 kB / 430.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/0.5763, allocations: 1.609 MB / 432.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/0.5781, allocations: 83.8 kB / 432.6 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002192/0.5784, allocations: 71.97 kB / 432.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001794/0.5802, allocations: 0.9762 MB / 433.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001507/0.5817, allocations: 1.058 MB / 434.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002424/0.5841, allocations: 1.725 MB / 436.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.997e-06/0.5842, allocations: 4 kB / 436.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004131/0.5883, allocations: 2.195 MB / 438.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.5883, allocations: 8 kB / 438.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.31e-05/0.5884, allocations: 12 kB / 438.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006764/0.5952, allocations: 1.109 MB / 439.7 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001726/0.5969, allocations: 302.6 kB / 440 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/0.5994, allocations: 1.448 MB / 441.5 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.6012, allocations: 83.8 kB / 441.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.6014, allocations: 79.95 kB / 441.6 MB, free: 6.742 MB / 350.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.0006923/0.6021, allocations: 262 kB / 441.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003636/0.6025, allocations: 146.2 kB / 442 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004195/0.6067, allocations: 2.094 MB / 444.1 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.6067, allocations: 12 kB / 444.1 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.6067, allocations: 0 / 444.1 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.6068, allocations: 15.91 kB / 444.2 MB, free: 4.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005945/0.6127, allocations: 3.575 MB / 447.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.874e-06/0.6127, allocations: 0 / 447.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009864/0.6137, allocations: 193.6 kB / 447.9 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002508/0.6163, allocations: 0.8635 MB / 448.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.6164, allocations: 35.98 kB / 448.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/0.6188, allocations: 1.614 MB / 450.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6188, allocations: 0 / 450.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004877/0.6237, allocations: 2.906 MB / 453.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/0.6249, allocations: 395.1 kB / 453.7 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003822/0.6253, allocations: 28 kB / 453.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.6267, allocations: 67.97 kB / 453.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002704/0.627, allocations: 105.2 kB / 453.9 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001581/0.6271, allocations: 51.97 kB / 454 MB, free: 10.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001613/0.6287, allocations: 0.8479 MB / 454.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6288, allocations: 0 / 454.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004741/0.6335, allocations: 1.16 MB / 456 MB, free: 8.324 MB / 366.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.00469/0.6382, allocations: 0.8539 MB / 456.8 MB, free: 7.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.01043/0.6487, allocations: 3.296 MB / 460.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/0.6488, allocations: 0 / 460.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002239/0.651, allocations: 0.8711 MB / 461 MB, free: 3.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00439/0.6554, allocations: 0.6611 MB / 461.7 MB, free: 2.812 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009748/0.6652, allocations: 3.578 MB / 465.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001419/0.6667, allocations: 1.292 MB / 466.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003039/0.6697, allocations: 0.5929 MB / 467.1 MB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006287/0.6704, allocations: 131.4 kB / 467.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6704, allocations: 0 / 467.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of Templates: time 0.07702/0.7474, allocations: 43.58 MB / 0.4989 GB, free: 1.734 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)