Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001051/0.001051, allocations: 178.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.172/1.172, allocations: 194.5 MB / 211.6 MB, free: 3.059 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.0016/0.0016, allocations: 110.4 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003494/0.0003494, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0807/0.08107, allocations: 44.49 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5271/0.6082, allocations: 323.7 MB / 0.6629 GB, free: 11.07 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002258/0.6084, allocations: 97.81 kB / 0.663 GB, free: 11.02 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4318/1.04, allocations: 165.2 MB / 0.8243 GB, free: 19.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.403e-06/1.04, allocations: 4 kB / 0.8243 GB, free: 19.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.902e-05/1.04, allocations: 23.98 kB / 0.8243 GB, free: 19.71 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.002116/1.042, allocations: 1.206 MB / 0.8255 GB, free: 18.45 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/1.042, allocations: 8.031 kB / 0.8255 GB, free: 18.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003018/1.043, allocations: 98.95 kB / 0.8256 GB, free: 18.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001039/1.044, allocations: 0.6673 MB / 0.8263 GB, free: 17.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.622e-05/1.044, allocations: 49.3 kB / 0.8263 GB, free: 17.59 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.47e-05/1.044, allocations: 59.92 kB / 0.8264 GB, free: 17.53 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001046/1.045, allocations: 0.8767 MB / 0.8272 GB, free: 16.59 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/1.045, allocations: 0 / 0.8272 GB, free: 16.59 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.92e-05/1.045, allocations: 31.94 kB / 0.8273 GB, free: 16.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.693e-05/1.045, allocations: 45.23 kB / 0.8273 GB, free: 16.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009494/1.046, allocations: 0.7897 MB / 0.8281 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003697/1.05, allocations: 3.845 MB / 0.8318 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006192/1.05, allocations: 483.6 kB / 0.8323 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001702/1.052, allocations: 1.915 MB / 0.8342 GB, free: 9.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.49e-05/1.052, allocations: 34.56 kB / 0.8342 GB, free: 8.977 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 1.313e-06/1.052, allocations: 0 / 0.8342 GB, free: 8.977 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.002341/1.055, allocations: 1.486 MB / 0.8356 GB, free: 7.418 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/1.055, allocations: 136.5 kB / 0.8358 GB, free: 7.254 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005196/1.055, allocations: 0.6166 MB / 0.8364 GB, free: 6.633 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.005e-05/1.055, allocations: 37.7 kB / 0.8364 GB, free: 6.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001805/1.055, allocations: 430.9 kB / 0.8368 GB, free: 6.164 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.904e-05/1.055, allocations: 149.9 kB / 0.837 GB, free: 6.016 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/1.055, allocations: 16 kB / 0.837 GB, free: 6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.838e-05/1.056, allocations: 386.7 kB / 0.8373 GB, free: 5.613 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003128/1.056, allocations: 245.8 kB / 0.8376 GB, free: 5.375 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004055/1.056, allocations: 0.556 MB / 0.8381 GB, free: 4.672 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003758/1.057, allocations: 322 kB / 0.8384 GB, free: 4.355 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/1.057, allocations: 4 kB / 0.8384 GB, free: 4.352 MB / 410.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001091/1.058, allocations: 0.8892 MB / 0.8393 GB, free: 3.457 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1418/1.2, allocations: 3.924 MB / 0.8431 GB, free: 79.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.553e-05/1.2, allocations: 11.03 kB / 0.8431 GB, free: 79.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008473/1.201, allocations: 117.4 kB / 0.8433 GB, free: 79.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/1.202, allocations: 241.1 kB / 0.8435 GB, free: 79.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006133/1.203, allocations: 1.214 MB / 0.8447 GB, free: 77.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007387/1.203, allocations: 60.53 kB / 0.8447 GB, free: 77.91 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.694e-05/1.203, allocations: 44.33 kB / 0.8448 GB, free: 77.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.604e-06/1.203, allocations: 4.844 kB / 0.8448 GB, free: 77.91 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001074/1.205, allocations: 0.7892 MB / 0.8455 GB, free: 77.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/1.205, allocations: 16.16 kB / 0.8456 GB, free: 77.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000637/1.205, allocations: 116.5 kB / 0.8457 GB, free: 77.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007812/1.206, allocations: 227.2 kB / 0.8459 GB, free: 77.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002306/1.206, allocations: 0.5987 MB / 0.8465 GB, free: 77.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005209/1.207, allocations: 52.34 kB / 0.8465 GB, free: 77.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.439e-05/1.207, allocations: 44.23 kB / 0.8466 GB, free: 77.38 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (98): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003496/1.207, allocations: 340.8 kB / 0.8469 GB, free: 77.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.337e-05/1.207, allocations: 72.31 kB / 0.847 GB, free: 77.19 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00117/1.208, allocations: 0.7468 MB / 0.8477 GB, free: 77.13 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/1.208, allocations: 10.11 kB / 0.8477 GB, free: 77.13 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/1.208, allocations: 0 / 0.8477 GB, free: 77.13 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/1.208, allocations: 5.969 kB / 0.8477 GB, free: 77.13 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/1.21, allocations: 1.427 MB / 0.8491 GB, free: 76.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/1.21, allocations: 0 / 0.8491 GB, free: 76.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006185/1.211, allocations: 148.1 kB / 0.8492 GB, free: 76.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003769/1.211, allocations: 87.55 kB / 0.8493 GB, free: 76.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/1.211, allocations: 17.59 kB / 0.8493 GB, free: 76.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004217/1.212, allocations: 1.18 MB / 0.8505 GB, free: 75.68 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/1.212, allocations: 3.75 kB / 0.8505 GB, free: 75.68 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/1.213, allocations: 1.008 MB / 0.8515 GB, free: 75.45 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/1.213, allocations: 162 kB / 0.8516 GB, free: 75.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.622e-05/1.213, allocations: 25.62 kB / 0.8517 GB, free: 75.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004054/1.214, allocations: 37.86 kB / 0.8517 GB, free: 75.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.022e-05/1.214, allocations: 48.52 kB / 0.8517 GB, free: 75.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-05/1.214, allocations: 26.62 kB / 0.8518 GB, free: 75.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004002/1.214, allocations: 479 kB / 0.8522 GB, free: 75.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.214, allocations: 0 / 0.8522 GB, free: 75.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001517/1.216, allocations: 0.6327 MB / 0.8528 GB, free: 75.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/1.217, allocations: 0.6593 MB / 0.8535 GB, free: 75.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001809/1.218, allocations: 1.087 MB / 0.8545 GB, free: 75.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/1.218, allocations: 0 / 0.8545 GB, free: 75.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000563/1.219, allocations: 341.1 kB / 0.8549 GB, free: 75.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/1.22, allocations: 284.7 kB / 0.8551 GB, free: 75.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001992/1.222, allocations: 1.874 MB / 0.857 GB, free: 74.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/1.222, allocations: 1.004 MB / 0.858 GB, free: 73.64 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009347/1.223, allocations: 333.5 kB / 0.8583 GB, free: 73.63 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/1.224, allocations: 74.09 kB / 0.8583 GB, free: 73.62 MB / 410.7 MB Notification: Performance of SimCode: time 3.51e-07/1.224, allocations: 0 / 0.8583 GB, free: 73.62 MB / 410.7 MB Notification: Performance of Templates: time 0.02867/1.252, allocations: 17.79 MB / 0.8757 GB, free: 73.04 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)