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.007573/0.007573, allocations: 97.2 kB / 15.73 MB, free: 5.547 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.001273/0.001273, allocations: 189.8 kB / 16.67 MB, free: 5.48 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.467/1.467, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001364/0.001364, allocations: 47.94 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.12, allocations: 46.62 MB / 373.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.2565/0.3766, allocations: 28.67 MB / 401.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0225/0.3991, allocations: 15.02 MB / 416.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002714/0.4018, allocations: 43.84 kB / 416.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00186/0.4038, allocations: 0.586 MB / 417.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007841/0.4116, allocations: 2.291 MB / 419.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0112/0.4228, allocations: 3.741 MB / 423.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00657/0.4294, allocations: 4.141 MB / 427.7 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003437/0.4329, allocations: 1.152 MB / 428.8 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00385/0.4368, allocations: 1.542 MB / 430.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002515/0.4393, allocations: 1.666 MB / 432 MB, free: 4.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004131/0.4397, allocations: 160 kB / 432.2 MB, free: 4.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005616/0.4454, allocations: 2.41 MB / 434.6 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007548/0.4461, allocations: 0.6155 MB / 435.2 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001286/0.4474, allocations: 0.8711 MB / 436.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007129/0.4546, allocations: 3.75 MB / 439.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.4546, allocations: 0 / 439.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.4546, allocations: 0 / 439.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.167e-05/0.4546, allocations: 0 / 439.8 MB, free: 12.88 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.004949/0.4596, allocations: 2.262 MB / 442.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.4596, allocations: 8.031 kB / 442.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005265/0.4602, allocations: 187 kB / 442.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.4617, allocations: 1.074 MB / 443.3 MB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.4619, allocations: 180.1 kB / 443.5 MB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/0.4621, allocations: 95.97 kB / 443.6 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002601/0.4647, allocations: 1.757 MB / 445.4 MB, free: 7.156 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.855e-05/0.4647, allocations: 7.891 kB / 445.4 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000133/0.4649, allocations: 43.97 kB / 445.4 MB, free: 7.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000148/0.465, allocations: 113.9 kB / 445.5 MB, free: 6.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00274/0.4678, allocations: 1.784 MB / 447.3 MB, free: 5.199 MB / 366.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.01028/0.478, allocations: 6.706 MB / 454 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001791/0.4799, allocations: 1.238 MB / 455.3 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001082/0.4809, allocations: 0.7727 MB / 456 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005311/0.4863, allocations: 4.275 MB / 460.3 MB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.989e-05/0.4863, allocations: 43.56 kB / 460.4 MB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006107/0.4869, allocations: 179.1 kB / 460.5 MB, free: 7.223 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 2.515e-06/0.487, allocations: 4 kB / 460.5 MB, free: 7.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.0169/0.5039, allocations: 5.721 MB / 466.3 MB, free: 1.438 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.264e-05/0.504, allocations: 137.5 kB / 466.4 MB, free: 1.273 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00166/0.5057, allocations: 1.254 MB / 467.6 MB, free: 12 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/0.5058, allocations: 49.7 kB / 467.7 MB, free: 15.96 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004764/0.5063, allocations: 0.626 MB / 468.3 MB, free: 15.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003435/0.5066, allocations: 408.5 kB / 468.7 MB, free: 14.92 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004808/0.5071, allocations: 295.4 kB / 469 MB, free: 14.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.528e-05/0.5072, allocations: 301.1 kB / 469.3 MB, free: 14.33 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00111/0.5083, allocations: 0.7192 MB / 470 MB, free: 13.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.5097, allocations: 1.06 MB / 471.1 MB, free: 12.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002461/0.5122, allocations: 1.755 MB / 472.8 MB, free: 10.51 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5122, allocations: 0 / 472.8 MB, free: 10.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004019/0.5162, allocations: 2.293 MB / 475.1 MB, free: 8.207 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.5163, allocations: 12.77 kB / 475.1 MB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.853e-05/0.5163, allocations: 8 kB / 475.1 MB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006966/0.5233, allocations: 1.281 MB / 476.4 MB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.5249, allocations: 295.6 kB / 476.7 MB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002987/0.5279, allocations: 1.614 MB / 478.3 MB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.5296, allocations: 55.97 kB / 478.4 MB, free: 4.918 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000173/0.5297, allocations: 75.97 kB / 478.5 MB, free: 4.844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001781/0.5315, allocations: 0.9763 MB / 479.4 MB, free: 3.863 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001373/0.5329, allocations: 1.059 MB / 480.5 MB, free: 2.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002409/0.5353, allocations: 1.722 MB / 482.2 MB, free: 0.7969 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.743e-06/0.5354, allocations: 4 kB / 482.2 MB, free: 0.793 MB / 398.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.003755/0.5391, allocations: 2.203 MB / 484.4 MB, free: 14.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.5391, allocations: 8 kB / 484.4 MB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.5392, allocations: 12 kB / 484.4 MB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005627/0.5448, allocations: 1.097 MB / 485.5 MB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.546, allocations: 311.5 kB / 485.8 MB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.5479, allocations: 1.444 MB / 487.3 MB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001239/0.5492, allocations: 71.89 kB / 487.4 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.5493, allocations: 67.97 kB / 487.4 MB, free: 11.55 MB / 414.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.0005129/0.5498, allocations: 271.8 kB / 487.7 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000301/0.5502, allocations: 159 kB / 487.8 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004068/0.5542, allocations: 2.085 MB / 489.9 MB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.5543, allocations: 12 kB / 489.9 MB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.5543, allocations: 0 / 489.9 MB, free: 9.012 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.5543, allocations: 11.97 kB / 490 MB, free: 9 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005853/0.5602, allocations: 3.569 MB / 493.5 MB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.5602, allocations: 0 / 493.5 MB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009043/0.5611, allocations: 195.7 kB / 493.7 MB, free: 5.184 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002362/0.5635, allocations: 0.8635 MB / 494.6 MB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.5636, allocations: 32.86 kB / 494.6 MB, free: 4.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.5658, allocations: 1.615 MB / 496.2 MB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5659, allocations: 0 / 496.2 MB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004671/0.5705, allocations: 2.925 MB / 499.1 MB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009735/0.5715, allocations: 399.9 kB / 499.5 MB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000534/0.5721, allocations: 28 kB / 499.6 MB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001342/0.5734, allocations: 60.2 kB / 499.6 MB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002578/0.5737, allocations: 97.17 kB / 499.7 MB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001569/0.5739, allocations: 55.91 kB / 499.8 MB, free: 15.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001597/0.5755, allocations: 0.8441 MB / 0.4889 GB, free: 14.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5755, allocations: 0 / 0.4889 GB, free: 14.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00385/0.5793, allocations: 1.177 MB / 0.49 GB, free: 13.02 MB / 430.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.002253/0.5816, allocations: 0.8592 MB / 0.4909 GB, free: 12.15 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006377/0.588, allocations: 2.855 MB / 0.4937 GB, free: 9.301 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/0.588, allocations: 7.859 kB / 0.4937 GB, free: 9.293 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.5898, allocations: 0.8789 MB / 0.4945 GB, free: 8.418 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003434/0.5933, allocations: 0.6669 MB / 0.4952 GB, free: 7.758 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005685/0.599, allocations: 3.099 MB / 0.4982 GB, free: 4.621 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009217/0.5999, allocations: 1.3 MB / 0.4995 GB, free: 3.293 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002021/0.602, allocations: 0.5822 MB / 0.5 GB, free: 2.703 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003832/0.6024, allocations: 131.4 kB / 0.5002 GB, free: 2.574 MB / 430.1 MB Notification: Performance of SimCode: time 1.292e-06/0.6024, allocations: 0 / 0.5002 GB, free: 2.574 MB / 430.1 MB Notification: Performance of Templates: time 0.0699/0.6723, allocations: 44.21 MB / 0.5433 GB, free: 6.277 MB / 478.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)