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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001658/0.001658, allocations: 190.2 kB / 8.132 MB, free: 2.199 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.127/1.127, allocations: 194.2 MB / 202.8 MB, free: 8.668 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.001925/0.001925, allocations: 118.5 kB / 247.7 MB, free: 6.379 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.602e-06/6.632e-06, allocations: 0 / 297.6 MB, free: 8 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0841/0.08412, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5496/0.6338, allocations: 315.9 MB / 0.6425 GB, free: 10.77 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.6341, allocations: 79.14 kB / 0.6426 GB, free: 10.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.9339/1.568, allocations: 266.4 MB / 0.9027 GB, free: 54.65 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001715/1.568, allocations: 46.33 kB / 0.9028 GB, free: 54.63 MB / 394.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.00706/1.575, allocations: 1.829 MB / 0.9045 GB, free: 53.33 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/1.575, allocations: 8.625 kB / 0.9046 GB, free: 53.33 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/1.577, allocations: 179.9 kB / 0.9047 GB, free: 53.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/1.58, allocations: 1.118 MB / 0.9058 GB, free: 52.47 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001597/1.58, allocations: 144 kB / 0.906 GB, free: 52.36 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004395/1.58, allocations: 55.88 kB / 0.906 GB, free: 52.36 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003046/1.583, allocations: 1.64 MB / 0.9076 GB, free: 51.61 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003019/1.587, allocations: 1.634 MB / 0.9092 GB, free: 50.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.262e-05/1.587, allocations: 0 / 0.9092 GB, free: 50.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002211/1.587, allocations: 2.938 kB / 0.9092 GB, free: 50.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001262/1.587, allocations: 120.3 kB / 0.9093 GB, free: 50.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01152/1.598, allocations: 6.204 MB / 0.9154 GB, free: 44.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/1.6, allocations: 0.8887 MB / 0.9162 GB, free: 43.68 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000876/1.601, allocations: 0.6988 MB / 0.9169 GB, free: 42.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005254/1.606, allocations: 4.19 MB / 0.921 GB, free: 38.42 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/1.606, allocations: 43.34 kB / 0.9211 GB, free: 38.37 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 2.815e-06/1.606, allocations: 0 / 0.9211 GB, free: 38.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=112): time 0.01275/1.619, allocations: 4.294 MB / 0.9253 GB, free: 34.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.87e-05/1.619, allocations: 141.5 kB / 0.9254 GB, free: 33.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/1.62, allocations: 0.8198 MB / 0.9262 GB, free: 33.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000119/1.62, allocations: 25.7 kB / 0.9262 GB, free: 33.04 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002045/1.62, allocations: 470.8 kB / 0.9267 GB, free: 32.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002765/1.62, allocations: 381.1 kB / 0.927 GB, free: 32.2 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.725e-05/1.621, allocations: 0 / 0.927 GB, free: 32.2 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.55e-05/1.621, allocations: 361.9 kB / 0.9274 GB, free: 31.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008371/1.621, allocations: 0.6287 MB / 0.928 GB, free: 31.21 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00094/1.622, allocations: 0.9476 MB / 0.9289 GB, free: 30.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/1.634, allocations: 2.47 MB / 0.9313 GB, free: 27.74 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.888e-05/1.634, allocations: 7.906 kB / 0.9313 GB, free: 27.73 MB / 394.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.0159/1.649, allocations: 3.739 MB / 0.935 GB, free: 24.04 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009202/1.65, allocations: 3.483 MB / 0.9384 GB, free: 20.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.495e-05/1.651, allocations: 8 kB / 0.9384 GB, free: 20.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006785/1.657, allocations: 1.12 MB / 0.9395 GB, free: 19.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/1.659, allocations: 295.5 kB / 0.9398 GB, free: 18.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004485/1.663, allocations: 1.977 MB / 0.9417 GB, free: 16.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/1.665, allocations: 59.8 kB / 0.9418 GB, free: 16.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003172/1.666, allocations: 72.14 kB / 0.9418 GB, free: 16.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/1.666, allocations: 7.938 kB / 0.9418 GB, free: 16.79 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0129/1.679, allocations: 3.118 MB / 0.9449 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.631e-05/1.679, allocations: 8 kB / 0.9449 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00654/1.685, allocations: 0.9484 MB / 0.9458 GB, free: 12.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/1.687, allocations: 303.5 kB / 0.9461 GB, free: 12.42 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/1.689, allocations: 1.33 MB / 0.9474 GB, free: 11.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/1.69, allocations: 59.73 kB / 0.9475 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000304/1.691, allocations: 67.97 kB / 0.9475 GB, free: 10.95 MB / 394.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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.00059/1.691, allocations: 156.3 kB / 0.9477 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004203/1.692, allocations: 126.5 kB / 0.9478 GB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006453/1.698, allocations: 2.257 MB / 0.95 GB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/1.698, allocations: 15.98 kB / 0.95 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/1.698, allocations: 0 / 0.95 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/1.698, allocations: 3.984 kB / 0.95 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007625/1.706, allocations: 3.547 MB / 0.9535 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/1.706, allocations: 0 / 0.9535 GB, free: 4.805 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/1.707, allocations: 187.8 kB / 0.9537 GB, free: 4.621 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003113/1.71, allocations: 0.8196 MB / 0.9545 GB, free: 3.809 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/1.71, allocations: 15.98 kB / 0.9545 GB, free: 3.793 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003782/1.714, allocations: 1.97 MB / 0.9564 GB, free: 1.797 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/1.714, allocations: 7.312 kB / 0.9564 GB, free: 1.793 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1373/1.851, allocations: 2.977 MB / 0.9593 GB, free: 86.51 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000925/1.852, allocations: 373.8 kB / 0.9597 GB, free: 86.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002693/1.853, allocations: 7.5 kB / 0.9597 GB, free: 86.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/1.854, allocations: 63.55 kB / 0.9597 GB, free: 86.42 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002177/1.854, allocations: 95.83 kB / 0.9598 GB, free: 86.42 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/1.854, allocations: 48.36 kB / 0.9599 GB, free: 86.42 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0007582/1.855, allocations: 0.6102 MB / 0.9605 GB, free: 86.31 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00369/1.859, allocations: 1.164 MB / 0.9616 GB, free: 86.31 MB / 394.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.002597/1.861, allocations: 1.042 MB / 0.9626 GB, free: 86.22 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004689/1.866, allocations: 2.499 MB / 0.9651 GB, free: 86.19 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/1.866, allocations: 0 / 0.9651 GB, free: 86.19 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001747/1.868, allocations: 0.8066 MB / 0.9659 GB, free: 86.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002965/1.871, allocations: 0.5083 MB / 0.9663 GB, free: 86.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005667/1.876, allocations: 2.451 MB / 0.9687 GB, free: 85.72 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/1.878, allocations: 1.474 MB / 0.9702 GB, free: 85 MB / 394.7 MB Notification: Performance of SimCode: time 8.62e-07/1.878, allocations: 0 / 0.9702 GB, free: 85 MB / 394.7 MB Notification: Performance of Templates: time 0.0645/1.942, allocations: 44.1 MB / 1.013 GB, free: 83.05 MB / 394.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)