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.001184/0.001184, allocations: 93.61 kB / 16.5 MB, free: 6.688 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.00116/0.00116, allocations: 192.5 kB / 17.42 MB, free: 6.09 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.431/1.431, allocations: 205.1 MB / 223.3 MB, free: 12.48 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.001214/0.001214, allocations: 51.92 kB / 279.3 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1092, allocations: 46.63 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02752/0.1367, allocations: 30.28 MB / 356.2 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0226/0.1594, allocations: 15.73 MB / 372 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003434/0.1628, allocations: 63.5 kB / 372 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001911/0.1648, allocations: 0.5206 MB / 372.6 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006679/0.1715, allocations: 2.163 MB / 374.7 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009579/0.1811, allocations: 3.16 MB / 377.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.208/0.3892, allocations: 6.152 MB / 384 MB, free: 12.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00237/0.3916, allocations: 1.013 MB / 385 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0042/0.3958, allocations: 1.336 MB / 386.4 MB, free: 12.03 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004176/0.4, allocations: 1.66 MB / 388 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004676/0.4005, allocations: 94.12 kB / 388.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006422/0.4069, allocations: 2.354 MB / 390.5 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.408, allocations: 0.5552 MB / 391 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001699/0.4097, allocations: 0.7986 MB / 391.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007233/0.417, allocations: 3.643 MB / 395.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.417, allocations: 3.812 kB / 395.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.417, allocations: 0 / 395.5 MB, free: 11.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.225e-05/0.4171, allocations: 0 / 395.5 MB, free: 11.34 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.00552/0.4226, allocations: 2.192 MB / 397.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.4226, allocations: 8.25 kB / 397.7 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00058/0.4232, allocations: 178 kB / 397.9 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.4247, allocations: 1.012 MB / 398.9 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.4248, allocations: 172.9 kB / 399 MB, free: 9.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.425, allocations: 97.94 kB / 399.1 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002639/0.4277, allocations: 1.764 MB / 400.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.835e-05/0.4277, allocations: 0 / 400.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001435/0.4279, allocations: 45.56 kB / 400.9 MB, free: 9.262 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/0.428, allocations: 121.1 kB / 401.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002724/0.4308, allocations: 1.784 MB / 402.8 MB, free: 8.922 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.01038/0.4411, allocations: 6.703 MB / 409.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.4429, allocations: 1.234 MB / 410.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.4439, allocations: 0.7657 MB / 411.5 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00513/0.449, allocations: 4.27 MB / 415.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.059e-05/0.4491, allocations: 51.55 kB / 415.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000732/0.4498, allocations: 212.7 kB / 416.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 2.245e-06/0.4498, allocations: 0 / 416.1 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01928/0.4691, allocations: 5.671 MB / 421.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.643e-05/0.4693, allocations: 149.5 kB / 421.9 MB, free: 10.81 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002231/0.4715, allocations: 1.257 MB / 423.1 MB, free: 9.543 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001662/0.4717, allocations: 49.7 kB / 423.2 MB, free: 9.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005298/0.4722, allocations: 0.6078 MB / 423.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004285/0.4727, allocations: 395 kB / 424.2 MB, free: 8.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005588/0.4732, allocations: 291.3 kB / 424.5 MB, free: 8.211 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.4734, allocations: 301.1 kB / 424.8 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.4747, allocations: 0.7267 MB / 425.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.4763, allocations: 1.064 MB / 426.6 MB, free: 5.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002737/0.4791, allocations: 1.744 MB / 428.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/0.4791, allocations: 4 kB / 428.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004403/0.4835, allocations: 2.284 MB / 430.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/0.4835, allocations: 11.44 kB / 430.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/0.4836, allocations: 12.06 kB / 430.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007599/0.4912, allocations: 1.284 MB / 431.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/0.4927, allocations: 302.3 kB / 432.2 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002981/0.4957, allocations: 1.596 MB / 433.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/0.4983, allocations: 87.73 kB / 433.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005007/0.4988, allocations: 75.95 kB / 434 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002584/0.5014, allocations: 0.9801 MB / 434.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001866/0.5033, allocations: 1.051 MB / 436 MB, free: 12.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002941/0.5062, allocations: 1.718 MB / 437.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.534e-05/0.5063, allocations: 7.188 kB / 437.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization_lambda0): time 0.004339/0.5106, allocations: 2.199 MB / 439.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.5107, allocations: 8 kB / 439.9 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.363e-05/0.5107, allocations: 12 kB / 439.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006311/0.517, allocations: 1.094 MB / 441 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001448/0.5185, allocations: 311 kB / 441.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002453/0.521, allocations: 1.462 MB / 442.8 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/0.5238, allocations: 83.8 kB / 442.9 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004921/0.5243, allocations: 67.97 kB / 442.9 MB, free: 5.359 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.001025/0.5253, allocations: 270.9 kB / 443.2 MB, free: 5.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007779/0.5261, allocations: 146.2 kB / 443.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004681/0.5308, allocations: 2.087 MB / 445.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.642e-05/0.5308, allocations: 19.98 kB / 445.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.5308, allocations: 3.984 kB / 445.5 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.5309, allocations: 7.922 kB / 445.5 MB, free: 2.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006609/0.5375, allocations: 3.585 MB / 449 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.5375, allocations: 0.875 kB / 449 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009598/0.5385, allocations: 189.3 kB / 449.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003831/0.5423, allocations: 0.9961 MB / 450.2 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001674/0.5425, allocations: 27.98 kB / 450.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002369/0.5449, allocations: 1.611 MB / 451.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5449, allocations: 4 kB / 451.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005197/0.5501, allocations: 2.914 MB / 454.8 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/0.5513, allocations: 391.1 kB / 455.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004782/0.5518, allocations: 20 kB / 455.2 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.5532, allocations: 75.84 kB / 455.3 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002699/0.5535, allocations: 97.17 kB / 455.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.5537, allocations: 51.97 kB / 455.4 MB, free: 8.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001632/0.5553, allocations: 0.8518 MB / 456.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5553, allocations: 0 / 456.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004653/0.56, allocations: 1.163 MB / 457.4 MB, free: 6.801 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.002876/0.5629, allocations: 0.8431 MB / 458.3 MB, free: 6.008 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007252/0.5701, allocations: 2.843 MB / 461.1 MB, free: 3.242 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.699e-06/0.5702, allocations: 0 / 461.1 MB, free: 3.242 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002238/0.5724, allocations: 0.8801 MB / 462 MB, free: 2.387 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004179/0.5766, allocations: 0.6132 MB / 462.6 MB, free: 1.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00727/0.5839, allocations: 3.578 MB / 466.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.585, allocations: 1.296 MB / 467.5 MB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002399/0.5874, allocations: 0.5889 MB / 468.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004518/0.5879, allocations: 127.4 kB / 468.2 MB, free: 12.15 MB / 382.1 MB Notification: Performance of SimCode: time 1.693e-06/0.5879, allocations: 0 / 468.2 MB, free: 12.15 MB / 382.1 MB Notification: Performance of Templates: time 0.06738/0.6553, allocations: 41.87 MB / 0.4981 GB, free: 2.402 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)