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.0008374/0.0008374, allocations: 94.66 kB / 15.06 MB, free: 1.086 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.0009308/0.000931, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.479/1.479, allocations: 205.4 MB / 222.1 MB, free: 5.508 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.0004477/0.0004478, allocations: 8 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2645, allocations: 47.59 MB / 326.5 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Tanks.ThreeTanks): time 0.02819/0.2927, allocations: 27.88 MB / 354.4 MB, free: 7.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02209/0.3149, allocations: 14.32 MB / 368.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002786/0.3177, allocations: 59.5 kB / 368.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002467/0.3202, allocations: 0.4968 MB / 369.2 MB, free: 8.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008055/0.3283, allocations: 2.157 MB / 371.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009707/0.338, allocations: 2.907 MB / 374.3 MB, free: 3.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007468/0.3455, allocations: 5.051 MB / 379.3 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002623/0.3481, allocations: 0.965 MB / 380.3 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004177/0.3523, allocations: 1.417 MB / 381.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003615/0.356, allocations: 1.604 MB / 383.3 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008294/0.3568, allocations: 84 kB / 383.4 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006038/0.3629, allocations: 2.09 MB / 385.5 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001333/0.3642, allocations: 0.5336 MB / 386 MB, free: 7.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001083/0.3653, allocations: 309 kB / 386.3 MB, free: 7.418 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005536/0.3709, allocations: 2.607 MB / 388.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.3709, allocations: 0 / 388.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3709, allocations: 0 / 388.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.423e-05/0.371, allocations: 0 / 388.9 MB, free: 4.805 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.005952/0.377, allocations: 1.904 MB / 390.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.377, allocations: 12.03 kB / 390.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009282/0.378, allocations: 182 kB / 391 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002286/0.3803, allocations: 0.9645 MB / 392 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002453/0.3805, allocations: 183 kB / 392.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003907/0.3809, allocations: 95.97 kB / 392.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003357/0.3843, allocations: 1.745 MB / 394 MB, free: 15.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.495e-05/0.3844, allocations: 7.938 kB / 394 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001577/0.3845, allocations: 39.97 kB / 394.1 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001744/0.3847, allocations: 113.9 kB / 394.2 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003157/0.3879, allocations: 1.78 MB / 396 MB, free: 13.61 MB / 334.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.01271/0.4006, allocations: 6.723 MB / 402.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001935/0.4026, allocations: 1.245 MB / 403.9 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001159/0.4037, allocations: 0.7573 MB / 404.7 MB, free: 4.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006236/0.41, allocations: 4.294 MB / 409 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/0.4101, allocations: 51.5 kB / 409 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00086/0.4109, allocations: 194.7 kB / 409.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 5.901e-06/0.411, allocations: 0 / 409.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.01764/0.4286, allocations: 5.73 MB / 414.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.778e-05/0.4287, allocations: 149.5 kB / 415.1 MB, free: 9.609 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001891/0.4306, allocations: 1.238 MB / 416.3 MB, free: 8.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001271/0.4308, allocations: 45.7 kB / 416.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005215/0.4313, allocations: 0.6169 MB / 417 MB, free: 7.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003783/0.4317, allocations: 382.4 kB / 417.4 MB, free: 7.309 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.4318, allocations: 32 kB / 417.4 MB, free: 7.277 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.432, allocations: 365.9 kB / 417.8 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.4333, allocations: 0.691 MB / 418.4 MB, free: 6.223 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.4348, allocations: 1.048 MB / 419.5 MB, free: 5.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00147/0.4363, allocations: 0.8105 MB / 420.3 MB, free: 4.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-06/0.4363, allocations: 4 kB / 420.3 MB, free: 4.219 MB / 350.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.004077/0.4404, allocations: 2.237 MB / 422.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002911/0.4407, allocations: 379.5 kB / 422.9 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.047e-05/0.4407, allocations: 12 kB / 422.9 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006536/0.4473, allocations: 1.269 MB / 424.2 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.4486, allocations: 303.6 kB / 424.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002526/0.4512, allocations: 1.598 MB / 426.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.4527, allocations: 83.89 kB / 426.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002185/0.453, allocations: 71.95 kB / 426.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.453, allocations: 4 kB / 426.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00359/0.4566, allocations: 2.023 MB / 428.3 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.086e-05/0.4566, allocations: 16.03 kB / 428.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00568/0.4623, allocations: 1.105 MB / 429.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/0.4636, allocations: 311.5 kB / 429.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002235/0.4659, allocations: 1.465 MB / 431.2 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00146/0.4674, allocations: 83.8 kB / 431.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001997/0.4676, allocations: 67.97 kB / 431.3 MB, free: 9 MB / 366.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.0009263/0.4685, allocations: 460.6 kB / 431.8 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003399/0.4688, allocations: 146.3 kB / 431.9 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004243/0.4731, allocations: 2.082 MB / 434 MB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.4731, allocations: 16 kB / 434 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.4732, allocations: 0 / 434 MB, free: 6.285 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.4732, allocations: 7.922 kB / 434 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006184/0.4794, allocations: 3.583 MB / 437.6 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.377e-05/0.4794, allocations: 7.891 kB / 437.6 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009253/0.4803, allocations: 195.8 kB / 437.8 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003473/0.4838, allocations: 0.9922 MB / 438.8 MB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001705/0.484, allocations: 31.98 kB / 438.8 MB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/0.4863, allocations: 1.615 MB / 440.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.4863, allocations: 3.984 kB / 440.4 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0047/0.4911, allocations: 2.903 MB / 443.3 MB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001104/0.4922, allocations: 407.1 kB / 443.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000406/0.4926, allocations: 24 kB / 443.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.4938, allocations: 87.84 kB / 443.8 MB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002203/0.494, allocations: 97.16 kB / 443.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.4941, allocations: 51.97 kB / 444 MB, free: 12.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001409/0.4956, allocations: 0.8324 MB / 444.8 MB, free: 11.33 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4956, allocations: 0 / 444.8 MB, free: 11.33 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003688/0.4993, allocations: 1.16 MB / 446 MB, free: 10.17 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 (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.002432/0.5017, allocations: 0.8379 MB / 446.8 MB, free: 9.316 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006123/0.5078, allocations: 2.773 MB / 449.6 MB, free: 6.551 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.5079, allocations: 4 kB / 449.6 MB, free: 6.547 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001951/0.5098, allocations: 0.8676 MB / 450.5 MB, free: 5.684 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/0.5135, allocations: 0.6085 MB / 451.1 MB, free: 5.074 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006551/0.5201, allocations: 3.574 MB / 454.6 MB, free: 1.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.5212, allocations: 1.296 MB / 455.9 MB, free: 160 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.2099/0.7311, allocations: 0.5772 MB / 456.5 MB, free: 114.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004949/0.7316, allocations: 124.9 kB / 456.6 MB, free: 114.3 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.7316, allocations: 0 / 456.6 MB, free: 114.3 MB / 382.1 MB Notification: Performance of Templates: time 0.05474/0.7864, allocations: 40.48 MB / 497.1 MB, free: 83.35 MB / 382.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)