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.0008885/0.0008886, allocations: 89.25 kB / 16.65 MB, free: 6.535 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.001019/0.00102, allocations: 173.3 kB / 17.56 MB, free: 6.184 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.557/1.557, allocations: 205.4 MB / 223.7 MB, free: 13.06 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.0006553/0.0006551, allocations: 12.22 kB / 280.7 MB, free: 3.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1271, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.0299/0.1571, allocations: 29.53 MB / 357.8 MB, free: 6.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.022/0.1791, allocations: 15.5 MB / 373.3 MB, free: 6.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003082/0.1823, allocations: 55.5 kB / 373.4 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001936/0.1842, allocations: 0.5168 MB / 373.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006518/0.1908, allocations: 2.151 MB / 376.1 MB, free: 3.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01019/0.201, allocations: 3.164 MB / 379.2 MB, free: 0.6641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2315/0.4325, allocations: 6.148 MB / 385.4 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002752/0.4353, allocations: 1.013 MB / 386.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003748/0.4391, allocations: 1.318 MB / 387.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004121/0.4432, allocations: 1.657 MB / 389.4 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005176/0.4438, allocations: 86.44 kB / 389.5 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006053/0.4498, allocations: 2.35 MB / 391.8 MB, free: 11.99 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.4509, allocations: 0.5507 MB / 392.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002155/0.453, allocations: 0.8191 MB / 393.2 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008657/0.4617, allocations: 3.608 MB / 396.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.4617, allocations: 0 / 396.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4617, allocations: 0 / 396.8 MB, free: 11.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.654e-05/0.4618, allocations: 0 / 396.8 MB, free: 11.38 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.005289/0.4671, allocations: 1.901 MB / 398.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/0.4672, allocations: 9.312 kB / 398.7 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006252/0.4678, allocations: 173.5 kB / 398.9 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.4693, allocations: 0.9996 MB / 399.9 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/0.4695, allocations: 177.6 kB / 400 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001887/0.4697, allocations: 101.9 kB / 400.1 MB, free: 9.531 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002788/0.4725, allocations: 1.752 MB / 401.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.045e-05/0.4725, allocations: 2.5 kB / 401.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001387/0.4726, allocations: 44.98 kB / 401.9 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/0.4728, allocations: 115.9 kB / 402 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002746/0.4755, allocations: 1.78 MB / 403.8 MB, free: 8.68 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.01076/0.4863, allocations: 6.739 MB / 410.6 MB, free: 5.195 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001853/0.4882, allocations: 1.246 MB / 411.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001138/0.4894, allocations: 0.7593 MB / 412.6 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005686/0.4951, allocations: 4.287 MB / 416.9 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.013e-05/0.4951, allocations: 47.56 kB / 416.9 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008485/0.496, allocations: 210.5 kB / 417.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 2.866e-06/0.496, allocations: 0 / 417.1 MB, free: 1.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.01882/0.5148, allocations: 5.76 MB / 422.9 MB, free: 11.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.455e-05/0.5149, allocations: 141.5 kB / 423 MB, free: 11.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001907/0.5168, allocations: 1.253 MB / 424.3 MB, free: 9.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002445/0.5171, allocations: 47.95 kB / 424.3 MB, free: 9.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004969/0.5176, allocations: 0.6079 MB / 424.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004506/0.5181, allocations: 393 kB / 425.3 MB, free: 8.918 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.5183, allocations: 121.6 kB / 425.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.5184, allocations: 309.1 kB / 425.7 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.5196, allocations: 0.7066 MB / 426.4 MB, free: 7.781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.521, allocations: 1.066 MB / 427.5 MB, free: 6.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.5235, allocations: 1.743 MB / 429.2 MB, free: 4.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.5235, allocations: 7.938 kB / 429.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004071/0.5276, allocations: 2.292 MB / 431.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003009/0.5279, allocations: 378.1 kB / 431.9 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.528, allocations: 8 kB / 431.9 MB, free: 1.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00767/0.5356, allocations: 1.292 MB / 433.2 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/0.5373, allocations: 299.6 kB / 433.5 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.5398, allocations: 1.601 MB / 435.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001579/0.5414, allocations: 87.8 kB / 435.2 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.5416, allocations: 67.97 kB / 435.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.5416, allocations: 7.938 kB / 435.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003462/0.5451, allocations: 2.035 MB / 437.3 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.5451, allocations: 8 kB / 437.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006382/0.5515, allocations: 1.118 MB / 438.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001373/0.5529, allocations: 307.8 kB / 438.7 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00226/0.5552, allocations: 1.468 MB / 440.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/0.5568, allocations: 87.8 kB / 440.3 MB, free: 9.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.557, allocations: 68.12 kB / 440.3 MB, free: 9.598 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.0009753/0.5579, allocations: 463.2 kB / 440.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002826/0.5582, allocations: 148.8 kB / 440.9 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004211/0.5625, allocations: 2.096 MB / 443 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.289e-05/0.5625, allocations: 12 kB / 443 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.5625, allocations: 0 / 443 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.5625, allocations: 3.984 kB / 443 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006052/0.5686, allocations: 3.593 MB / 446.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.992e-06/0.5686, allocations: 0 / 446.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009184/0.5695, allocations: 188 kB / 446.8 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003866/0.5734, allocations: 1.003 MB / 447.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/0.5736, allocations: 35.98 kB / 447.9 MB, free: 2.066 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002182/0.5757, allocations: 1.611 MB / 449.5 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.5758, allocations: 4 kB / 449.5 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004647/0.5804, allocations: 2.912 MB / 452.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000958/0.5814, allocations: 399.3 kB / 452.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002195/0.5816, allocations: 28 kB / 452.8 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001073/0.5827, allocations: 91.09 kB / 452.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002463/0.583, allocations: 97.17 kB / 453 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.5831, allocations: 47.97 kB / 453 MB, free: 12.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001344/0.5845, allocations: 0.8441 MB / 453.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5845, allocations: 0 / 453.9 MB, free: 11.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004128/0.5886, allocations: 1.167 MB / 455 MB, free: 10.81 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.002419/0.591, allocations: 0.8461 MB / 455.9 MB, free: 10.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006243/0.5973, allocations: 2.829 MB / 458.7 MB, free: 7.262 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.5973, allocations: 0.5625 kB / 458.7 MB, free: 7.262 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001832/0.5992, allocations: 0.8767 MB / 459.6 MB, free: 6.406 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003528/0.6027, allocations: 0.6164 MB / 460.2 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00636/0.6091, allocations: 3.73 MB / 463.9 MB, free: 2.055 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008772/0.61, allocations: 1.294 MB / 465.2 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002416/0.6124, allocations: 0.5885 MB / 465.8 MB, free: 148 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003566/0.6128, allocations: 119.4 kB / 465.9 MB, free: 28 kB / 366.1 MB Notification: Performance of SimCode: time 2.004e-06/0.6128, allocations: 0 / 465.9 MB, free: 28 kB / 366.1 MB Notification: Performance of Templates: time 0.06908/0.6819, allocations: 41.4 MB / 0.4955 GB, free: 6.75 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)