Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001576/0.001576, allocations: 181.9 kB / 13.64 MB, free: 1.676 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.664/1.664, allocations: 194.3 MB / 208.4 MB, free: 6.711 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.001807/0.001807, allocations: 122.3 kB / 253.5 MB, free: 9.582 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.706e-05/2.71e-05, allocations: 4 kB / 304.9 MB, free: 29.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07364/0.07368, allocations: 44.5 MB / 349.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7147/0.7884, allocations: 316.6 MB / 0.6504 GB, free: 56.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.7887, allocations: 75.41 kB / 0.6505 GB, free: 56.26 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.099/1.888, allocations: 266.9 MB / 0.9111 GB, free: 64.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.923e-06/1.888, allocations: 3 kB / 0.9111 GB, free: 64.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001161/1.888, allocations: 39.2 kB / 0.9111 GB, free: 64.51 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.005091/1.893, allocations: 1.81 MB / 0.9129 GB, free: 63.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/1.893, allocations: 7.219 kB / 0.9129 GB, free: 63.68 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006768/1.894, allocations: 179.5 kB / 0.9131 GB, free: 63.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002269/1.896, allocations: 1.109 MB / 0.9142 GB, free: 63.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/1.896, allocations: 181.3 kB / 0.9144 GB, free: 63.17 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/1.896, allocations: 98.11 kB / 0.9144 GB, free: 63.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002586/1.899, allocations: 1.74 MB / 0.9161 GB, free: 63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.892e-05/1.899, allocations: 3.188 kB / 0.9161 GB, free: 63 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001481/1.899, allocations: 51.38 kB / 0.9162 GB, free: 62.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001295/1.899, allocations: 109 kB / 0.9163 GB, free: 62.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/1.902, allocations: 1.744 MB / 0.918 GB, free: 62.97 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01015/1.912, allocations: 6.396 MB / 0.9242 GB, free: 60.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/1.913, allocations: 1.157 MB / 0.9254 GB, free: 60.92 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008889/1.914, allocations: 0.7017 MB / 0.9261 GB, free: 60.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005247/1.919, allocations: 4.271 MB / 0.9302 GB, free: 58.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/1.92, allocations: 51.94 kB / 0.9303 GB, free: 58.52 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009772/1.921, allocations: 211.4 kB / 0.9305 GB, free: 58.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=97): time 3.747e-06/1.921, allocations: 2.844 kB / 0.9305 GB, free: 58.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=112): time 0.007623/1.928, allocations: 3.788 MB / 0.9342 GB, free: 57.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/1.928, allocations: 141.3 kB / 0.9343 GB, free: 57.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001397/1.93, allocations: 1.09 MB / 0.9354 GB, free: 57.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000108/1.93, allocations: 46.73 kB / 0.9354 GB, free: 57.55 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003471/1.93, allocations: 0.6003 MB / 0.936 GB, free: 57.31 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002912/1.93, allocations: 388 kB / 0.9364 GB, free: 57.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.876e-05/1.931, allocations: 28.22 kB / 0.9364 GB, free: 57.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.537e-05/1.931, allocations: 363.7 kB / 0.9368 GB, free: 56.76 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008509/1.932, allocations: 0.6215 MB / 0.9374 GB, free: 56.76 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009846/1.933, allocations: 0.9564 MB / 0.9383 GB, free: 56.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009648/1.933, allocations: 0.7472 MB / 0.939 GB, free: 56.38 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-06/1.933, allocations: 3 kB / 0.939 GB, free: 56.38 MB / 410.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003066/1.937, allocations: 2.074 MB / 0.9411 GB, free: 56.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000716/1.937, allocations: 3.523 MB / 0.9445 GB, free: 52.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/1.937, allocations: 9.062 kB / 0.9445 GB, free: 52.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006095/1.943, allocations: 1.205 MB / 0.9457 GB, free: 52.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/1.945, allocations: 295.3 kB / 0.946 GB, free: 52.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002172/1.947, allocations: 1.524 MB / 0.9475 GB, free: 52.05 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/1.949, allocations: 88.08 kB / 0.9475 GB, free: 52.04 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/1.949, allocations: 69.83 kB / 0.9476 GB, free: 52.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/1.949, allocations: 3.844 kB / 0.9476 GB, free: 52.04 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002748/1.952, allocations: 1.754 MB / 0.9493 GB, free: 52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/1.952, allocations: 16.67 kB / 0.9493 GB, free: 52 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00537/1.957, allocations: 0.9702 MB / 0.9503 GB, free: 51.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/1.958, allocations: 298.6 kB / 0.9506 GB, free: 51.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001415/1.96, allocations: 1.224 MB / 0.9518 GB, free: 51.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/1.961, allocations: 82.05 kB / 0.9518 GB, free: 51.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001454/1.961, allocations: 70.5 kB / 0.9519 GB, free: 51.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004788/1.962, allocations: 193.7 kB / 0.9521 GB, free: 51.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000262/1.962, allocations: 146.4 kB / 0.9522 GB, free: 51.26 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003819/1.966, allocations: 2 MB / 0.9542 GB, free: 51.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.169e-05/1.966, allocations: 20.8 kB / 0.9542 GB, free: 51.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/1.966, allocations: 0 / 0.9542 GB, free: 51.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/1.966, allocations: 3.938 kB / 0.9542 GB, free: 51.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004822/1.971, allocations: 3.415 MB / 0.9575 GB, free: 50.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/1.971, allocations: 3.312 kB / 0.9576 GB, free: 50.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008365/1.972, allocations: 189.3 kB / 0.9577 GB, free: 50.76 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003459/1.975, allocations: 0.935 MB / 0.9586 GB, free: 50.75 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/1.975, allocations: 33 kB / 0.9587 GB, free: 50.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002116/1.978, allocations: 1.557 MB / 0.9602 GB, free: 50.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/1.978, allocations: 0 / 0.9602 GB, free: 50.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004356/1.982, allocations: 2.716 MB / 0.9628 GB, free: 48.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009579/1.983, allocations: 402 kB / 0.9632 GB, free: 48.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001957/1.983, allocations: 29.3 kB / 0.9633 GB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/1.984, allocations: 85.3 kB / 0.9633 GB, free: 48.67 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002068/1.984, allocations: 98.83 kB / 0.9634 GB, free: 48.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/1.985, allocations: 55.41 kB / 0.9635 GB, free: 48.65 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001036/1.986, allocations: 0.8214 MB / 0.9643 GB, free: 48.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.51e-07/1.986, allocations: 2.094 kB / 0.9643 GB, free: 48.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004158/1.99, allocations: 1.244 MB / 0.9655 GB, free: 48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.002841/1.993, allocations: 1.074 MB / 0.9666 GB, free: 47.63 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005504/1.998, allocations: 2.568 MB / 0.9691 GB, free: 46.83 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/1.998, allocations: 0 / 0.9691 GB, free: 46.83 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001847/2, allocations: 0.8168 MB / 0.9699 GB, free: 46.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003436/2.003, allocations: 0.5959 MB / 0.9704 GB, free: 46.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00539/2.009, allocations: 2.446 MB / 0.9728 GB, free: 45.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000888/2.01, allocations: 1.324 MB / 0.9741 GB, free: 44.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002737/2.013, allocations: 0.6729 MB / 0.9748 GB, free: 44.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003373/2.013, allocations: 110.1 kB / 0.9749 GB, free: 44.73 MB / 410.7 MB Notification: Performance of SimCode: time 7.51e-07/2.013, allocations: 0 / 0.9749 GB, free: 44.73 MB / 410.7 MB Notification: Performance of Templates: time 0.06223/2.075, allocations: 42.4 MB / 1.016 GB, free: 10.62 MB / 410.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)