Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.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.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001296/0.001296, allocations: 164.2 kB / 7.638 MB, free: 1.414 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.254/1.254, allocations: 170.7 MB / 178.7 MB, free: 15.65 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.001511/0.001511, allocations: 112.6 kB / 218 MB, free: 8.426 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.895e-05/1.899e-05, allocations: 3.984 kB / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07349/0.07352, allocations: 38.77 MB / 301 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9029/0.9765, allocations: 310.4 MB / 0.5971 GB, free: 125.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002874/0.9769, allocations: 83.38 kB / 0.5972 GB, free: 125.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4884/1.465, allocations: 129.4 MB / 0.7235 GB, free: 65.6 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.465, allocations: 0 / 0.7235 GB, free: 65.6 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001092/1.465, allocations: 24.66 kB / 0.7235 GB, free: 65.6 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003469/1.469, allocations: 1.08 MB / 0.7246 GB, free: 65.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/1.469, allocations: 9.406 kB / 0.7246 GB, free: 65.13 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005088/1.47, allocations: 96.53 kB / 0.7247 GB, free: 65.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001558/1.471, allocations: 0.6493 MB / 0.7253 GB, free: 64.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/1.471, allocations: 87.41 kB / 0.7254 GB, free: 64.78 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/1.471, allocations: 39.3 kB / 0.7254 GB, free: 64.77 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001471/1.473, allocations: 0.7488 MB / 0.7262 GB, free: 64.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/1.474, allocations: 0.8067 MB / 0.727 GB, free: 64.67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/1.474, allocations: 1.266 kB / 0.727 GB, free: 64.67 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.677e-05/1.474, allocations: 2.969 kB / 0.727 GB, free: 64.67 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.553e-05/1.474, allocations: 48.8 kB / 0.727 GB, free: 64.67 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005915/1.48, allocations: 3.163 MB / 0.7301 GB, free: 63.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/1.481, allocations: 0.6174 MB / 0.7307 GB, free: 63.55 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005062/1.482, allocations: 350.2 kB / 0.731 GB, free: 63.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002679/1.485, allocations: 2.03 MB / 0.733 GB, free: 62.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.568e-05/1.485, allocations: 43 kB / 0.7331 GB, free: 62.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=56): time 2.525e-06/1.485, allocations: 0.6562 kB / 0.7331 GB, free: 62.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=66): time 0.007468/1.492, allocations: 2.481 MB / 0.7355 GB, free: 61.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.105e-05/1.492, allocations: 83.98 kB / 0.7356 GB, free: 61.86 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000594/1.493, allocations: 451.8 kB / 0.736 GB, free: 61.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.393e-05/1.493, allocations: 29.33 kB / 0.736 GB, free: 61.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002573/1.493, allocations: 350.8 kB / 0.7364 GB, free: 61.56 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/1.493, allocations: 218.8 kB / 0.7366 GB, free: 61.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.536e-05/1.494, allocations: 0 / 0.7366 GB, free: 61.45 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/1.494, allocations: 375.1 kB / 0.7369 GB, free: 61.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004336/1.494, allocations: 341.9 kB / 0.7372 GB, free: 61.14 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/1.495, allocations: 498.5 kB / 0.7377 GB, free: 60.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004154/1.499, allocations: 0.9962 MB / 0.7387 GB, free: 60.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.104e-06/1.499, allocations: 0.9688 kB / 0.7387 GB, free: 60.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005237/1.504, allocations: 1.677 MB / 0.7403 GB, free: 60.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003171/1.504, allocations: 1.569 MB / 0.7419 GB, free: 59.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/1.504, allocations: 7.062 kB / 0.7419 GB, free: 59.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008123/1.505, allocations: 367.1 kB / 0.7422 GB, free: 59.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006648/1.506, allocations: 159.4 kB / 0.7424 GB, free: 59.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001811/1.508, allocations: 1.234 MB / 0.7436 GB, free: 58.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007/1.508, allocations: 26.11 kB / 0.7436 GB, free: 58.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-05/1.508, allocations: 33.84 kB / 0.7436 GB, free: 58.72 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.258e-06/1.509, allocations: 10.47 kB / 0.7436 GB, free: 58.72 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003773/1.512, allocations: 1.3 MB / 0.7449 GB, free: 58.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/1.512, allocations: 10.55 kB / 0.7449 GB, free: 58.7 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005626/1.513, allocations: 238.9 kB / 0.7452 GB, free: 58.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006092/1.514, allocations: 170.4 kB / 0.7453 GB, free: 58.69 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006385/1.514, allocations: 0.832 MB / 0.7461 GB, free: 58.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006431/1.515, allocations: 30.8 kB / 0.7462 GB, free: 58.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.798e-05/1.515, allocations: 32.73 kB / 0.7462 GB, free: 58.16 MB / 346.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 () * 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.0002465/1.515, allocations: 119.6 kB / 0.7463 GB, free: 58.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001913/1.515, allocations: 73.95 kB / 0.7464 GB, free: 58.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002846/1.518, allocations: 1.195 MB / 0.7475 GB, free: 57.93 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/1.518, allocations: 11.81 kB / 0.7476 GB, free: 57.93 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/1.518, allocations: 0.8125 kB / 0.7476 GB, free: 57.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/1.518, allocations: 2.953 kB / 0.7476 GB, free: 57.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003838/1.522, allocations: 2.031 MB / 0.7495 GB, free: 57.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/1.522, allocations: 0 / 0.7495 GB, free: 57.63 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005272/1.523, allocations: 118.3 kB / 0.7497 GB, free: 57.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007192/1.523, allocations: 369.4 kB / 0.75 GB, free: 57.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.803e-05/1.523, allocations: 13.14 kB / 0.75 GB, free: 57.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001745/1.525, allocations: 1.223 MB / 0.7512 GB, free: 57.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.525, allocations: 0 / 0.7512 GB, free: 57.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003043/1.528, allocations: 1.678 MB / 0.7528 GB, free: 56.89 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005277/1.529, allocations: 238.5 kB / 0.7531 GB, free: 56.76 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001966/1.529, allocations: 0 / 0.7531 GB, free: 56.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006797/1.53, allocations: 39.09 kB / 0.7531 GB, free: 56.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001271/1.53, allocations: 58.14 kB / 0.7532 GB, free: 56.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.666e-05/1.53, allocations: 31.44 kB / 0.7532 GB, free: 56.75 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004068/1.53, allocations: 342.5 kB / 0.7535 GB, free: 56.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.53, allocations: 0 / 0.7535 GB, free: 56.67 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002071/1.532, allocations: 0.5898 MB / 0.7541 GB, free: 56.58 MB / 346.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 () * 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.001699/1.534, allocations: 0.5823 MB / 0.7547 GB, free: 56.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00236/1.537, allocations: 1.291 MB / 0.7559 GB, free: 56.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.537, allocations: 5.719 kB / 0.7559 GB, free: 56.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008223/1.537, allocations: 441.7 kB / 0.7564 GB, free: 56.35 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001656/1.539, allocations: 312.8 kB / 0.7567 GB, free: 56.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002965/1.542, allocations: 1.287 MB / 0.7579 GB, free: 56.05 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005323/1.543, allocations: 1.011 MB / 0.7589 GB, free: 55.34 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001254/1.544, allocations: 309.7 kB / 0.7592 GB, free: 55.33 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/1.544, allocations: 69.14 kB / 0.7593 GB, free: 55.32 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/1.544, allocations: 0 / 0.7593 GB, free: 55.32 MB / 346.7 MB Notification: Performance of Templates: time 0.03163/1.576, allocations: 19.95 MB / 0.7787 GB, free: 54.12 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)