Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009468/0.0009469, allocations: 178.9 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.188/1.188, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001658/0.001658, allocations: 106.8 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003039/0.0003041, allocations: 8 kB / 310.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07332/0.07364, allocations: 44.49 MB / 355.1 MB, free: 2.336 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.532/0.6057, allocations: 319.4 MB / 0.6586 GB, free: 15.43 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.606, allocations: 105.3 kB / 0.6587 GB, free: 15.38 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6313/1.237, allocations: 190.8 MB / 0.8451 GB, free: 73.16 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.733e-06/1.237, allocations: 2.062 kB / 0.8451 GB, free: 73.16 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.802e-05/1.237, allocations: 22.94 kB / 0.8451 GB, free: 73.16 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.003191/1.241, allocations: 1.41 MB / 0.8465 GB, free: 72.6 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/1.241, allocations: 11.28 kB / 0.8465 GB, free: 72.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004631/1.241, allocations: 110 kB / 0.8466 GB, free: 72.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001537/1.243, allocations: 0.7806 MB / 0.8473 GB, free: 72.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.533e-05/1.243, allocations: 48.2 kB / 0.8474 GB, free: 72.29 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001094/1.243, allocations: 60.34 kB / 0.8474 GB, free: 72.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001384/1.244, allocations: 1.048 MB / 0.8485 GB, free: 72.11 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.317e-05/1.244, allocations: 4.453 kB / 0.8485 GB, free: 72.11 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-05/1.244, allocations: 38.39 kB / 0.8485 GB, free: 72.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.689e-05/1.244, allocations: 66.31 kB / 0.8486 GB, free: 72.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/1.246, allocations: 1.009 MB / 0.8496 GB, free: 72.1 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005368/1.251, allocations: 4.395 MB / 0.8539 GB, free: 69.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007033/1.252, allocations: 0.5351 MB / 0.8544 GB, free: 69.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001846/1.254, allocations: 1.92 MB / 0.8563 GB, free: 68.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.728e-05/1.254, allocations: 36.52 kB / 0.8563 GB, free: 68.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 1.974e-06/1.254, allocations: 0 / 0.8563 GB, free: 68.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.003469/1.257, allocations: 1.882 MB / 0.8581 GB, free: 67.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/1.257, allocations: 161.2 kB / 0.8583 GB, free: 67.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007024/1.258, allocations: 0.7353 MB / 0.859 GB, free: 67.67 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.595e-05/1.258, allocations: 36.14 kB / 0.859 GB, free: 67.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/1.258, allocations: 0.4958 MB / 0.8595 GB, free: 67.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.755e-05/1.258, allocations: 163.5 kB / 0.8597 GB, free: 67.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.031e-05/1.259, allocations: 19.5 kB / 0.8597 GB, free: 67.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.415e-05/1.259, allocations: 394 kB / 0.8601 GB, free: 67.04 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003984/1.259, allocations: 300.4 kB / 0.8604 GB, free: 67.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000499/1.26, allocations: 0.6619 MB / 0.861 GB, free: 66.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004626/1.26, allocations: 398.2 kB / 0.8614 GB, free: 66.61 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.83e-06/1.26, allocations: 7.094 kB / 0.8614 GB, free: 66.61 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001354/1.261, allocations: 1.104 MB / 0.8625 GB, free: 66.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006158/1.262, allocations: 4.445 MB / 0.8668 GB, free: 61.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/1.262, allocations: 11.69 kB / 0.8668 GB, free: 61.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/1.264, allocations: 320.5 kB / 0.8671 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005925/1.264, allocations: 192.4 kB / 0.8673 GB, free: 61.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000774/1.265, allocations: 1.327 MB / 0.8686 GB, free: 60.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008906/1.266, allocations: 62.05 kB / 0.8687 GB, free: 60.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.882e-05/1.266, allocations: 47.91 kB / 0.8687 GB, free: 60.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/1.266, allocations: 3.469 kB / 0.8687 GB, free: 60.82 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001439/1.268, allocations: 0.9852 MB / 0.8697 GB, free: 60.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/1.268, allocations: 10.03 kB / 0.8697 GB, free: 60.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/1.269, allocations: 293.3 kB / 0.87 GB, free: 60.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/1.27, allocations: 195.7 kB / 0.8701 GB, free: 60.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000712/1.271, allocations: 1.286 MB / 0.8714 GB, free: 59.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000664/1.271, allocations: 69.91 kB / 0.8715 GB, free: 59.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.714e-05/1.271, allocations: 48.17 kB / 0.8715 GB, free: 59.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004219/1.272, allocations: 371.2 kB / 0.8719 GB, free: 59.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/1.272, allocations: 86.22 kB / 0.872 GB, free: 59.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001427/1.273, allocations: 0.777 MB / 0.8727 GB, free: 59.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/1.273, allocations: 5.156 kB / 0.8727 GB, free: 59.41 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/1.273, allocations: 3.375 kB / 0.8727 GB, free: 59.41 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/1.273, allocations: 3.797 kB / 0.8727 GB, free: 59.41 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00231/1.276, allocations: 1.539 MB / 0.8742 GB, free: 59.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/1.276, allocations: 2.938 kB / 0.8742 GB, free: 59.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003542/1.276, allocations: 76.69 kB / 0.8743 GB, free: 59.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/1.278, allocations: 287.9 kB / 0.8746 GB, free: 59.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.469e-05/1.278, allocations: 14.38 kB / 0.8746 GB, free: 59.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008288/1.278, allocations: 1.311 MB / 0.8759 GB, free: 58.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/1.278, allocations: 2.531 kB / 0.8759 GB, free: 58.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/1.28, allocations: 1.092 MB / 0.8769 GB, free: 57.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/1.28, allocations: 174.9 kB / 0.8771 GB, free: 57.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/1.281, allocations: 16.11 kB / 0.8771 GB, free: 57.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005141/1.281, allocations: 44.19 kB / 0.8772 GB, free: 57.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/1.281, allocations: 51.55 kB / 0.8772 GB, free: 57.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.696e-05/1.281, allocations: 19.38 kB / 0.8772 GB, free: 57.61 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000748/1.282, allocations: 0.5692 MB / 0.8778 GB, free: 57.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.282, allocations: 0 / 0.8778 GB, free: 57.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002733/1.285, allocations: 0.8025 MB / 0.8786 GB, free: 57.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002187/1.287, allocations: 0.8072 MB / 0.8794 GB, free: 57.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002629/1.29, allocations: 1.252 MB / 0.8806 GB, free: 57.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/1.29, allocations: 1.125 kB / 0.8806 GB, free: 57.15 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007911/1.29, allocations: 359.3 kB / 0.8809 GB, free: 57.14 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/1.292, allocations: 309.3 kB / 0.8812 GB, free: 57.14 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002664/1.294, allocations: 2.075 MB / 0.8832 GB, free: 56.31 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/1.295, allocations: 1.056 MB / 0.8843 GB, free: 55.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001015/1.296, allocations: 342.6 kB / 0.8846 GB, free: 55.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001648/1.296, allocations: 78.44 kB / 0.8847 GB, free: 55.58 MB / 410.7 MB Notification: Performance of SimCode: time 6.42e-07/1.296, allocations: 3.562 kB / 0.8847 GB, free: 55.58 MB / 410.7 MB Notification: Performance of Templates: time 0.02828/1.324, allocations: 21.6 MB / 0.9058 GB, free: 54.62 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)