Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001277/0.001277, allocations: 113.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 59.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2071, allocations: 50.55 MB / 409.9 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02987/0.237, allocations: 31.17 MB / 441.1 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01749/0.2545, allocations: 14.29 MB / 455.4 MB, free: 4 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001039/0.2556, allocations: 43.69 kB / 455.4 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001417/0.257, allocations: 0.5784 MB / 456 MB, free: 3.375 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004522/0.2616, allocations: 2.212 MB / 458.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00743/0.269, allocations: 3.665 MB / 461.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004085/0.2731, allocations: 3.975 MB / 465.9 MB, free: 9.512 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.2745, allocations: 1.01 MB / 466.9 MB, free: 8.484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002263/0.2767, allocations: 1.507 MB / 468.4 MB, free: 6.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002231/0.279, allocations: 1.526 MB / 469.9 MB, free: 5.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004086/0.2794, allocations: 148 kB / 470.1 MB, free: 5.297 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003976/0.2834, allocations: 2.344 MB / 472.4 MB, free: 2.949 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006862/0.2841, allocations: 0.5571 MB / 473 MB, free: 2.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001119/0.2852, allocations: 0.8166 MB / 473.8 MB, free: 1.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004697/0.2899, allocations: 3.612 MB / 477.4 MB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2899, allocations: 3.984 kB / 477.4 MB, free: 13.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2899, allocations: 4 kB / 477.4 MB, free: 13.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.766e-05/0.29, allocations: 0 / 477.4 MB, free: 13.94 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.004595/0.2946, allocations: 2.103 MB / 479.5 MB, free: 11.78 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.2946, allocations: 12.03 kB / 479.5 MB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000616/0.2953, allocations: 170.1 kB / 479.7 MB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/0.297, allocations: 1.018 MB / 480.7 MB, free: 10.54 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.266e-05/0.2971, allocations: 73.92 kB / 480.8 MB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001737/0.2973, allocations: 99.97 kB / 480.9 MB, free: 10.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00257/0.2999, allocations: 1.636 MB / 482.5 MB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.2999, allocations: 4 kB / 482.5 MB, free: 8.652 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.3, allocations: 47.92 kB / 482.6 MB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001408/0.3002, allocations: 101.9 kB / 482.7 MB, free: 8.504 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002651/0.3028, allocations: 1.647 MB / 484.3 MB, free: 6.855 MB / 398.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.009528/0.3124, allocations: 6.648 MB / 491 MB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001501/0.3139, allocations: 0.9225 MB / 491.9 MB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008488/0.3147, allocations: 0.5604 MB / 492.4 MB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003698/0.3185, allocations: 2.809 MB / 495.2 MB, free: 11.26 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.3185, allocations: 47.16 kB / 495.3 MB, free: 11.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=80): time 2.355e-06/0.3185, allocations: 0 / 495.3 MB, free: 11.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=90): time 0.008445/0.327, allocations: 3.715 MB / 499 MB, free: 7.383 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.609e-05/0.3271, allocations: 188.9 kB / 499.2 MB, free: 7.156 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00164/0.3287, allocations: 1.306 MB / 0.4888 GB, free: 5.832 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.836e-05/0.3288, allocations: 49.69 kB / 0.4888 GB, free: 5.777 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005116/0.3293, allocations: 0.6587 MB / 0.4895 GB, free: 5.109 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.3296, allocations: 319.5 kB / 0.4898 GB, free: 4.793 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004274/0.33, allocations: 283.3 kB / 0.49 GB, free: 4.512 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.822e-05/0.3302, allocations: 309.1 kB / 0.4903 GB, free: 4.207 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000983/0.3311, allocations: 0.5864 MB / 0.4909 GB, free: 3.617 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.3324, allocations: 1.001 MB / 0.4919 GB, free: 2.438 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/0.3345, allocations: 1.489 MB / 0.4933 GB, free: 0.7891 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3345, allocations: 4 kB / 0.4933 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.00318/0.3377, allocations: 1.904 MB / 0.4952 GB, free: 14.86 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.3377, allocations: 12 kB / 0.4952 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.3378, allocations: 12 kB / 0.4952 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004797/0.3426, allocations: 0.7556 MB / 0.496 GB, free: 14.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.3436, allocations: 291.5 kB / 0.4962 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002053/0.3457, allocations: 2.164 MB / 0.4983 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001058/0.3468, allocations: 72.02 kB / 0.4984 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.3469, allocations: 67.98 kB / 0.4985 GB, free: 11.4 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001318/0.3482, allocations: 0.8473 MB / 0.4993 GB, free: 10.55 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001252/0.3495, allocations: 0.9914 MB / 0.5003 GB, free: 9.375 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001996/0.3515, allocations: 1.46 MB / 0.5017 GB, free: 7.746 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.614e-06/0.3515, allocations: 4 kB / 0.5017 GB, free: 7.742 MB / 430.1 MB Notification: Performance of matching and sorting (n=180) (initialization_lambda0): time 0.003083/0.3546, allocations: 1.826 MB / 0.5035 GB, free: 5.898 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.3546, allocations: 12 kB / 0.5035 GB, free: 5.887 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.3547, allocations: 12.53 kB / 0.5035 GB, free: 5.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003997/0.3587, allocations: 0.5915 MB / 0.5041 GB, free: 5.273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.3597, allocations: 291.5 kB / 0.5044 GB, free: 4.988 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.3614, allocations: 2.028 MB / 0.5063 GB, free: 2.883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.3624, allocations: 71.95 kB / 0.5064 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.3625, allocations: 67.98 kB / 0.5065 GB, free: 2.746 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 (tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[2],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,3), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003262/0.3629, allocations: 273 kB / 0.5067 GB, free: 2.473 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002537/0.3631, allocations: 142.2 kB / 0.5069 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002952/0.3661, allocations: 1.523 MB / 0.5084 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3661, allocations: 3.984 kB / 0.5084 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.573e-06/0.3661, allocations: 4 kB / 0.5084 GB, free: 0.793 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002847/0.3664, allocations: 219.2 kB / 0.5086 GB, free: 0.5586 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002228/0.3667, allocations: 31.77 kB / 0.5086 GB, free: 0.5312 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008003/0.3675, allocations: 51.97 kB / 0.5087 GB, free: 492 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001762/0.3676, allocations: 88.86 kB / 0.5087 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003329/0.371, allocations: 1.48 MB / 0.5102 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002787/0.3738, allocations: 1.896 MB / 0.512 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000767/0.3746, allocations: 0.5153 MB / 0.5125 GB, free: 12.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001187/0.3758, allocations: 0.9044 MB / 0.5134 GB, free: 11.56 MB / 446.1 MB Notification: Performance of Backend: time 2.21e-07/0.3758, allocations: 0 / 0.5134 GB, free: 11.56 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00617/0.3819, allocations: 2.687 MB / 0.516 GB, free: 8.879 MB / 446.1 MB Notification: Performance of SimCode: time 0.005245/0.3872, allocations: 3.485 MB / 0.5195 GB, free: 5.344 MB / 446.1 MB Notification: Performance of Templates: time 0.2189/0.6062, allocations: 44.45 MB / 0.5629 GB, free: 117.1 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)