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.00663/0.00663, allocations: 97.62 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.001415/0.001415, allocations: 183.5 kB / 16.67 MB, free: 5.973 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.514/1.514, allocations: 205.1 MB / 222.6 MB, free: 4.496 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.00119/0.00119, allocations: 49.8 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1077, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.03006/0.1378, allocations: 28.69 MB / 401.8 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02625/0.1641, allocations: 15.02 MB / 416.9 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002411/0.1665, allocations: 47.69 kB / 416.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002438/0.1691, allocations: 0.5862 MB / 417.5 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008182/0.1773, allocations: 2.286 MB / 419.8 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01312/0.1905, allocations: 3.736 MB / 423.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008569/0.199, allocations: 4.139 MB / 427.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003083/0.2022, allocations: 1.156 MB / 428.8 MB, free: 9.461 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004401/0.2066, allocations: 1.542 MB / 430.4 MB, free: 7.914 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004165/0.2108, allocations: 1.659 MB / 432 MB, free: 6.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009632/0.2118, allocations: 164 kB / 432.2 MB, free: 6.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007865/0.2197, allocations: 2.418 MB / 434.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001611/0.2213, allocations: 0.6155 MB / 435.2 MB, free: 3.051 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002333/0.2237, allocations: 0.875 MB / 436.1 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01034/0.234, allocations: 3.734 MB / 439.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/0.2341, allocations: 0 / 439.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2341, allocations: 0 / 439.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001028/0.2342, allocations: 0 / 439.8 MB, free: 14.43 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.008022/0.2423, allocations: 2.262 MB / 442.1 MB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.2423, allocations: 16.03 kB / 442.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001016/0.2433, allocations: 183 kB / 442.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002783/0.2461, allocations: 1.066 MB / 443.3 MB, free: 10.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002247/0.2464, allocations: 183 kB / 443.5 MB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003305/0.2467, allocations: 107.9 kB / 443.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003616/0.2504, allocations: 1.754 MB / 445.4 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.702e-05/0.2504, allocations: 0 / 445.4 MB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000187/0.2506, allocations: 47.97 kB / 445.4 MB, free: 8.645 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001777/0.2508, allocations: 113.9 kB / 445.5 MB, free: 8.531 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003413/0.2542, allocations: 1.792 MB / 447.3 MB, free: 6.73 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.2558/0.51, allocations: 6.691 MB / 454 MB, free: 72.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003553/0.5136, allocations: 1.238 MB / 455.3 MB, free: 72.81 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001937/0.5156, allocations: 0.7645 MB / 456 MB, free: 72.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008186/0.5238, allocations: 4.275 MB / 460.3 MB, free: 69.92 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.5239, allocations: 46.17 kB / 460.3 MB, free: 69.87 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008232/0.5247, allocations: 180 kB / 460.5 MB, free: 69.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.827e-06/0.5247, allocations: 0 / 460.5 MB, free: 69.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.01878/0.5435, allocations: 5.721 MB / 466.2 MB, free: 67.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.61e-05/0.5436, allocations: 143.4 kB / 466.4 MB, free: 67.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/0.5456, allocations: 1.258 MB / 467.6 MB, free: 67.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001554/0.5457, allocations: 49.08 kB / 467.7 MB, free: 67.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004234/0.5462, allocations: 0.6193 MB / 468.3 MB, free: 66.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003322/0.5465, allocations: 408.6 kB / 468.7 MB, free: 66.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004776/0.547, allocations: 295.2 kB / 469 MB, free: 66.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.472e-05/0.5471, allocations: 302.1 kB / 469.3 MB, free: 65.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/0.5484, allocations: 0.7196 MB / 470 MB, free: 65.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.5498, allocations: 1.067 MB / 471.1 MB, free: 64.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002415/0.5522, allocations: 1.744 MB / 472.8 MB, free: 63.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.5522, allocations: 7.75 kB / 472.8 MB, free: 63.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.003621/0.5558, allocations: 2.289 MB / 475.1 MB, free: 62.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.5559, allocations: 11.81 kB / 475.1 MB, free: 62.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.621e-05/0.5559, allocations: 11.91 kB / 475.1 MB, free: 62.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006334/0.5622, allocations: 1.283 MB / 476.4 MB, free: 61.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.5634, allocations: 298.8 kB / 476.7 MB, free: 61.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/0.5655, allocations: 1.596 MB / 478.3 MB, free: 60.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001359/0.5669, allocations: 59.41 kB / 478.4 MB, free: 60.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001399/0.567, allocations: 75.52 kB / 478.4 MB, free: 60.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001503/0.5685, allocations: 0.9766 MB / 479.4 MB, free: 60.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001158/0.5697, allocations: 1.055 MB / 480.5 MB, free: 59.24 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002071/0.5718, allocations: 1.725 MB / 482.2 MB, free: 57.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.245e-06/0.5718, allocations: 4 kB / 482.2 MB, free: 57.83 MB / 382.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003247/0.575, allocations: 2.207 MB / 484.4 MB, free: 55.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.5751, allocations: 12.03 kB / 484.4 MB, free: 55.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.5751, allocations: 16 kB / 484.4 MB, free: 55.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005448/0.5805, allocations: 1.097 MB / 485.5 MB, free: 54.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.5817, allocations: 303.5 kB / 485.8 MB, free: 54.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001547/0.5832, allocations: 1.462 MB / 487.3 MB, free: 52.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.5846, allocations: 55.97 kB / 487.3 MB, free: 52.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001215/0.5847, allocations: 75.84 kB / 487.4 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.0004526/0.5851, allocations: 268.7 kB / 487.7 MB, free: 52.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002509/0.5854, allocations: 151.1 kB / 487.8 MB, free: 52.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003386/0.5888, allocations: 2.093 MB / 489.9 MB, free: 50.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.5888, allocations: 19.66 kB / 489.9 MB, free: 50.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.5888, allocations: 6.156 kB / 489.9 MB, free: 50.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.5889, allocations: 3.984 kB / 489.9 MB, free: 50.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00453/0.5934, allocations: 3.579 MB / 493.5 MB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.5934, allocations: 0 / 493.5 MB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008143/0.5942, allocations: 192.9 kB / 493.7 MB, free: 46.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/0.5963, allocations: 0.8624 MB / 494.6 MB, free: 45.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.679e-05/0.5963, allocations: 31.98 kB / 494.6 MB, free: 45.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.598, allocations: 1.622 MB / 496.2 MB, free: 43.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.598, allocations: 3.938 kB / 496.2 MB, free: 43.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003517/0.6016, allocations: 2.905 MB / 499.1 MB, free: 40.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006125/0.6022, allocations: 400.6 kB / 499.5 MB, free: 40.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000201/0.6024, allocations: 30.52 kB / 499.6 MB, free: 40.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008681/0.6033, allocations: 59.94 kB / 499.6 MB, free: 40.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001997/0.6035, allocations: 101.1 kB / 499.7 MB, free: 40.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.6036, allocations: 51.97 kB / 499.8 MB, free: 40.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008862/0.6045, allocations: 0.8441 MB / 0.4889 GB, free: 39.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6045, allocations: 0 / 0.4889 GB, free: 39.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002622/0.6071, allocations: 1.172 MB / 0.49 GB, free: 38.28 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.001574/0.6087, allocations: 0.8689 MB / 0.4909 GB, free: 37.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00506/0.6138, allocations: 2.859 MB / 0.4937 GB, free: 34.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.6138, allocations: 8 kB / 0.4937 GB, free: 34.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.6152, allocations: 0.8752 MB / 0.4945 GB, free: 33.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/0.6177, allocations: 0.6549 MB / 0.4952 GB, free: 33.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004122/0.6219, allocations: 3.104 MB / 0.4982 GB, free: 29.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005348/0.6224, allocations: 1.292 MB / 0.4995 GB, free: 28.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001468/0.6239, allocations: 0.5823 MB / 0.5 GB, free: 28.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002965/0.6242, allocations: 131.4 kB / 0.5002 GB, free: 27.92 MB / 382.1 MB Notification: Performance of SimCode: time 2.204e-06/0.6242, allocations: 3.938 kB / 0.5002 GB, free: 27.92 MB / 382.1 MB Notification: Performance of Templates: time 0.0561/0.6803, allocations: 44.21 MB / 0.5433 GB, free: 15.65 MB / 414.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)