Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.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.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") translateModel(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow") [: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.1+maint.om/package.mo): time 0.003739/0.003739, allocations: 172.1 kB / 7.447 MB, free: 2.508 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.227/1.227, allocations: 170.6 MB / 178.4 MB, free: 15.46 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.001865/0.001866, allocations: 116.5 kB / 217.7 MB, free: 8.238 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.636e-06/8.666e-06, allocations: 4 kB / 261.7 MB, free: 26.69 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1076, allocations: 38.76 MB / 300.5 MB, free: 3.934 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9096/1.017, allocations: 398.8 MB / 0.6829 GB, free: 42.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/1.018, allocations: 86.06 kB / 0.683 GB, free: 42.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.9071/1.925, allocations: 209.4 MB / 0.8875 GB, free: 49.22 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001865/1.925, allocations: 35.41 kB / 0.8876 GB, free: 49.21 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008142/1.933, allocations: 1.803 MB / 0.8893 GB, free: 48.39 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.957e-05/1.933, allocations: 12.45 kB / 0.8893 GB, free: 48.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001475/1.935, allocations: 168 kB / 0.8895 GB, free: 48.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003519/1.938, allocations: 0.9881 MB / 0.8905 GB, free: 48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002625/1.939, allocations: 201.9 kB / 0.8906 GB, free: 47.85 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006133/1.939, allocations: 57.38 kB / 0.8907 GB, free: 47.85 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004562/1.944, allocations: 1.656 MB / 0.8923 GB, free: 47.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004103/1.948, allocations: 1.675 MB / 0.894 GB, free: 47.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.334e-05/1.948, allocations: 3.906 kB / 0.894 GB, free: 47.65 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001666/1.948, allocations: 6.156 kB / 0.894 GB, free: 47.65 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/1.948, allocations: 112.3 kB / 0.8941 GB, free: 47.65 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01439/1.963, allocations: 6.654 MB / 0.9006 GB, free: 45.62 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/1.964, allocations: 0.9772 MB / 0.9015 GB, free: 45.6 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001311/1.966, allocations: 0.8437 MB / 0.9023 GB, free: 45.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006647/1.972, allocations: 3.919 MB / 0.9062 GB, free: 43.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/1.973, allocations: 48.75 kB / 0.9062 GB, free: 43.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=110): time 4.248e-06/1.973, allocations: 0 / 0.9062 GB, free: 43.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.02012/1.993, allocations: 6.481 MB / 0.9125 GB, free: 43.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.596e-05/1.993, allocations: 151.3 kB / 0.9127 GB, free: 43.2 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/1.994, allocations: 0.6579 MB / 0.9133 GB, free: 43.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001576/1.994, allocations: 29.61 kB / 0.9134 GB, free: 43.03 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000342/1.995, allocations: 424 kB / 0.9138 GB, free: 42.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004147/1.995, allocations: 404.1 kB / 0.9142 GB, free: 42.51 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.011e-05/1.995, allocations: 0 / 0.9142 GB, free: 42.51 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/1.995, allocations: 361.8 kB / 0.9145 GB, free: 42.2 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/1.996, allocations: 0.7589 MB / 0.9152 GB, free: 42.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/1.998, allocations: 0.9991 MB / 0.9162 GB, free: 41.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009969/2.008, allocations: 2.433 MB / 0.9186 GB, free: 41.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-05/2.008, allocations: 3.906 kB / 0.9186 GB, free: 41.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.01451/2.022, allocations: 3.988 MB / 0.9225 GB, free: 41.78 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007998/2.023, allocations: 2.349 MB / 0.9248 GB, free: 39.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/2.023, allocations: 7.281 kB / 0.9248 GB, free: 39.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/2.026, allocations: 1.004 MB / 0.9258 GB, free: 39.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/2.027, allocations: 225.8 kB / 0.926 GB, free: 39.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008531/2.035, allocations: 6.66 MB / 0.9325 GB, free: 35.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/2.037, allocations: 68 kB / 0.9326 GB, free: 35.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/2.038, allocations: 59.22 kB / 0.9326 GB, free: 35.15 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/2.038, allocations: 3.594 kB / 0.9326 GB, free: 35.15 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01081/2.048, allocations: 3.108 MB / 0.9356 GB, free: 34.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.517e-05/2.049, allocations: 10.23 kB / 0.9357 GB, free: 34.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002079/2.051, allocations: 0.7187 MB / 0.9364 GB, free: 34.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/2.052, allocations: 228.2 kB / 0.9366 GB, free: 34.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006903/2.059, allocations: 6.44 MB / 0.9429 GB, free: 29.26 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/2.061, allocations: 67.06 kB / 0.9429 GB, free: 29.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001613/2.061, allocations: 58.81 kB / 0.943 GB, free: 29.24 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006733/2.061, allocations: 140 kB / 0.9431 GB, free: 29.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000313/2.062, allocations: 115.3 kB / 0.9432 GB, free: 29.07 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009527/2.071, allocations: 3.265 MB / 0.9464 GB, free: 28.15 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-05/2.071, allocations: 15.66 kB / 0.9464 GB, free: 28.15 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/2.071, allocations: 0 / 0.9464 GB, free: 28.15 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.598e-05/2.071, allocations: 6.891 kB / 0.9464 GB, free: 28.15 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/2.084, allocations: 4.665 MB / 0.951 GB, free: 26.54 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/2.084, allocations: 1.312 kB / 0.951 GB, free: 26.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000952/2.085, allocations: 155.9 kB / 0.9511 GB, free: 26.53 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002402/2.087, allocations: 1.014 MB / 0.9521 GB, free: 25.76 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/2.087, allocations: 23.41 kB / 0.9522 GB, free: 25.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008343/2.095, allocations: 6.658 MB / 0.9587 GB, free: 19.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/2.096, allocations: 0 / 0.9587 GB, free: 19.33 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009039/2.105, allocations: 4.207 MB / 0.9628 GB, free: 15.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/2.106, allocations: 401.2 kB / 0.9632 GB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002373/2.106, allocations: 4 kB / 0.9632 GB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001107/2.107, allocations: 71.05 kB / 0.9632 GB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003321/2.107, allocations: 132.9 kB / 0.9634 GB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001396/2.108, allocations: 46.64 kB / 0.9634 GB, free: 15.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0008368/2.108, allocations: 0.4947 MB / 0.9639 GB, free: 14.81 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004476/2.113, allocations: 1.04 MB / 0.9649 GB, free: 13.79 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 12,2 4,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002199/2.115, allocations: 0.7806 MB / 0.9657 GB, free: 13.16 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005982/2.121, allocations: 3.457 MB / 0.969 GB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/2.121, allocations: 0 / 0.969 GB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002359/2.123, allocations: 1.265 MB / 0.9703 GB, free: 8.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002448/2.126, allocations: 473.7 kB / 0.9707 GB, free: 8.555 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007306/2.133, allocations: 2.57 MB / 0.9732 GB, free: 6.492 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/2.135, allocations: 1.431 MB / 0.9746 GB, free: 5.281 MB / 346.7 MB Notification: Performance of SimCode: time 1.462e-06/2.135, allocations: 0 / 0.9746 GB, free: 5.281 MB / 346.7 MB Notification: Performance of Templates: time 0.2556/2.39, allocations: 44.82 MB / 1.018 GB, free: 90.64 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.pipe 2>&1)