Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.",fileNamePrefix="Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001032, allocations: 110.9 kB / 17.75 MB, free: 5.332 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.0009796/0.0009796, allocations: 190.6 kB / 18.68 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009205/0.0009206, allocations: 51.91 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2084/0.2093, allocations: 49.42 MB / 401.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks): time 0.0169/0.2262, allocations: 17.53 MB / 418.9 MB, free: 7.262 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007866/0.2341, allocations: 6.027 MB / 425 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004533/0.2346, allocations: 23.88 kB / 425 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007646/0.2354, allocations: 325.9 kB / 425.3 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002095/0.2375, allocations: 1.046 MB / 426.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003357/0.2409, allocations: 1.647 MB / 428 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002035/0.2429, allocations: 1.937 MB / 429.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006526/0.2436, allocations: 481.7 kB / 430.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001083/0.2447, allocations: 0.732 MB / 431.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001006/0.2457, allocations: 0.7279 MB / 431.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.2458, allocations: 68 kB / 431.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.2476, allocations: 1.119 MB / 433.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002818/0.2479, allocations: 263.2 kB / 433.3 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004491/0.2484, allocations: 402.1 kB / 433.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001996/0.2504, allocations: 1.687 MB / 435.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2504, allocations: 0 / 435.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2504, allocations: 0 / 435.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.687e-05/0.2504, allocations: 0 / 435.4 MB, free: 6.758 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002158/0.2526, allocations: 1.18 MB / 436.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.2526, allocations: 12.03 kB / 436.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003068/0.2529, allocations: 88 kB / 436.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008768/0.2538, allocations: 0.5714 MB / 437.2 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.2539, allocations: 40.98 kB / 437.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.065e-05/0.254, allocations: 47.98 kB / 437.3 MB, free: 4.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.2551, allocations: 0.7333 MB / 438.1 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.2551, allocations: 0 / 438.1 MB, free: 3.961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.719e-05/0.2552, allocations: 23.98 kB / 438.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.256e-05/0.2553, allocations: 44.97 kB / 438.1 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001103/0.2564, allocations: 0.6986 MB / 438.8 MB, free: 3.195 MB / 350.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.004232/0.2606, allocations: 3.042 MB / 441.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007397/0.2614, allocations: 496.9 kB / 442.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/0.2618, allocations: 266 kB / 442.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002418/0.262, allocations: 340.8 kB / 442.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.018e-05/0.2621, allocations: 42.94 kB / 443 MB, free: 14.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=48): time 1.934e-06/0.2621, allocations: 4 kB / 443 MB, free: 14.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=58): time 0.005303/0.2674, allocations: 2.299 MB / 445.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.797e-05/0.2675, allocations: 81.67 kB / 445.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006886/0.2681, allocations: 0.6211 MB / 446 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.995e-05/0.2682, allocations: 41.7 kB / 446 MB, free: 11.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/0.2684, allocations: 332.4 kB / 446.4 MB, free: 11.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001657/0.2686, allocations: 201.1 kB / 446.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002143/0.2688, allocations: 150.5 kB / 446.7 MB, free: 10.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.269, allocations: 382.8 kB / 447.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005064/0.2695, allocations: 312.7 kB / 447.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005962/0.2701, allocations: 473.3 kB / 447.8 MB, free: 9.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001037/0.2712, allocations: 0.7522 MB / 448.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2712, allocations: 0 / 448.6 MB, free: 8.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001543/0.2727, allocations: 0.9697 MB / 449.6 MB, free: 7.875 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2727, allocations: 4 kB / 449.6 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.2728, allocations: 8 kB / 449.6 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002558/0.2753, allocations: 408.5 kB / 450 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006151/0.276, allocations: 151.8 kB / 450.1 MB, free: 7.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008862/0.2769, allocations: 0.8294 MB / 451 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/0.2774, allocations: 35.97 kB / 451 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-05/0.2774, allocations: 36 kB / 451 MB, free: 6.387 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006712/0.2781, allocations: 477.9 kB / 451.5 MB, free: 5.918 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005837/0.2787, allocations: 474 kB / 452 MB, free: 5.387 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009986/0.2797, allocations: 0.7243 MB / 452.7 MB, free: 4.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.358e-06/0.2797, allocations: 8 kB / 452.7 MB, free: 4.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001456/0.2812, allocations: 0.9052 MB / 453.6 MB, free: 3.672 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.2812, allocations: 12.12 kB / 453.6 MB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.2812, allocations: 7.938 kB / 453.6 MB, free: 3.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001958/0.2832, allocations: 264.5 kB / 453.9 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005993/0.2838, allocations: 155.7 kB / 454 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005685/0.2844, allocations: 0.7162 MB / 454.7 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000489/0.2849, allocations: 31.98 kB / 454.8 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.979e-05/0.2849, allocations: 35.98 kB / 454.8 MB, free: 2.43 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 6 (tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * 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 {(2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001884/0.2851, allocations: 228.7 kB / 455 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.2853, allocations: 71.16 kB / 455.1 MB, free: 2.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/0.2868, allocations: 0.866 MB / 456 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.756e-06/0.2868, allocations: 3.984 kB / 456 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2868, allocations: 0 / 456 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001399/0.287, allocations: 144.2 kB / 456.1 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001135/0.2871, allocations: 16 kB / 456.1 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004448/0.2875, allocations: 23.98 kB / 456.1 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.2876, allocations: 48.48 kB / 456.2 MB, free: 1 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00192/0.2896, allocations: 0.9209 MB / 457.1 MB, free: 68 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001606/0.2912, allocations: 1.178 MB / 458.3 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004489/0.2916, allocations: 324.2 kB / 458.6 MB, free: 14.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004841/0.2921, allocations: 447 kB / 459 MB, free: 14.13 MB / 382.1 MB Notification: Performance of Backend: time 4.51e-07/0.2921, allocations: 0 / 459 MB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002976/0.2951, allocations: 1.346 MB / 460.4 MB, free: 12.77 MB / 382.1 MB Notification: Performance of SimCode: time 0.00286/0.298, allocations: 2.181 MB / 462.6 MB, free: 10.55 MB / 382.1 MB Notification: Performance of Templates: time 0.03098/0.329, allocations: 22.06 MB / 484.6 MB, free: 4.672 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)