Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.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.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.7603/0.7603, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001774/0.001774, allocations: 164 kB / 143.7 MB, free: 4.879 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.434e-06/7.454e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04519/0.04522, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1399/0.1852, allocations: 33.18 MB / 231.8 MB, free: 4.336 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001891/0.1854, allocations: 51.62 kB / 231.8 MB, free: 4.336 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.004503/0.1899, allocations: 1.274 MB / 233.1 MB, free: 4.285 MB / 170.7 MB Notification: Performance of Transformations before backend: time 7.383e-06/0.1899, allocations: 0 / 233.1 MB, free: 4.285 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003889/0.1903, allocations: 433.3 kB / 233.5 MB, free: 3.859 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1904, allocations: 7.625 kB / 233.5 MB, free: 3.859 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.435e-05/0.1904, allocations: 9.984 kB / 233.6 MB, free: 3.855 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.1906, allocations: 178.5 kB / 233.7 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.1906, allocations: 0 / 233.7 MB, free: 3.648 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.596e-05/0.1906, allocations: 7.875 kB / 233.7 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001345/0.1908, allocations: 31.84 kB / 233.8 MB, free: 3.645 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.1909, allocations: 81.31 kB / 233.8 MB, free: 3.582 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.1909, allocations: 3.938 kB / 233.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.1909, allocations: 6.938 kB / 233.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.1909, allocations: 0.6562 kB / 233.9 MB, free: 3.578 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003295/0.1913, allocations: 353.7 kB / 234.2 MB, free: 3.242 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.784e-05/0.1914, allocations: 90.94 kB / 234.3 MB, free: 3.168 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.412e-05/0.1914, allocations: 49.86 kB / 234.3 MB, free: 3.141 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.1915, allocations: 0 / 234.3 MB, free: 3.141 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/0.1916, allocations: 132.5 kB / 234.5 MB, free: 3.035 MB / 170.7 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.1916, allocations: 0.75 kB / 234.5 MB, free: 3.035 MB / 170.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002108/0.1918, allocations: 99.89 kB / 234.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.1919, allocations: 167.2 kB / 234.7 MB, free: 2.801 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.042e-05/0.1919, allocations: 115.7 kB / 234.8 MB, free: 2.711 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.192, allocations: 33.08 kB / 234.9 MB, free: 2.68 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.332e-05/0.192, allocations: 82.25 kB / 235 MB, free: 2.598 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.809e-05/0.192, allocations: 16.09 kB / 235 MB, free: 2.59 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.82e-06/0.192, allocations: 0 / 235 MB, free: 2.59 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.379e-05/0.1921, allocations: 334.5 kB / 235.3 MB, free: 2.27 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.94e-05/0.1921, allocations: 21.88 kB / 235.3 MB, free: 2.27 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.942e-05/0.1922, allocations: 56.81 kB / 235.4 MB, free: 2.23 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.946e-05/0.1923, allocations: 21.88 kB / 235.4 MB, free: 2.23 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1923, allocations: 0 / 235.4 MB, free: 2.23 MB / 170.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001562/0.1925, allocations: 105.8 kB / 235.5 MB, free: 2.188 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1925, allocations: 7.875 kB / 235.5 MB, free: 2.188 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1925, allocations: 0 / 235.5 MB, free: 2.188 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1925, allocations: 8.984 kB / 235.5 MB, free: 2.184 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.223e-05/0.1926, allocations: 9.875 kB / 235.5 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.1926, allocations: 0 / 235.5 MB, free: 2.18 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.068e-05/0.1927, allocations: 17.59 kB / 235.5 MB, free: 2.176 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.1927, allocations: 3.781 kB / 235.6 MB, free: 2.176 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.861e-05/0.1928, allocations: 151.5 kB / 235.7 MB, free: 2.031 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.1928, allocations: 7.688 kB / 235.7 MB, free: 2.027 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.693e-05/0.1929, allocations: 13.34 kB / 235.7 MB, free: 2.016 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.1929, allocations: 0 / 235.7 MB, free: 2.016 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1929, allocations: 11.3 kB / 235.7 MB, free: 2.012 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1929, allocations: 3.906 kB / 235.7 MB, free: 2.008 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.193, allocations: 169.2 kB / 235.9 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.193, allocations: 192 / 235.9 MB, free: 1.852 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.548e-06/0.193, allocations: 7.656 kB / 235.9 MB, free: 1.848 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.193, allocations: 2.016 kB / 235.9 MB, free: 1.848 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.1931, allocations: 10.31 kB / 235.9 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1931, allocations: 0 / 235.9 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1931, allocations: 0 / 235.9 MB, free: 1.844 MB / 170.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001559/0.1932, allocations: 171.7 kB / 236.1 MB, free: 1.723 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.363e-05/0.1933, allocations: 88.89 kB / 236.2 MB, free: 1.621 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.1933, allocations: 0 / 236.2 MB, free: 1.621 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.844e-05/0.1934, allocations: 15.23 kB / 236.2 MB, free: 1.621 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.1935, allocations: 20.69 kB / 236.2 MB, free: 1.617 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.1935, allocations: 3.875 kB / 236.2 MB, free: 1.617 MB / 170.7 MB Notification: Performance of sort global known variables: time 3.584e-05/0.1935, allocations: 100.6 kB / 236.3 MB, free: 1.539 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0002316/0.1938, allocations: 31.12 kB / 236.3 MB, free: 1.535 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001609/0.1939, allocations: 121.9 kB / 236.5 MB, free: 1.445 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.0001737/0.1941, allocations: 127.8 kB / 236.6 MB, free: 1.379 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.1941, allocations: 3.938 kB / 236.6 MB, free: 1.375 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 8.794e-05/0.1942, allocations: 83.69 kB / 236.7 MB, free: 1.34 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001805/0.1944, allocations: 13.91 kB / 236.7 MB, free: 1.34 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003041/0.1947, allocations: 141.1 kB / 236.8 MB, free: 1.246 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001519/0.1949, allocations: 0.7148 MB / 237.5 MB, free: 0.5352 MB / 170.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1949, allocations: 0 / 237.5 MB, free: 0.5352 MB / 170.7 MB Notification: Performance of Templates: time 0.003331/0.1982, allocations: 1.276 MB / 238.8 MB, free: 448 kB / 170.7 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)