Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001858/0.001858, allocations: 188.5 kB / 8.353 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.507/1.507, 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.001711/0.001711, allocations: 118.1 kB / 248.1 MB, free: 6.34 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 2.21e-05/2.221e-05, allocations: 4 kB / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09617, allocations: 44.49 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.756/0.8523, allocations: 315.8 MB / 0.6429 GB, free: 12.29 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001997/0.8525, allocations: 79.31 kB / 0.643 GB, free: 12.25 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4742/1.327, allocations: 129.4 MB / 0.7693 GB, free: 47.17 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.783e-06/1.327, allocations: 0 / 0.7693 GB, free: 47.17 MB / 395.1 MB Notification: Performance of Transformations before backend: time 8.403e-05/1.327, allocations: 27.45 kB / 0.7693 GB, free: 47.15 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.00321/1.33, allocations: 1.075 MB / 0.7704 GB, free: 46.03 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/1.33, allocations: 12.03 kB / 0.7704 GB, free: 46.02 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006005/1.331, allocations: 94.23 kB / 0.7705 GB, free: 45.93 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/1.332, allocations: 0.6555 MB / 0.7711 GB, free: 45.25 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.555e-05/1.332, allocations: 88.72 kB / 0.7712 GB, free: 45.15 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/1.332, allocations: 32 kB / 0.7712 GB, free: 45.12 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001166/1.334, allocations: 0.7483 MB / 0.772 GB, free: 44.37 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/1.335, allocations: 0.8009 MB / 0.7728 GB, free: 43.54 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.081e-05/1.335, allocations: 7.938 kB / 0.7728 GB, free: 43.53 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.513e-05/1.335, allocations: 8 kB / 0.7728 GB, free: 43.52 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.669e-05/1.335, allocations: 53.22 kB / 0.7728 GB, free: 43.47 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005401/1.341, allocations: 3.149 MB / 0.7759 GB, free: 40.2 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008677/1.341, allocations: 0.6209 MB / 0.7765 GB, free: 39.57 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004518/1.342, allocations: 354.3 kB / 0.7768 GB, free: 39.22 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002643/1.345, allocations: 2.023 MB / 0.7788 GB, free: 37.02 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/1.345, allocations: 47.12 kB / 0.7789 GB, free: 36.96 MB / 395.1 MB Notification: Performance of pre-optimization done (n=56): time 2.344e-06/1.345, allocations: 0 / 0.7789 GB, free: 36.96 MB / 395.1 MB Notification: Performance of matching and sorting (n=66): time 0.006784/1.351, allocations: 2.485 MB / 0.7813 GB, free: 34.44 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.73e-05/1.351, allocations: 89.67 kB / 0.7814 GB, free: 34.33 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005607/1.352, allocations: 442.2 kB / 0.7818 GB, free: 33.89 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 7.126e-05/1.352, allocations: 29.7 kB / 0.7818 GB, free: 33.86 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001957/1.352, allocations: 351.9 kB / 0.7822 GB, free: 33.51 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/1.352, allocations: 216.7 kB / 0.7824 GB, free: 33.29 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.389e-05/1.353, allocations: 0 / 0.7824 GB, free: 33.29 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/1.353, allocations: 374.8 kB / 0.7827 GB, free: 32.92 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/1.353, allocations: 345.4 kB / 0.7831 GB, free: 32.58 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005237/1.354, allocations: 487.1 kB / 0.7835 GB, free: 32.05 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003967/1.358, allocations: 0.9957 MB / 0.7845 GB, free: 31.05 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/1.358, allocations: 7.938 kB / 0.7845 GB, free: 31.04 MB / 395.1 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.004754/1.362, allocations: 1.679 MB / 0.7861 GB, free: 29.36 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002967/1.363, allocations: 1.572 MB / 0.7877 GB, free: 27.66 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/1.363, allocations: 4 kB / 0.7877 GB, free: 27.66 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007307/1.364, allocations: 368.5 kB / 0.788 GB, free: 27.3 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000595/1.364, allocations: 159.7 kB / 0.7882 GB, free: 27.14 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/1.366, allocations: 1.242 MB / 0.7894 GB, free: 25.88 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006473/1.367, allocations: 20.03 kB / 0.7894 GB, free: 25.86 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.068e-05/1.367, allocations: 35.97 kB / 0.7894 GB, free: 25.82 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.508e-06/1.367, allocations: 8 kB / 0.7895 GB, free: 25.81 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003745/1.37, allocations: 1.303 MB / 0.7907 GB, free: 24.5 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-06/1.37, allocations: 4 kB / 0.7907 GB, free: 24.5 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004987/1.371, allocations: 244.9 kB / 0.791 GB, free: 24.26 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005822/1.372, allocations: 159.8 kB / 0.7911 GB, free: 24.1 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006062/1.372, allocations: 0.8332 MB / 0.7919 GB, free: 23.24 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005645/1.373, allocations: 35.86 kB / 0.792 GB, free: 23.21 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.031e-05/1.373, allocations: 35.94 kB / 0.792 GB, free: 23.17 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002077/1.373, allocations: 132.5 kB / 0.7921 GB, free: 23.04 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/1.373, allocations: 63.25 kB / 0.7922 GB, free: 22.97 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002555/1.376, allocations: 1.194 MB / 0.7934 GB, free: 21.77 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/1.376, allocations: 8.094 kB / 0.7934 GB, free: 21.76 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/1.376, allocations: 3.953 kB / 0.7934 GB, free: 21.76 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.345e-06/1.376, allocations: 7.969 kB / 0.7934 GB, free: 21.75 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003412/1.379, allocations: 2.021 MB / 0.7953 GB, free: 19.7 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/1.379, allocations: 4 kB / 0.7953 GB, free: 19.7 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005173/1.38, allocations: 119.9 kB / 0.7955 GB, free: 19.58 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006836/1.38, allocations: 361.1 kB / 0.7958 GB, free: 19.22 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.793e-05/1.381, allocations: 11.98 kB / 0.7958 GB, free: 19.21 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/1.382, allocations: 1.212 MB / 0.797 GB, free: 17.98 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/1.382, allocations: 7.953 kB / 0.797 GB, free: 17.97 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002758/1.385, allocations: 1.689 MB / 0.7987 GB, free: 16.26 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003336/1.385, allocations: 232.2 kB / 0.7989 GB, free: 16.01 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/1.385, allocations: 0 / 0.7989 GB, free: 16.01 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005891/1.386, allocations: 39.91 kB / 0.7989 GB, free: 15.97 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001191/1.386, allocations: 64.77 kB / 0.799 GB, free: 15.91 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.143e-05/1.386, allocations: 31.98 kB / 0.799 GB, free: 15.88 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0003105/1.387, allocations: 334.9 kB / 0.7993 GB, free: 15.55 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.387, allocations: 0 / 0.7993 GB, free: 15.55 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00167/1.388, allocations: 0.5893 MB / 0.7999 GB, free: 14.96 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.001403/1.39, allocations: 0.5917 MB / 0.8005 GB, free: 14.4 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00197/1.392, allocations: 1.292 MB / 0.8017 GB, free: 13.11 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/1.392, allocations: 3.859 kB / 0.8018 GB, free: 13.1 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007403/1.392, allocations: 450.5 kB / 0.8022 GB, free: 12.66 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001492/1.394, allocations: 311.3 kB / 0.8025 GB, free: 12.36 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00283/1.397, allocations: 1.288 MB / 0.8037 GB, free: 11.04 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006137/1.397, allocations: 1.008 MB / 0.8047 GB, free: 10 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001155/1.399, allocations: 313.9 kB / 0.805 GB, free: 9.691 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001554/1.399, allocations: 63.34 kB / 0.8051 GB, free: 9.629 MB / 395.1 MB Notification: Performance of SimCode: time 3.1e-07/1.399, allocations: 4 kB / 0.8051 GB, free: 9.625 MB / 395.1 MB Notification: Performance of Templates: time 0.2455/1.644, allocations: 19.96 MB / 0.8246 GB, free: 79.49 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)