Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001328/0.001328, allocations: 187.8 kB / 8.351 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.592/1.592, allocations: 194.3 MB / 203.1 MB, free: 9.312 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001863/0.001863, allocations: 116.4 kB / 248.1 MB, free: 6.363 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.698e-05/1.683e-05, allocations: 0 / 298.1 MB, free: 8.246 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09035/0.09038, allocations: 44.5 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6798/0.7702, allocations: 316.5 MB / 0.6436 GB, free: 11.54 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002325/0.7705, allocations: 87.38 kB / 0.6437 GB, free: 11.49 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4657/1.236, allocations: 135 MB / 0.7756 GB, free: 41.08 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.533e-06/1.236, allocations: 0 / 0.7756 GB, free: 41.08 MB / 395.1 MB Notification: Performance of Transformations before backend: time 8.515e-05/1.236, allocations: 35.94 kB / 0.7756 GB, free: 41.05 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002648/1.239, allocations: 1.017 MB / 0.7766 GB, free: 39.99 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/1.239, allocations: 8.031 kB / 0.7766 GB, free: 39.98 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004631/1.24, allocations: 94.31 kB / 0.7767 GB, free: 39.89 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/1.241, allocations: 0.5816 MB / 0.7773 GB, free: 39.28 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/1.241, allocations: 16 kB / 0.7773 GB, free: 39.27 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/1.241, allocations: 28 kB / 0.7773 GB, free: 39.24 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008912/1.242, allocations: 0.6077 MB / 0.7779 GB, free: 38.63 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009128/1.243, allocations: 0.6582 MB / 0.7785 GB, free: 37.93 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/1.243, allocations: 11.94 kB / 0.7785 GB, free: 37.92 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.732e-05/1.243, allocations: 0 / 0.7785 GB, free: 37.92 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-05/1.243, allocations: 45.28 kB / 0.7786 GB, free: 37.88 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003563/1.246, allocations: 2.751 MB / 0.7813 GB, free: 34.99 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005331/1.247, allocations: 445.8 kB / 0.7817 GB, free: 34.54 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/1.247, allocations: 238.1 kB / 0.7819 GB, free: 34.31 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000227/1.248, allocations: 344.8 kB / 0.7823 GB, free: 33.9 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/1.248, allocations: 35 kB / 0.7823 GB, free: 33.86 MB / 395.1 MB Notification: Performance of pre-optimization done (n=48): time 2.555e-06/1.248, allocations: 0 / 0.7823 GB, free: 33.86 MB / 395.1 MB Notification: Performance of matching and sorting (n=58): time 0.004828/1.252, allocations: 1.83 MB / 0.7841 GB, free: 31.98 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/1.252, allocations: 85.67 kB / 0.7842 GB, free: 31.88 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004634/1.253, allocations: 446.1 kB / 0.7846 GB, free: 31.43 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 5.295e-05/1.253, allocations: 29.7 kB / 0.7846 GB, free: 31.39 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001681/1.253, allocations: 328.2 kB / 0.7849 GB, free: 31.07 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/1.253, allocations: 201.1 kB / 0.7851 GB, free: 30.87 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.445e-05/1.253, allocations: 0 / 0.7851 GB, free: 30.87 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.7e-05/1.253, allocations: 378.8 kB / 0.7855 GB, free: 30.49 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003382/1.254, allocations: 261.5 kB / 0.7857 GB, free: 30.24 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003776/1.254, allocations: 429.4 kB / 0.7861 GB, free: 29.75 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003401/1.258, allocations: 0.8475 MB / 0.787 GB, free: 28.91 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.802e-06/1.258, allocations: 4 kB / 0.787 GB, free: 28.9 MB / 395.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004189/1.262, allocations: 1.367 MB / 0.7883 GB, free: 27.52 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003929/1.262, allocations: 1.749 MB / 0.79 GB, free: 25.64 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/1.262, allocations: 7.984 kB / 0.79 GB, free: 25.63 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005248/1.263, allocations: 164.7 kB / 0.7902 GB, free: 25.47 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005505/1.263, allocations: 151.7 kB / 0.7903 GB, free: 25.32 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/1.265, allocations: 0.9464 MB / 0.7912 GB, free: 24.35 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006223/1.265, allocations: 32.03 kB / 0.7913 GB, free: 24.32 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.811e-05/1.265, allocations: 35.98 kB / 0.7913 GB, free: 24.28 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/1.266, allocations: 4 kB / 0.7913 GB, free: 24.28 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003902/1.269, allocations: 1.205 MB / 0.7925 GB, free: 23.07 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/1.269, allocations: 8 kB / 0.7925 GB, free: 23.06 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003587/1.27, allocations: 105.4 kB / 0.7926 GB, free: 22.96 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005456/1.27, allocations: 155.8 kB / 0.7928 GB, free: 22.8 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/1.271, allocations: 0.7982 MB / 0.7935 GB, free: 21.98 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005751/1.272, allocations: 39.81 kB / 0.7936 GB, free: 21.94 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-05/1.272, allocations: 31.98 kB / 0.7936 GB, free: 21.91 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001955/1.272, allocations: 136.5 kB / 0.7937 GB, free: 21.77 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/1.272, allocations: 63.25 kB / 0.7938 GB, free: 21.71 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/1.274, allocations: 0.8071 MB / 0.7946 GB, free: 20.89 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-06/1.274, allocations: 11.94 kB / 0.7946 GB, free: 20.88 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/1.274, allocations: 0 / 0.7946 GB, free: 20.88 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/1.274, allocations: 4.078 kB / 0.7946 GB, free: 20.88 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002736/1.277, allocations: 1.571 MB / 0.7961 GB, free: 19.26 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.649e-06/1.277, allocations: 0 / 0.7961 GB, free: 19.26 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005128/1.277, allocations: 111.8 kB / 0.7962 GB, free: 19.15 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004305/1.278, allocations: 168.7 kB / 0.7964 GB, free: 18.98 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.569e-05/1.278, allocations: 16.05 kB / 0.7964 GB, free: 18.97 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009771/1.279, allocations: 0.8529 MB / 0.7972 GB, free: 18.09 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/1.279, allocations: 0 / 0.7972 GB, free: 18.09 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/1.281, allocations: 1.252 MB / 0.7985 GB, free: 16.8 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/1.281, allocations: 144.3 kB / 0.7986 GB, free: 16.64 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001175/1.281, allocations: 11.94 kB / 0.7986 GB, free: 16.63 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005536/1.282, allocations: 19.98 kB / 0.7986 GB, free: 16.61 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/1.282, allocations: 56.47 kB / 0.7987 GB, free: 16.55 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.054e-05/1.282, allocations: 31.92 kB / 0.7987 GB, free: 16.52 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0003356/1.282, allocations: 342.9 kB / 0.799 GB, free: 16.19 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.282, allocations: 0 / 0.799 GB, free: 16.19 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001842/1.284, allocations: 0.5424 MB / 0.7996 GB, free: 15.65 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001432/1.286, allocations: 0.5911 MB / 0.8002 GB, free: 15.08 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/1.287, allocations: 1.056 MB / 0.8012 GB, free: 14.02 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/1.287, allocations: 4.375 kB / 0.8012 GB, free: 14.02 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004925/1.288, allocations: 361.9 kB / 0.8015 GB, free: 13.67 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001369/1.289, allocations: 301.4 kB / 0.8018 GB, free: 13.38 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/1.291, allocations: 1.148 MB / 0.8029 GB, free: 12.19 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/1.292, allocations: 0.9834 MB / 0.8039 GB, free: 11.18 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.0009758/1.293, allocations: 293.4 kB / 0.8042 GB, free: 10.89 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000151/1.293, allocations: 55.42 kB / 0.8042 GB, free: 10.84 MB / 395.1 MB Notification: Performance of SimCode: time 1.152e-06/1.293, allocations: 0 / 0.8042 GB, free: 10.84 MB / 395.1 MB Notification: Performance of Templates: time 0.2302/1.523, allocations: 18.25 MB / 0.8221 GB, free: 73.01 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)