Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.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_trunk_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_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001008, allocations: 114.8 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 208 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.326/1.326, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 63.89 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2045, allocations: 50.54 MB / 409.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2): time 0.0341/0.2387, allocations: 36.99 MB / 446.9 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01871/0.2574, allocations: 15.14 MB / 462.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001191/0.2586, allocations: 47.69 kB / 462.1 MB, free: 13.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001504/0.2602, allocations: 0.6949 MB / 462.8 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004784/0.265, allocations: 2.527 MB / 465.3 MB, free: 9.965 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007478/0.2725, allocations: 3.766 MB / 469.1 MB, free: 6.211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004605/0.2771, allocations: 4.709 MB / 473.8 MB, free: 1.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001345/0.2784, allocations: 1.268 MB / 475.1 MB, free: 200 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002083/0.2805, allocations: 1.76 MB / 476.8 MB, free: 14.43 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002016/0.2826, allocations: 1.81 MB / 478.7 MB, free: 12.61 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000282/0.2829, allocations: 176 kB / 478.8 MB, free: 12.44 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004048/0.2869, allocations: 2.457 MB / 481.3 MB, free: 9.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005952/0.2875, allocations: 0.6545 MB / 481.9 MB, free: 9.324 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009566/0.2885, allocations: 0.9876 MB / 482.9 MB, free: 8.332 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004496/0.293, allocations: 4.094 MB / 487 MB, free: 4.227 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.293, allocations: 0 / 487 MB, free: 4.227 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.293, allocations: 4 kB / 487 MB, free: 4.223 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.097e-05/0.293, allocations: 0 / 487 MB, free: 4.223 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.004766/0.2978, allocations: 2.411 MB / 489.4 MB, free: 1.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.2979, allocations: 8.031 kB / 489.4 MB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005982/0.2985, allocations: 201.8 kB / 489.6 MB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/0.3003, allocations: 1.156 MB / 490.8 MB, free: 340 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.829e-05/0.3004, allocations: 102.2 kB / 490.9 MB, free: 236 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002135/0.3006, allocations: 124 kB / 491 MB, free: 112 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002935/0.3036, allocations: 1.949 MB / 493 MB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.381e-05/0.3036, allocations: 7.844 kB / 493 MB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001638/0.3038, allocations: 55.97 kB / 493 MB, free: 14 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001498/0.3039, allocations: 118.3 kB / 493.1 MB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00313/0.3071, allocations: 1.988 MB / 495.1 MB, free: 11.89 MB / 414.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.01058/0.3177, allocations: 7.868 MB / 0.4912 GB, free: 3.547 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.3195, allocations: 1.172 MB / 0.4924 GB, free: 2.359 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001117/0.3206, allocations: 0.7534 MB / 0.4931 GB, free: 1.605 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004616/0.3253, allocations: 3.416 MB / 0.4964 GB, free: 13.92 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.3253, allocations: 51.56 kB / 0.4965 GB, free: 13.86 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 2.525e-06/0.3253, allocations: 0 / 0.4965 GB, free: 13.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=134): time 0.01191/0.3372, allocations: 5.396 MB / 0.5017 GB, free: 8.34 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.304e-05/0.3373, allocations: 175.5 kB / 0.5019 GB, free: 8.133 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001682/0.339, allocations: 1.419 MB / 0.5033 GB, free: 6.703 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.3392, allocations: 61.69 kB / 0.5034 GB, free: 6.637 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005408/0.3397, allocations: 0.7073 MB / 0.504 GB, free: 5.922 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003701/0.3401, allocations: 477.3 kB / 0.5045 GB, free: 5.449 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005214/0.3406, allocations: 343.3 kB / 0.5048 GB, free: 5.109 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.388e-05/0.3407, allocations: 305.1 kB / 0.5051 GB, free: 4.809 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.342, allocations: 0.7816 MB / 0.5059 GB, free: 4.023 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001585/0.3436, allocations: 1.211 MB / 0.5071 GB, free: 2.641 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002688/0.3463, allocations: 1.888 MB / 0.5089 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.3463, allocations: 4 kB / 0.5089 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of matching and sorting (n=224) (initialization): time 0.003981/0.3503, allocations: 2.447 MB / 0.5113 GB, free: 14.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.3503, allocations: 8.781 kB / 0.5113 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.3503, allocations: 12 kB / 0.5113 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006888/0.3572, allocations: 1.103 MB / 0.5124 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.3585, allocations: 351.4 kB / 0.5127 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/0.3611, allocations: 2.896 MB / 0.5156 GB, free: 9.641 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001156/0.3623, allocations: 87.94 kB / 0.5156 GB, free: 9.555 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/0.3625, allocations: 83.97 kB / 0.5157 GB, free: 9.473 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001661/0.3641, allocations: 1.078 MB / 0.5168 GB, free: 8.391 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001574/0.3657, allocations: 1.193 MB / 0.5179 GB, free: 7.012 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002714/0.3684, allocations: 1.841 MB / 0.5197 GB, free: 5.004 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.753e-06/0.3685, allocations: 4 kB / 0.5197 GB, free: 5 MB / 446.1 MB Notification: Performance of matching and sorting (n=224) (initialization_lambda0): time 0.003724/0.3722, allocations: 2.302 MB / 0.522 GB, free: 2.676 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3722, allocations: 12.69 kB / 0.522 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.3722, allocations: 15.98 kB / 0.522 GB, free: 2.648 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005674/0.3779, allocations: 0.8069 MB / 0.5228 GB, free: 1.828 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.3793, allocations: 359.5 kB / 0.5232 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00204/0.3813, allocations: 2.654 MB / 0.5257 GB, free: 14.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00117/0.3825, allocations: 91.94 kB / 0.5258 GB, free: 14.63 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/0.3826, allocations: 83.91 kB / 0.5259 GB, free: 14.55 MB / 462.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.0004009/0.3831, allocations: 305.7 kB / 0.5262 GB, free: 14.24 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002953/0.3834, allocations: 166 kB / 0.5264 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00443/0.3878, allocations: 2.356 MB / 0.5287 GB, free: 11.73 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.3878, allocations: 11.91 kB / 0.5287 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3878, allocations: 0 / 0.5287 GB, free: 11.71 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003172/0.3882, allocations: 242.9 kB / 0.5289 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002296/0.3884, allocations: 47.83 kB / 0.529 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009143/0.3893, allocations: 59.95 kB / 0.529 GB, free: 11.35 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.3896, allocations: 137.8 kB / 0.5291 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0046/0.3942, allocations: 2.223 MB / 0.5313 GB, free: 8.984 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004046/0.3982, allocations: 2.763 MB / 0.534 GB, free: 6.211 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001153/0.3994, allocations: 0.8042 MB / 0.5348 GB, free: 5.402 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001257/0.4007, allocations: 0.9825 MB / 0.5358 GB, free: 4.422 MB / 462.1 MB Notification: Performance of Backend: time 1.693e-06/0.4007, allocations: 0 / 0.5358 GB, free: 4.422 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007043/0.4077, allocations: 3.33 MB / 0.539 GB, free: 1.102 MB / 462.1 MB Notification: Performance of SimCode: time 0.1665/0.5743, allocations: 4.239 MB / 0.5431 GB, free: 129.4 MB / 462.1 MB Notification: Performance of Templates: time 0.0572/0.6315, allocations: 54.51 MB / 0.5964 GB, free: 83.48 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.makefile (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & ./Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)