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.001204/0.001204, 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.291/1.291, allocations: 194.5 MB / 211.6 MB, free: 3.055 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.00164/0.00164, allocations: 110.3 kB / 256.9 MB, free: 4.328 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003365/0.0003365, allocations: 12 kB / 310.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09634, allocations: 44.5 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.666/0.7624, allocations: 316.5 MB / 0.6558 GB, free: 2.289 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002133/0.7627, allocations: 91.58 kB / 0.6559 GB, free: 2.242 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4392/1.202, allocations: 130.7 MB / 0.7835 GB, free: 61.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.202, allocations: 0 / 0.7835 GB, free: 61.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.408e-05/1.202, allocations: 20 kB / 0.7836 GB, free: 61.44 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002446/1.204, allocations: 1.173 MB / 0.7847 GB, free: 60.22 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/1.204, allocations: 8.031 kB / 0.7847 GB, free: 60.21 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002753/1.205, allocations: 102.8 kB / 0.7848 GB, free: 60.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/1.206, allocations: 0.6481 MB / 0.7854 GB, free: 59.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.598e-05/1.206, allocations: 104.7 kB / 0.7855 GB, free: 59.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.183e-05/1.206, allocations: 59.89 kB / 0.7856 GB, free: 59.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/1.207, allocations: 0.8931 MB / 0.7865 GB, free: 58.32 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/1.207, allocations: 4 kB / 0.7865 GB, free: 58.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.616e-05/1.207, allocations: 31.88 kB / 0.7865 GB, free: 58.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.15e-05/1.208, allocations: 49.28 kB / 0.7865 GB, free: 58.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/1.209, allocations: 0.8365 MB / 0.7874 GB, free: 57.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004551/1.213, allocations: 3.289 MB / 0.7906 GB, free: 53.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007812/1.214, allocations: 0.6609 MB / 0.7912 GB, free: 53.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002298/1.216, allocations: 2.055 MB / 0.7932 GB, free: 51.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/1.216, allocations: 39.12 kB / 0.7933 GB, free: 51 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 2.204e-06/1.216, allocations: 0 / 0.7933 GB, free: 51 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.005537/1.222, allocations: 2.844 MB / 0.796 GB, free: 48.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/1.222, allocations: 85.67 kB / 0.7961 GB, free: 47.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006244/1.223, allocations: 0.6049 MB / 0.7967 GB, free: 47.38 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.599e-05/1.223, allocations: 33.7 kB / 0.7967 GB, free: 47.34 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001637/1.223, allocations: 344.5 kB / 0.7971 GB, free: 46.99 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/1.223, allocations: 220.8 kB / 0.7973 GB, free: 46.77 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/1.223, allocations: 16 kB / 0.7973 GB, free: 46.76 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/1.223, allocations: 382.8 kB / 0.7977 GB, free: 46.38 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004655/1.224, allocations: 361.8 kB / 0.798 GB, free: 46.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005017/1.224, allocations: 0.5026 MB / 0.7985 GB, free: 45.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004956/1.225, allocations: 411 kB / 0.7989 GB, free: 45.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/1.225, allocations: 4 kB / 0.7989 GB, free: 45.06 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001546/1.226, allocations: 1.141 MB / 0.8 GB, free: 43.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002436/1.226, allocations: 1.572 MB / 0.8015 GB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/1.226, allocations: 4 kB / 0.8015 GB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001094/1.228, allocations: 452.9 kB / 0.802 GB, free: 41.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005871/1.228, allocations: 155.8 kB / 0.8021 GB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009283/1.229, allocations: 1.028 MB / 0.8031 GB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006183/1.23, allocations: 51.83 kB / 0.8032 GB, free: 40.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-05/1.23, allocations: 35.98 kB / 0.8032 GB, free: 40.47 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.988e-06/1.23, allocations: 7.938 kB / 0.8032 GB, free: 40.46 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001274/1.231, allocations: 0.9295 MB / 0.8041 GB, free: 39.53 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/1.231, allocations: 4 kB / 0.8041 GB, free: 39.52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005022/1.232, allocations: 245.2 kB / 0.8044 GB, free: 39.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005674/1.232, allocations: 171.7 kB / 0.8045 GB, free: 39.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005227/1.233, allocations: 0.8059 MB / 0.8053 GB, free: 38.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005236/1.233, allocations: 47.92 kB / 0.8054 GB, free: 38.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.592e-05/1.233, allocations: 31.98 kB / 0.8054 GB, free: 38.2 MB / 410.7 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 () * Number of clocked 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.0004025/1.234, allocations: 324.9 kB / 0.8057 GB, free: 37.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001191/1.234, allocations: 90.95 kB / 0.8058 GB, free: 37.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001552/1.235, allocations: 1.091 MB / 0.8069 GB, free: 36.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/1.235, allocations: 8 kB / 0.8069 GB, free: 36.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/1.235, allocations: 0 / 0.8069 GB, free: 36.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.964e-06/1.235, allocations: 3.984 kB / 0.8069 GB, free: 36.67 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002465/1.238, allocations: 1.99 MB / 0.8088 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/1.238, allocations: 0 / 0.8088 GB, free: 34.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000518/1.238, allocations: 119.8 kB / 0.8089 GB, free: 34.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001035/1.239, allocations: 448.5 kB / 0.8094 GB, free: 34.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.067e-05/1.24, allocations: 19.98 kB / 0.8094 GB, free: 34.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000861/1.24, allocations: 1.029 MB / 0.8104 GB, free: 32.99 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/1.24, allocations: 96 / 0.8104 GB, free: 32.99 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00178/1.242, allocations: 1.603 MB / 0.8119 GB, free: 31.36 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/1.243, allocations: 248 kB / 0.8122 GB, free: 31.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.974e-05/1.243, allocations: 12 kB / 0.8122 GB, free: 31.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005664/1.243, allocations: 51.88 kB / 0.8122 GB, free: 31.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/1.243, allocations: 56.56 kB / 0.8123 GB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.13e-05/1.243, allocations: 31.98 kB / 0.8123 GB, free: 30.95 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000461/1.244, allocations: 479 kB / 0.8128 GB, free: 30.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/1.244, allocations: 0 / 0.8128 GB, free: 30.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001632/1.246, allocations: 0.64 MB / 0.8134 GB, free: 29.85 MB / 410.7 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 () * Number of clocked 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.0009439/1.247, allocations: 0.5909 MB / 0.814 GB, free: 29.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002135/1.249, allocations: 1.352 MB / 0.8153 GB, free: 27.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.249, allocations: 5.875 kB / 0.8153 GB, free: 27.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000808/1.25, allocations: 467.4 kB / 0.8158 GB, free: 27.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/1.251, allocations: 355.7 kB / 0.8161 GB, free: 27.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/1.254, allocations: 2.023 MB / 0.8181 GB, free: 25.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003349/1.254, allocations: 1.011 MB / 0.8191 GB, free: 24 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008975/1.255, allocations: 310.5 kB / 0.8194 GB, free: 23.69 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/1.255, allocations: 71.41 kB / 0.8194 GB, free: 23.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/1.255, allocations: 0 / 0.8194 GB, free: 23.62 MB / 410.7 MB Notification: Performance of Templates: time 0.02563/1.281, allocations: 21.4 MB / 0.8403 GB, free: 2.195 MB / 410.7 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)