Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.1_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.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001525/0.001525, allocations: 156.2 kB / 7.633 MB, free: 1.445 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.136/1.136, allocations: 170.6 MB / 178.7 MB, free: 7.051 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.0016/0.0016, allocations: 106 kB / 218 MB, free: 15.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.065e-05/2.067e-05, allocations: 4 kB / 262.2 MB, free: 3.062 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.2996, allocations: 38.76 MB / 301 MB, free: 39.11 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5954/0.8951, allocations: 313.3 MB / 0.5999 GB, free: 69.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002908/0.8954, allocations: 92.59 kB / 0.6 GB, free: 69.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5994/1.495, allocations: 188.9 MB / 0.7845 GB, free: 22.85 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.342e-06/1.495, allocations: 0 / 0.7845 GB, free: 22.85 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.569e-05/1.495, allocations: 28 kB / 0.7845 GB, free: 22.82 MB / 346.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.003585/1.499, allocations: 1.297 MB / 0.7858 GB, free: 21.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/1.499, allocations: 8.031 kB / 0.7858 GB, free: 21.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006169/1.499, allocations: 119.2 kB / 0.7859 GB, free: 21.36 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/1.501, allocations: 0.7641 MB / 0.7867 GB, free: 20.57 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.126e-05/1.501, allocations: 32 kB / 0.7867 GB, free: 20.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001378/1.501, allocations: 32 kB / 0.7867 GB, free: 20.5 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001285/1.502, allocations: 0.8927 MB / 0.7876 GB, free: 19.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/1.504, allocations: 0.9498 MB / 0.7885 GB, free: 18.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.345e-05/1.504, allocations: 7.938 kB / 0.7885 GB, free: 18.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-05/1.504, allocations: 0 / 0.7885 GB, free: 18.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.642e-05/1.504, allocations: 69.23 kB / 0.7886 GB, free: 18.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005506/1.509, allocations: 4.252 MB / 0.7927 GB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/1.51, allocations: 0.5119 MB / 0.7932 GB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003302/1.51, allocations: 286.1 kB / 0.7935 GB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002048/1.513, allocations: 1.961 MB / 0.7954 GB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/1.513, allocations: 42.83 kB / 0.7955 GB, free: 11.04 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/1.513, allocations: 7.938 kB / 0.7955 GB, free: 11.04 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.00504/1.518, allocations: 1.715 MB / 0.7971 GB, free: 9.266 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.422e-05/1.518, allocations: 158.2 kB / 0.7973 GB, free: 9.074 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000702/1.518, allocations: 0.6135 MB / 0.7979 GB, free: 8.449 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.951e-05/1.518, allocations: 33.7 kB / 0.7979 GB, free: 8.41 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002789/1.519, allocations: 0.4942 MB / 0.7984 GB, free: 7.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/1.519, allocations: 161.8 kB / 0.7986 GB, free: 7.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-05/1.519, allocations: 0 / 0.7986 GB, free: 7.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/1.519, allocations: 390.7 kB / 0.7989 GB, free: 7.359 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003829/1.519, allocations: 286.5 kB / 0.7992 GB, free: 7.082 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004817/1.52, allocations: 0.6371 MB / 0.7998 GB, free: 6.27 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005886/1.526, allocations: 1.371 MB / 0.8012 GB, free: 4.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/1.526, allocations: 4 kB / 0.8012 GB, free: 4.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.007187/1.533, allocations: 1.995 MB / 0.8031 GB, free: 2.891 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2068/1.74, allocations: 4.437 MB / 0.8075 GB, free: 46.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.54e-05/1.74, allocations: 11.81 kB / 0.8075 GB, free: 46.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008048/1.741, allocations: 160.2 kB / 0.8076 GB, free: 46.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008809/1.742, allocations: 193.9 kB / 0.8078 GB, free: 46.77 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/1.744, allocations: 1.479 MB / 0.8093 GB, free: 45.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001159/1.745, allocations: 48.09 kB / 0.8093 GB, free: 45.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001955/1.745, allocations: 50.86 kB / 0.8093 GB, free: 45.74 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/1.745, allocations: 5.969 kB / 0.8094 GB, free: 45.74 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006592/1.752, allocations: 1.813 MB / 0.8111 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/1.752, allocations: 9.75 kB / 0.8111 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005215/1.752, allocations: 160 kB / 0.8113 GB, free: 45.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006256/1.753, allocations: 190.9 kB / 0.8115 GB, free: 45.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/1.754, allocations: 1.386 MB / 0.8128 GB, free: 44.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008944/1.755, allocations: 44.73 kB / 0.8129 GB, free: 44.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.77e-05/1.755, allocations: 46.22 kB / 0.8129 GB, free: 44.66 MB / 346.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 () * 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.0002447/1.756, allocations: 140.8 kB / 0.813 GB, free: 44.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/1.756, allocations: 81.16 kB / 0.8131 GB, free: 44.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002156/1.758, allocations: 0.7964 MB / 0.8139 GB, free: 44.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/1.758, allocations: 3.938 kB / 0.8139 GB, free: 44.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/1.758, allocations: 0.9844 kB / 0.8139 GB, free: 44.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/1.758, allocations: 3.938 kB / 0.8139 GB, free: 44.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003074/1.761, allocations: 1.491 MB / 0.8154 GB, free: 44.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/1.761, allocations: 3.688 kB / 0.8154 GB, free: 44.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003504/1.761, allocations: 77.45 kB / 0.8154 GB, free: 44.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005188/1.762, allocations: 156.3 kB / 0.8156 GB, free: 44.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.993e-05/1.762, allocations: 7.078 kB / 0.8156 GB, free: 44.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/1.763, allocations: 1.383 MB / 0.8169 GB, free: 43.13 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/1.763, allocations: 7.359 kB / 0.817 GB, free: 43.13 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/1.765, allocations: 1.112 MB / 0.818 GB, free: 42.92 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/1.765, allocations: 167.8 kB / 0.8182 GB, free: 42.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001636/1.766, allocations: 7.828 kB / 0.8182 GB, free: 42.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004832/1.766, allocations: 31 kB / 0.8182 GB, free: 42.79 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/1.766, allocations: 49.17 kB / 0.8183 GB, free: 42.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.262e-05/1.766, allocations: 22.12 kB / 0.8183 GB, free: 42.79 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005116/1.767, allocations: 466.3 kB / 0.8187 GB, free: 42.7 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.767, allocations: 0 / 0.8187 GB, free: 42.7 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0028/1.77, allocations: 0.7544 MB / 0.8195 GB, free: 42.7 MB / 346.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]) * 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.002776/1.772, allocations: 0.7932 MB / 0.8203 GB, free: 42.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002199/1.775, allocations: 1.152 MB / 0.8214 GB, free: 42.59 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/1.775, allocations: 4.625 kB / 0.8214 GB, free: 42.59 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005621/1.775, allocations: 286.4 kB / 0.8217 GB, free: 42.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001385/1.777, allocations: 292.9 kB / 0.8219 GB, free: 42.58 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002536/1.779, allocations: 1.295 MB / 0.8232 GB, free: 42.27 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005833/1.78, allocations: 1.057 MB / 0.8242 GB, free: 41.56 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001402/1.781, allocations: 369.9 kB / 0.8246 GB, free: 41.54 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001641/1.781, allocations: 62.67 kB / 0.8247 GB, free: 41.54 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/1.781, allocations: 0.9688 kB / 0.8247 GB, free: 41.54 MB / 346.7 MB Notification: Performance of Templates: time 0.04478/1.826, allocations: 21.02 MB / 0.8452 GB, free: 40.41 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)