Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") translateModel(Modelica.Fluid.Examples.Tanks.EmptyTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8205/0.8205, allocations: 110.8 MB / 118.3 MB, free: 14.48 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.002067/0.002067, allocations: 151.5 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.258e-05, allocations: 4 kB / 173.8 MB, free: 22.81 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05862/0.05866, allocations: 25.18 MB / 199 MB, free: 13.71 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6497/0.7084, allocations: 235.7 MB / 434.7 MB, free: 60.64 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.7086, allocations: 66.69 kB / 434.8 MB, free: 60.64 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3917/1.1, allocations: 121.4 MB / 0.5432 GB, free: 44.52 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.294e-06/1.1, allocations: 0 / 0.5432 GB, free: 44.52 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001176/1.101, allocations: 21.7 kB / 0.5432 GB, free: 44.52 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 130 * Number of variables: 130 Notification: Performance of Generate backend data structure: time 0.003113/1.104, allocations: 1.009 MB / 0.5442 GB, free: 43.96 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/1.104, allocations: 11.44 kB / 0.5442 GB, free: 43.96 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004206/1.104, allocations: 81.31 kB / 0.5443 GB, free: 43.93 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/1.106, allocations: 0.5926 MB / 0.5449 GB, free: 43.68 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/1.106, allocations: 93.72 kB / 0.545 GB, free: 43.62 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/1.106, allocations: 30.78 kB / 0.545 GB, free: 43.62 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001163/1.107, allocations: 0.6606 MB / 0.5457 GB, free: 43.61 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/1.108, allocations: 0.7546 MB / 0.5464 GB, free: 43.5 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/1.109, allocations: 6.531 kB / 0.5464 GB, free: 43.5 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.325e-05/1.109, allocations: 0 / 0.5464 GB, free: 43.5 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.35e-05/1.109, allocations: 53.27 kB / 0.5464 GB, free: 43.5 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004973/1.114, allocations: 2.972 MB / 0.5493 GB, free: 42.3 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000975/1.115, allocations: 0.5864 MB / 0.5499 GB, free: 42.27 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004099/1.115, allocations: 325.3 kB / 0.5502 GB, free: 42.26 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002663/1.118, allocations: 1.867 MB / 0.5521 GB, free: 41.19 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/1.118, allocations: 41.78 kB / 0.5521 GB, free: 41.15 MB / 234.7 MB Notification: Performance of pre-optimization done (n=52): time 2.104e-06/1.118, allocations: 0 / 0.5521 GB, free: 41.15 MB / 234.7 MB Notification: Performance of matching and sorting (n=60): time 0.006608/1.124, allocations: 2.351 MB / 0.5544 GB, free: 40.73 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.082e-05/1.125, allocations: 88.02 kB / 0.5545 GB, free: 40.64 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00055/1.125, allocations: 409.4 kB / 0.5549 GB, free: 40.52 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 6.036e-05/1.125, allocations: 25.7 kB / 0.5549 GB, free: 40.49 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002188/1.125, allocations: 324.2 kB / 0.5552 GB, free: 40.32 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/1.126, allocations: 206 kB / 0.5554 GB, free: 40.19 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.92e-05/1.126, allocations: 0 / 0.5554 GB, free: 40.19 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/1.126, allocations: 372.6 kB / 0.5558 GB, free: 39.88 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004033/1.126, allocations: 299.4 kB / 0.556 GB, free: 39.88 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004852/1.127, allocations: 450.9 kB / 0.5565 GB, free: 39.71 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001603/1.128, allocations: 0.5232 MB / 0.557 GB, free: 39.71 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.986e-06/1.128, allocations: 3.812 kB / 0.557 GB, free: 39.71 MB / 234.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002635/1.131, allocations: 1.164 MB / 0.5581 GB, free: 39.62 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/1.131, allocations: 14.2 kB / 0.5581 GB, free: 39.62 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/1.131, allocations: 3.875 kB / 0.5581 GB, free: 39.62 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007123/1.132, allocations: 344 kB / 0.5585 GB, free: 39.58 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005677/1.132, allocations: 148.1 kB / 0.5586 GB, free: 39.58 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001887/1.134, allocations: 1.203 MB / 0.5598 GB, free: 38.86 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007148/1.135, allocations: 34.64 kB / 0.5598 GB, free: 38.85 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.967e-05/1.135, allocations: 32.5 kB / 0.5598 GB, free: 38.85 MB / 234.7 MB Warning: Assuming fixed start value for the following 4 variables: tank2.level:VARIABLE(min = max(0.0, 0.0) start = max(tank2.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank2.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank2.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real tank1.level:VARIABLE(min = max(0.0, 0.0) start = max(tank1.level_start, 1e-15) unit = "m" stateSelect=StateSelect.prefer ) "Level height of tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = tank1.T_start unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003459/1.135, allocations: 167.3 kB / 0.56 GB, free: 38.73 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/1.136, allocations: 63.34 kB / 0.5601 GB, free: 38.7 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002805/1.138, allocations: 1.134 MB / 0.5612 GB, free: 38.34 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/1.138, allocations: 9.469 kB / 0.5612 GB, free: 38.34 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/1.138, allocations: 0 / 0.5612 GB, free: 38.34 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/1.138, allocations: 4.688 kB / 0.5612 GB, free: 38.34 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00391/1.142, allocations: 1.942 MB / 0.5631 GB, free: 37.53 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/1.142, allocations: 3.344 kB / 0.5631 GB, free: 37.53 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005197/1.143, allocations: 110.3 kB / 0.5632 GB, free: 37.53 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006863/1.144, allocations: 357.3 kB / 0.5635 GB, free: 37.44 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-05/1.144, allocations: 15.33 kB / 0.5635 GB, free: 37.43 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001835/1.145, allocations: 1.209 MB / 0.5647 GB, free: 36.71 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/1.145, allocations: 3.656 kB / 0.5647 GB, free: 36.71 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002868/1.148, allocations: 1.609 MB / 0.5663 GB, free: 36.07 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/1.149, allocations: 139.9 kB / 0.5664 GB, free: 35.94 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001386/1.149, allocations: 0 / 0.5664 GB, free: 35.94 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006397/1.149, allocations: 41.67 kB / 0.5665 GB, free: 35.94 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/1.15, allocations: 53.64 kB / 0.5665 GB, free: 35.93 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.619e-05/1.15, allocations: 26.83 kB / 0.5665 GB, free: 35.93 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0004238/1.15, allocations: 313.5 kB / 0.5668 GB, free: 35.77 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.61e-07/1.15, allocations: 2.75 kB / 0.5669 GB, free: 35.77 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001646/1.152, allocations: 409.6 kB / 0.5672 GB, free: 35.67 MB / 234.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: 0 () * Number of discrete states: 0 () * 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 {4 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.001318/1.153, allocations: 0.4951 MB / 0.5677 GB, free: 35.5 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001632/1.155, allocations: 0.8204 MB / 0.5685 GB, free: 35.25 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/1.155, allocations: 0 / 0.5685 GB, free: 35.25 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009636/1.156, allocations: 474.5 kB / 0.569 GB, free: 35.1 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/1.157, allocations: 331.6 kB / 0.5693 GB, free: 34.88 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003017/1.16, allocations: 1.264 MB / 0.5705 GB, free: 33.89 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/1.161, allocations: 0.9894 MB / 0.5715 GB, free: 32.98 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0007478/1.162, allocations: 189.5 kB / 0.5717 GB, free: 32.86 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/1.162, allocations: 62.62 kB / 0.5717 GB, free: 32.8 MB / 234.7 MB Notification: Performance of SimCode: time 6.71e-07/1.162, allocations: 0 / 0.5717 GB, free: 32.8 MB / 234.7 MB Notification: Performance of Templates: time 0.02492/1.187, allocations: 16.49 MB / 0.5878 GB, free: 18.37 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.EmptyTanks.pipe 2>&1)