Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.007999/0.007999, allocations: 103.7 kB / 15.73 MB, free: 6.051 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.001455/0.001455, allocations: 197 kB / 16.68 MB, free: 5.98 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.553/1.553, allocations: 205.1 MB / 222.5 MB, free: 4.395 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.001344/0.001344, allocations: 59.16 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1129, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03029/0.1433, allocations: 28.68 MB / 401.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02457/0.1679, allocations: 15.03 MB / 416.9 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00215/0.1701, allocations: 43.75 kB / 416.9 MB, free: 5.414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002077/0.1722, allocations: 0.5901 MB / 417.5 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007671/0.1799, allocations: 2.333 MB / 419.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01077/0.1907, allocations: 3.72 MB / 423.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007449/0.1982, allocations: 4.147 MB / 427.7 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003198/0.2014, allocations: 1.164 MB / 428.9 MB, free: 9.398 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004834/0.2063, allocations: 1.565 MB / 430.4 MB, free: 7.828 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00415/0.2105, allocations: 1.662 MB / 432.1 MB, free: 6.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001277/0.2118, allocations: 168 kB / 432.3 MB, free: 5.996 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008717/0.2206, allocations: 2.414 MB / 434.7 MB, free: 3.578 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001616/0.2222, allocations: 0.6194 MB / 435.3 MB, free: 2.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002692/0.225, allocations: 0.8672 MB / 436.2 MB, free: 2.086 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.2358, allocations: 3.721 MB / 439.9 MB, free: 14.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.2359, allocations: 4 kB / 439.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.592e-06/0.2359, allocations: 0 / 439.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001156/0.236, allocations: 0 / 439.9 MB, free: 14.35 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.008246/0.2443, allocations: 2.204 MB / 442.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.2443, allocations: 8.031 kB / 442.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001124/0.2455, allocations: 174.1 kB / 442.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002732/0.2482, allocations: 1.073 MB / 443.3 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002155/0.2485, allocations: 179 kB / 443.5 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004173/0.2489, allocations: 103.9 kB / 443.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003707/0.2526, allocations: 1.749 MB / 445.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.348e-05/0.2527, allocations: 0 / 445.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001802/0.2528, allocations: 47.95 kB / 445.4 MB, free: 8.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001961/0.253, allocations: 117.9 kB / 445.5 MB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0033/0.2564, allocations: 1.78 MB / 447.3 MB, free: 6.746 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.2671/0.5235, allocations: 6.683 MB / 454 MB, free: 73.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002886/0.5264, allocations: 1.237 MB / 455.2 MB, free: 72.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.5277, allocations: 0.7621 MB / 456 MB, free: 72.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006274/0.534, allocations: 4.272 MB / 460.3 MB, free: 70.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.5341, allocations: 45.89 kB / 460.3 MB, free: 70.05 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007917/0.5349, allocations: 177.6 kB / 460.5 MB, free: 70.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.316e-06/0.5349, allocations: 0 / 460.5 MB, free: 70.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.01927/0.5542, allocations: 5.692 MB / 466.2 MB, free: 68.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.692e-05/0.5543, allocations: 146.3 kB / 466.3 MB, free: 67.92 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002091/0.5564, allocations: 1.251 MB / 467.6 MB, free: 67.42 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.5565, allocations: 54.8 kB / 467.6 MB, free: 67.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004601/0.557, allocations: 0.6128 MB / 468.2 MB, free: 66.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003821/0.5574, allocations: 387.2 kB / 468.6 MB, free: 66.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000534/0.5579, allocations: 293.7 kB / 468.9 MB, free: 66.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.571e-05/0.558, allocations: 306.7 kB / 469.2 MB, free: 66.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.5593, allocations: 0.7215 MB / 469.9 MB, free: 65.65 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.5608, allocations: 1.063 MB / 471 MB, free: 64.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/0.5633, allocations: 1.746 MB / 472.7 MB, free: 63.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.5633, allocations: 3.938 kB / 472.7 MB, free: 63.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003519/0.5668, allocations: 2.28 MB / 475 MB, free: 62.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.5669, allocations: 19.58 kB / 475 MB, free: 62.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/0.5669, allocations: 7.906 kB / 475 MB, free: 62.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006671/0.5736, allocations: 1.28 MB / 476.3 MB, free: 62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.5748, allocations: 303.3 kB / 476.6 MB, free: 61.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.5771, allocations: 1.602 MB / 478.2 MB, free: 60.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.5786, allocations: 52.91 kB / 478.3 MB, free: 60.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/0.5787, allocations: 68.28 kB / 478.3 MB, free: 60.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001598/0.5804, allocations: 0.9795 MB / 479.3 MB, free: 60.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001294/0.5817, allocations: 1.062 MB / 480.4 MB, free: 59.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002389/0.5841, allocations: 1.727 MB / 482.1 MB, free: 58.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.197e-05/0.5841, allocations: 4 kB / 482.1 MB, free: 58.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003451/0.5875, allocations: 2.199 MB / 484.3 MB, free: 55.95 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.5876, allocations: 11.91 kB / 484.3 MB, free: 55.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.5876, allocations: 16.03 kB / 484.3 MB, free: 55.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005572/0.5932, allocations: 1.094 MB / 485.4 MB, free: 54.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.5943, allocations: 312.9 kB / 485.7 MB, free: 54.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/0.596, allocations: 1.442 MB / 487.2 MB, free: 53.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/0.5974, allocations: 67.95 kB / 487.2 MB, free: 53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001698/0.5976, allocations: 79.84 kB / 487.3 MB, free: 52.93 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.0005805/0.5982, allocations: 256.2 kB / 487.6 MB, free: 52.67 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000548/0.5988, allocations: 146.2 kB / 487.7 MB, free: 52.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003917/0.6027, allocations: 2.088 MB / 489.8 MB, free: 50.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.6027, allocations: 19.66 kB / 489.8 MB, free: 50.42 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.6028, allocations: 0 / 489.8 MB, free: 50.42 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.739e-05/0.6028, allocations: 7.969 kB / 489.8 MB, free: 50.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005638/0.6084, allocations: 3.583 MB / 493.4 MB, free: 46.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.496e-06/0.6084, allocations: 0 / 493.4 MB, free: 46.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008997/0.6094, allocations: 193 kB / 493.6 MB, free: 46.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002133/0.6115, allocations: 0.8611 MB / 494.5 MB, free: 45.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000116/0.6116, allocations: 31.98 kB / 494.5 MB, free: 45.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001841/0.6135, allocations: 1.618 MB / 496.1 MB, free: 44.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.6135, allocations: 3.938 kB / 496.1 MB, free: 44.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003986/0.6175, allocations: 2.915 MB / 499 MB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009261/0.6184, allocations: 391.1 kB / 499.4 MB, free: 40.76 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004016/0.6188, allocations: 20.88 kB / 499.4 MB, free: 40.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001218/0.6201, allocations: 61.16 kB / 499.5 MB, free: 40.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002332/0.6203, allocations: 105.1 kB / 499.6 MB, free: 40.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/0.6205, allocations: 51.97 kB / 499.6 MB, free: 40.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001308/0.6218, allocations: 0.8441 MB / 0.4888 GB, free: 39.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6218, allocations: 0 / 0.4888 GB, free: 39.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003689/0.6255, allocations: 1.155 MB / 0.4899 GB, free: 38.63 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.002282/0.6278, allocations: 0.8486 MB / 0.4907 GB, free: 37.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005915/0.6337, allocations: 2.855 MB / 0.4935 GB, free: 35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.6337, allocations: 4 kB / 0.4935 GB, free: 35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001622/0.6354, allocations: 0.8871 MB / 0.4944 GB, free: 34.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003403/0.6388, allocations: 0.6525 MB / 0.495 GB, free: 33.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006039/0.6448, allocations: 3.071 MB / 0.498 GB, free: 30.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008112/0.6457, allocations: 1.3 MB / 0.4993 GB, free: 29.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002005/0.6477, allocations: 0.5784 MB / 0.4998 GB, free: 28.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004062/0.6481, allocations: 135.4 kB / 0.5 GB, free: 28.34 MB / 382.1 MB Notification: Performance of SimCode: time 1.753e-06/0.6481, allocations: 3.938 kB / 0.5 GB, free: 28.34 MB / 382.1 MB Notification: Performance of Templates: time 0.06781/0.7159, allocations: 44.2 MB / 0.5431 GB, free: 80 kB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)