Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001647/0.001647, allocations: 94.17 kB / 16.3 MB, free: 5.996 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.001633/0.001633, allocations: 182.6 kB / 17.2 MB, free: 5.914 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.48/1.48, allocations: 205.4 MB / 223.4 MB, free: 13.16 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.0004366/0.0004366, allocations: 12 kB / 280.1 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08551/0.08595, allocations: 47.59 MB / 327.7 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.02862/0.1146, allocations: 26.88 MB / 354.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0181/0.1328, allocations: 12.69 MB / 367.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001756/0.1346, allocations: 59.5 kB / 367.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.1361, allocations: 0.5091 MB / 367.8 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004791/0.1409, allocations: 1.757 MB / 369.6 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007567/0.1485, allocations: 2.88 MB / 372.5 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003868/0.1524, allocations: 2.187 MB / 374.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.1538, allocations: 0.832 MB / 375.5 MB, free: 4.168 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002163/0.156, allocations: 1.168 MB / 376.7 MB, free: 2.996 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001614/0.1576, allocations: 0.9734 MB / 377.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002151/0.1578, allocations: 72 kB / 377.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1559/0.3137, allocations: 2.122 MB / 379.8 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00102/0.3148, allocations: 454.4 kB / 380.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005083/0.3153, allocations: 309.5 kB / 380.6 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004502/0.3198, allocations: 2.579 MB / 383.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.3198, allocations: 0 / 383.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3198, allocations: 0 / 383.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.551e-05/0.3199, allocations: 1.781 kB / 383.2 MB, free: 13.64 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003918/0.3238, allocations: 1.826 MB / 385 MB, free: 12.64 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.3238, allocations: 10.11 kB / 385 MB, free: 12.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005372/0.3244, allocations: 175.1 kB / 385.2 MB, free: 12.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/0.3259, allocations: 0.9186 MB / 386.1 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.267e-05/0.326, allocations: 82.81 kB / 386.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001712/0.3262, allocations: 94.33 kB / 386.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002474/0.3286, allocations: 1.617 MB / 387.9 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.868e-05/0.3287, allocations: 6.094 kB / 387.9 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001307/0.3288, allocations: 44.11 kB / 387.9 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.329, allocations: 101.2 kB / 388 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002375/0.3313, allocations: 1.643 MB / 389.7 MB, free: 12 MB / 318.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.01034/0.3417, allocations: 6.729 MB / 396.4 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001561/0.3433, allocations: 0.9233 MB / 397.3 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003884/0.3472, allocations: 2.847 MB / 400.2 MB, free: 7.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.059e-05/0.3473, allocations: 50.64 kB / 400.2 MB, free: 7.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=80): time 2.775e-06/0.3473, allocations: 4 kB / 400.2 MB, free: 7.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=90): time 0.007713/0.355, allocations: 3.709 MB / 403.9 MB, free: 6.371 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.3551, allocations: 193.3 kB / 404.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/0.3567, allocations: 1.297 MB / 405.4 MB, free: 5.973 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001286/0.3568, allocations: 47.27 kB / 405.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003897/0.3572, allocations: 0.6569 MB / 406.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002326/0.3575, allocations: 316.2 kB / 406.4 MB, free: 5.465 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.002e-05/0.3575, allocations: 30.25 kB / 406.4 MB, free: 5.465 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.491e-05/0.3576, allocations: 360.6 kB / 406.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007657/0.3584, allocations: 0.5592 MB / 407.4 MB, free: 5.156 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009261/0.3593, allocations: 0.9818 MB / 408.3 MB, free: 4.672 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008972/0.3602, allocations: 0.6732 MB / 409 MB, free: 4.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.272e-06/0.3603, allocations: 3.344 kB / 409 MB, free: 4.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.002665/0.3629, allocations: 1.863 MB / 410.9 MB, free: 4.508 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007864/0.3637, allocations: 4.656 MB / 415.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.3637, allocations: 11.81 kB / 415.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004621/0.3684, allocations: 0.782 MB / 416.3 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001071/0.3695, allocations: 286 kB / 416.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001765/0.3712, allocations: 2.154 MB / 418.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.3727, allocations: 104.5 kB / 418.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001363/0.3728, allocations: 66.02 kB / 418.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.3728, allocations: 3.969 kB / 418.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00253/0.3754, allocations: 1.663 MB / 420.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.3754, allocations: 10.81 kB / 420.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00394/0.3794, allocations: 0.6326 MB / 421.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009769/0.3804, allocations: 290.8 kB / 421.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001453/0.3818, allocations: 2.013 MB / 423.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/0.3831, allocations: 104.4 kB / 423.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/0.3832, allocations: 64.55 kB / 423.7 MB, free: 11.44 MB / 334.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 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0007859/0.384, allocations: 473.9 kB / 424.2 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002341/0.3842, allocations: 143.4 kB / 424.3 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002739/0.387, allocations: 1.526 MB / 425.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-05/0.387, allocations: 12 kB / 425.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.387, allocations: 0 / 425.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.243e-05/0.387, allocations: 11.92 kB / 425.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004346/0.3914, allocations: 2.832 MB / 428.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.3914, allocations: 0 / 428.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006714/0.3921, allocations: 155.6 kB / 428.8 MB, free: 8.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002817/0.3949, allocations: 0.6384 MB / 429.5 MB, free: 7.664 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.395, allocations: 27.67 kB / 429.5 MB, free: 7.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001737/0.3968, allocations: 2.11 MB / 431.6 MB, free: 5.688 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.3968, allocations: 4.031 kB / 431.6 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003106/0.3999, allocations: 2.147 MB / 433.8 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007582/0.4007, allocations: 252.1 kB / 434 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002569/0.401, allocations: 22.12 kB / 434 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009772/0.4019, allocations: 74.56 kB / 434.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.4022, allocations: 92.92 kB / 434.2 MB, free: 3.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.29e-05/0.4023, allocations: 42.09 kB / 434.2 MB, free: 3.699 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.4036, allocations: 0.8931 MB / 435.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4036, allocations: 0 / 435.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003543/0.4071, allocations: 1.12 MB / 436.3 MB, free: 2.012 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002416/0.4096, allocations: 0.8141 MB / 437.1 MB, free: 1.281 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004315/0.4139, allocations: 2.247 MB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.4139, allocations: 2.562 kB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00125/0.4152, allocations: 0.6862 MB / 440 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002924/0.4181, allocations: 0.571 MB / 440.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004459/0.4226, allocations: 3.149 MB / 443.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008257/0.4234, allocations: 1.288 MB / 445 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001878/0.4253, allocations: 0.5838 MB / 445.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003106/0.4256, allocations: 110.9 kB / 445.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4256, allocations: 0 / 445.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of Templates: time 0.05581/0.4815, allocations: 36.58 MB / 482.3 MB, free: 5.52 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) Environment - environmentSimulation: