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.0008729/0.0008728, allocations: 91.61 kB / 16.31 MB, free: 5.562 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.0008333/0.0008333, allocations: 178 kB / 17.2 MB, free: 5.488 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.497/1.497, allocations: 205.4 MB / 223.4 MB, free: 13.15 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.0004791/0.0004791, allocations: 15.98 kB / 280.1 MB, free: 3.723 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1072, allocations: 47.58 MB / 327.7 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02717/0.1344, allocations: 27.88 MB / 355.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02087/0.1553, allocations: 14.31 MB / 369.9 MB, free: 9.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002547/0.1579, allocations: 63.5 kB / 370 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002139/0.1601, allocations: 0.4968 MB / 370.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007589/0.1677, allocations: 2.157 MB / 372.6 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009548/0.1772, allocations: 2.907 MB / 375.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2103/0.3875, allocations: 5.045 MB / 380.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002258/0.3898, allocations: 0.9784 MB / 381.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003685/0.3935, allocations: 1.411 MB / 383 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003685/0.3972, allocations: 1.602 MB / 384.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005853/0.3978, allocations: 87.16 kB / 384.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005375/0.4032, allocations: 2.083 MB / 386.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.4044, allocations: 0.5338 MB / 387.3 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001008/0.4054, allocations: 315.2 kB / 387.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004425/0.4099, allocations: 2.602 MB / 390.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.4099, allocations: 1.312 kB / 390.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4099, allocations: 3.094 kB / 390.2 MB, free: 12.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.564e-05/0.41, allocations: 0 / 390.2 MB, free: 12.63 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.006582/0.4166, allocations: 1.908 MB / 392.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.4166, allocations: 7.906 kB / 392.1 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009878/0.4176, allocations: 173.8 kB / 392.3 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.4199, allocations: 0.9738 MB / 393.2 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.42, allocations: 176.8 kB / 393.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002466/0.4203, allocations: 100.2 kB / 393.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003112/0.4234, allocations: 1.743 MB / 395.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.437e-05/0.4235, allocations: 4.469 kB / 395.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001582/0.4236, allocations: 42.75 kB / 395.3 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001905/0.4238, allocations: 114.2 kB / 395.4 MB, free: 10.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002884/0.4267, allocations: 1.78 MB / 397.2 MB, free: 10.91 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.01131/0.438, allocations: 6.724 MB / 403.9 MB, free: 8.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.4397, allocations: 1.23 MB / 405.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009919/0.4407, allocations: 0.7644 MB / 405.9 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005425/0.4461, allocations: 4.287 MB / 410.2 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.276e-05/0.4462, allocations: 51.58 kB / 410.3 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000991/0.4472, allocations: 209.9 kB / 410.5 MB, free: 4.965 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 7.083e-06/0.4472, allocations: 0 / 410.5 MB, free: 4.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=112): time 0.02528/0.4725, allocations: 5.713 MB / 416.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.564e-05/0.4726, allocations: 139 kB / 416.3 MB, free: 3.059 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002875/0.4755, allocations: 1.251 MB / 417.6 MB, free: 2.398 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003414/0.4759, allocations: 48.52 kB / 417.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005831/0.4765, allocations: 0.6087 MB / 418.2 MB, free: 1.992 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006559/0.4772, allocations: 392.3 kB / 418.6 MB, free: 1.664 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/0.4774, allocations: 32.25 kB / 418.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.4776, allocations: 363.2 kB / 419 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/0.4796, allocations: 0.6938 MB / 419.7 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002149/0.4818, allocations: 1.05 MB / 420.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002395/0.4842, allocations: 0.8065 MB / 421.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.25e-05/0.4843, allocations: 4 kB / 421.5 MB, free: 15.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.007342/0.4916, allocations: 2.244 MB / 423.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000473/0.4921, allocations: 377.6 kB / 424.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.009e-05/0.4922, allocations: 8 kB / 424.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01211/0.5043, allocations: 1.281 MB / 425.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002554/0.5069, allocations: 299.9 kB / 425.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00495/0.5119, allocations: 1.602 MB / 427.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003137/0.5151, allocations: 79.83 kB / 427.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004502/0.5156, allocations: 78.91 kB / 427.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.5156, allocations: 4 kB / 427.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006925/0.5226, allocations: 2.02 MB / 429.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.252e-05/0.5226, allocations: 11.98 kB / 429.5 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01177/0.5344, allocations: 1.119 MB / 430.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002629/0.5371, allocations: 305.8 kB / 430.9 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002624/0.5397, allocations: 1.459 MB / 432.4 MB, free: 6.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.5412, allocations: 82.88 kB / 432.5 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.5415, allocations: 73.73 kB / 432.6 MB, free: 6.863 MB / 334.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 (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 initialization (156): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0009303/0.5424, allocations: 462 kB / 433 MB, free: 6.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003876/0.5428, allocations: 146.3 kB / 433.1 MB, free: 6.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004114/0.5469, allocations: 2.089 MB / 435.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.189e-05/0.547, allocations: 12 kB / 435.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.547, allocations: 4 kB / 435.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.547, allocations: 7.969 kB / 435.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006532/0.5535, allocations: 3.573 MB / 438.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.5536, allocations: 8 kB / 438.8 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009479/0.5545, allocations: 194 kB / 439 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003645/0.5582, allocations: 0.9922 MB / 440 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001361/0.5583, allocations: 31.98 kB / 440.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002415/0.5608, allocations: 1.606 MB / 441.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.5608, allocations: 0 / 441.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004859/0.5657, allocations: 2.907 MB / 444.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/0.5671, allocations: 403.1 kB / 445 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006368/0.5678, allocations: 28 kB / 445 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001417/0.5692, allocations: 83.78 kB / 445.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.5694, allocations: 108.6 kB / 445.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/0.5696, allocations: 47.97 kB / 445.2 MB, free: 10.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001519/0.5712, allocations: 0.8324 MB / 446.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5712, allocations: 0 / 446.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004894/0.5761, allocations: 1.163 MB / 447.2 MB, free: 8.473 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003448/0.5795, allocations: 0.8283 MB / 448 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006406/0.586, allocations: 2.789 MB / 450.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.332e-06/0.586, allocations: 0.625 kB / 450.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001945/0.5879, allocations: 0.8726 MB / 451.7 MB, free: 4.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003851/0.5918, allocations: 0.6231 MB / 452.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00646/0.5983, allocations: 3.556 MB / 455.9 MB, free: 15.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001063/0.5994, allocations: 1.296 MB / 457.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002343/0.6017, allocations: 0.5809 MB / 457.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004391/0.6022, allocations: 131.4 kB / 457.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.252e-06/0.6022, allocations: 2.156 kB / 457.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of Templates: time 0.06482/0.667, allocations: 40.47 MB / 498.4 MB, free: 5.602 MB / 398.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)