Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank3.level|tank3.medium.T|tank1.aboveLevel.1.|tank2.aboveLevel.1.|tank2.aboveLevel.2.|tank2.aboveLevel.3.|tank3.aboveLevel.1.|tank3.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 107.3 kB / 18.4 MB, free: 4.566 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.001021/0.001021, allocations: 191.3 kB / 19.34 MB, free: 3.645 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.263/1.263, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001216/0.001216, allocations: 44.39 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07161/0.07284, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.1761/0.249, allocations: 36.78 MB / 412.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01855/0.2675, allocations: 15.13 MB / 427.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001434/0.269, allocations: 52.44 kB / 427.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.2706, allocations: 0.6846 MB / 428.5 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00503/0.2756, allocations: 2.516 MB / 431 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00792/0.2835, allocations: 3.774 MB / 434.8 MB, free: 4.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00522/0.2888, allocations: 4.715 MB / 439.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.2902, allocations: 1.262 MB / 440.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002299/0.2925, allocations: 1.756 MB / 442.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002081/0.2946, allocations: 1.803 MB / 444.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002959/0.2949, allocations: 180 kB / 444.5 MB, free: 10.87 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004454/0.2994, allocations: 2.422 MB / 446.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005788/0.3, allocations: 0.6506 MB / 447.5 MB, free: 7.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009534/0.301, allocations: 0.9915 MB / 448.5 MB, free: 6.797 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004502/0.3055, allocations: 4.067 MB / 452.6 MB, free: 2.719 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.3055, allocations: 0 / 452.6 MB, free: 2.719 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3055, allocations: 3.938 kB / 452.6 MB, free: 2.715 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.723e-05/0.3055, allocations: 3.938 kB / 452.6 MB, free: 2.711 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.00426/0.3098, allocations: 2.415 MB / 455 MB, free: 244 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.3098, allocations: 8.031 kB / 455 MB, free: 236 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005619/0.3104, allocations: 197.8 kB / 455.2 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001665/0.3121, allocations: 1.156 MB / 456.4 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.939e-05/0.3122, allocations: 102.2 kB / 456.5 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001936/0.3124, allocations: 128 kB / 456.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002886/0.3153, allocations: 1.948 MB / 458.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.162e-05/0.3153, allocations: 0 / 458.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001475/0.3155, allocations: 59.91 kB / 458.6 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001387/0.3156, allocations: 118.3 kB / 458.7 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003072/0.3187, allocations: 1.98 MB / 460.7 MB, free: 10.39 MB / 382.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.01013/0.3288, allocations: 7.879 MB / 468.6 MB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.3306, allocations: 1.173 MB / 469.8 MB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001096/0.3317, allocations: 0.7573 MB / 470.5 MB, free: 96 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00427/0.336, allocations: 3.403 MB / 473.9 MB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.187e-05/0.3361, allocations: 51.5 kB / 474 MB, free: 12.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=119): time 2.515e-06/0.3361, allocations: 3.938 kB / 474 MB, free: 12.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01162/0.3477, allocations: 5.403 MB / 479.4 MB, free: 6.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.231e-05/0.3478, allocations: 175.5 kB / 479.6 MB, free: 6.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001649/0.3494, allocations: 1.423 MB / 481 MB, free: 5.188 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.3496, allocations: 65.69 kB / 481 MB, free: 5.117 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005048/0.3501, allocations: 0.7073 MB / 481.7 MB, free: 4.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003505/0.3504, allocations: 473.3 kB / 482.2 MB, free: 3.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005133/0.3509, allocations: 343.4 kB / 482.5 MB, free: 3.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.507e-05/0.351, allocations: 301.1 kB / 482.8 MB, free: 3.297 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.3523, allocations: 0.7816 MB / 483.6 MB, free: 2.512 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/0.3539, allocations: 1.207 MB / 484.8 MB, free: 1.129 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002668/0.3566, allocations: 1.884 MB / 486.7 MB, free: 15.08 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.3566, allocations: 4 kB / 486.7 MB, free: 15.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003952/0.3605, allocations: 2.46 MB / 489.2 MB, free: 12.6 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.132e-05/0.3606, allocations: 8 kB / 489.2 MB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.3606, allocations: 12 kB / 489.2 MB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006487/0.3671, allocations: 1.104 MB / 490.3 MB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/0.3685, allocations: 347.5 kB / 490.6 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/0.3711, allocations: 2.9 MB / 493.5 MB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001297/0.3724, allocations: 83.94 kB / 493.6 MB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/0.3726, allocations: 88.09 kB / 493.7 MB, free: 7.953 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001755/0.3744, allocations: 1.082 MB / 494.8 MB, free: 6.867 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001546/0.3759, allocations: 1.181 MB / 496 MB, free: 5.512 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002547/0.3785, allocations: 1.844 MB / 497.8 MB, free: 3.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.851e-06/0.3785, allocations: 0 / 497.8 MB, free: 3.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=224) (initialization_lambda0): time 0.003755/0.3823, allocations: 2.303 MB / 0.4884 GB, free: 1.176 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.3823, allocations: 16 kB / 0.4884 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/0.3823, allocations: 12 kB / 0.4884 GB, free: 1.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005323/0.3877, allocations: 0.7994 MB / 0.4892 GB, free: 344 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.389, allocations: 367.4 kB / 0.4896 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001975/0.3909, allocations: 2.654 MB / 0.4921 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001195/0.3921, allocations: 91.88 kB / 0.4922 GB, free: 13.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.3923, allocations: 83.97 kB / 0.4923 GB, free: 13.05 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 18 (tank2.aboveLevel[3],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[1],tank3.aboveLevel[2],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[1],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (203): * Single equations (assignments): 199 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,2), (2,7), (2,7), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003781/0.3927, allocations: 297.6 kB / 0.4926 GB, free: 12.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003021/0.393, allocations: 169.9 kB / 0.4928 GB, free: 12.58 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004449/0.3975, allocations: 2.354 MB / 0.4951 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.833e-05/0.3975, allocations: 7.969 kB / 0.4951 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.3975, allocations: 0 / 0.4951 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003135/0.3978, allocations: 246.8 kB / 0.4953 GB, free: 9.934 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002288/0.3981, allocations: 39.94 kB / 0.4953 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000891/0.399, allocations: 67.94 kB / 0.4954 GB, free: 9.828 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002676/0.3992, allocations: 133.8 kB / 0.4955 GB, free: 9.699 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00469/0.4039, allocations: 2.223 MB / 0.4977 GB, free: 7.453 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004032/0.408, allocations: 2.771 MB / 0.5004 GB, free: 4.672 MB / 430.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001155/0.4091, allocations: 0.8041 MB / 0.5012 GB, free: 3.867 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001261/0.4104, allocations: 0.9786 MB / 0.5021 GB, free: 2.891 MB / 430.1 MB Notification: Performance of Backend: time 2.81e-07/0.4104, allocations: 0 / 0.5021 GB, free: 2.891 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006944/0.4174, allocations: 3.348 MB / 0.5054 GB, free: 15.54 MB / 446.1 MB Notification: Performance of SimCode: time 0.00603/0.4234, allocations: 4.226 MB / 0.5095 GB, free: 11.26 MB / 446.1 MB Notification: Performance of Templates: time 0.2272/0.6506, allocations: 55.82 MB / 0.5641 GB, free: 158.2 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)