Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.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.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.7949/0.7949, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001581/0.001581, allocations: 139.4 kB / 151.8 MB, free: 4.996 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000448/0.0004481, allocations: 7.984 kB / 184.9 MB, free: 3.934 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1428, allocations: 25.15 MB / 210 MB, free: 29.74 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.04004/0.1829, allocations: 33.83 MB / 243.9 MB, free: 16 kB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.1833, allocations: 59.97 kB / 243.9 MB, free: 15.96 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006168/0.1894, allocations: 1.957 MB / 245.9 MB, free: 14.01 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.1895, allocations: 0 / 245.9 MB, free: 14.01 MB / 186.7 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1895, allocations: 0 / 245.9 MB, free: 14.01 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000479/0.19, allocations: 497.8 kB / 246.4 MB, free: 13.45 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.19, allocations: 12.02 kB / 246.4 MB, free: 13.44 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.65e-05/0.1901, allocations: 15.69 kB / 246.4 MB, free: 13.43 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.1902, allocations: 174.9 kB / 246.6 MB, free: 13.21 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.775e-05/0.1903, allocations: 8 kB / 246.6 MB, free: 13.21 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.188e-05/0.1903, allocations: 8 kB / 246.6 MB, free: 13.2 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001872/0.1905, allocations: 94.78 kB / 246.7 MB, free: 13.1 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.1905, allocations: 3.938 kB / 246.7 MB, free: 13.1 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.1905, allocations: 1.812 kB / 246.7 MB, free: 13.1 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.1905, allocations: 8.891 kB / 246.7 MB, free: 13.09 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.1906, allocations: 47.97 kB / 246.7 MB, free: 13.04 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000469/0.1911, allocations: 344.7 kB / 247.1 MB, free: 12.66 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.1913, allocations: 74.55 kB / 247.1 MB, free: 12.57 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1913, allocations: 4.031 kB / 247.1 MB, free: 12.57 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002015/0.1915, allocations: 170.7 kB / 247.3 MB, free: 12.38 MB / 186.7 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.1915, allocations: 0 / 247.3 MB, free: 12.38 MB / 186.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004968/0.192, allocations: 416.3 kB / 247.7 MB, free: 11.92 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.364e-05/0.1921, allocations: 166.2 kB / 247.9 MB, free: 11.72 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.1922, allocations: 122 kB / 248 MB, free: 11.59 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.1923, allocations: 38.2 kB / 248 MB, free: 11.55 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.1923, allocations: 96.05 kB / 248.1 MB, free: 11.45 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.1924, allocations: 27.83 kB / 248.2 MB, free: 11.42 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.271e-05/0.1924, allocations: 4 kB / 248.2 MB, free: 11.42 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.1925, allocations: 322.8 kB / 248.5 MB, free: 11.09 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.555e-05/0.1926, allocations: 35.98 kB / 248.5 MB, free: 11.06 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.589e-05/0.1927, allocations: 42.41 kB / 248.6 MB, free: 11.02 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001122/0.1928, allocations: 144.7 kB / 248.7 MB, free: 10.86 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1928, allocations: 0 / 248.7 MB, free: 10.86 MB / 186.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002859/0.1931, allocations: 272.2 kB / 249 MB, free: 10.56 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.546e-05/0.1932, allocations: 116.7 kB / 249.1 MB, free: 10.42 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.1932, allocations: 0 / 249.1 MB, free: 10.42 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.1932, allocations: 0 / 249.1 MB, free: 10.42 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.614e-05/0.1932, allocations: 11.92 kB / 249.1 MB, free: 10.41 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.1932, allocations: 4 kB / 249.1 MB, free: 10.41 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.008e-05/0.1933, allocations: 11.94 kB / 249.1 MB, free: 10.39 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.1933, allocations: 4 kB / 249.1 MB, free: 10.39 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$PRE.table2.y,table2.y,$PRE.table2.nextTime,table2.nextTime,$PRE.table2.index,table2.index,$PRE.table1.y,table1.y,$PRE.table1.nextTime,table1.nextTime,$PRE.table1.index,table1.index,And1.u2,And1.y,$PRE.Pre1.u,Pre1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 4 * 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 0.000148/0.1935, allocations: 196.1 kB / 249.3 MB, free: 10.18 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.1935, allocations: 18.53 kB / 249.3 MB, free: 10.16 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.936e-05/0.1936, allocations: 12.38 kB / 249.3 MB, free: 10.15 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1936, allocations: 4 kB / 249.3 MB, free: 10.15 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1936, allocations: 3.938 kB / 249.3 MB, free: 10.14 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.1936, allocations: 0 / 249.3 MB, free: 10.14 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.1938, allocations: 205.6 kB / 249.5 MB, free: 9.895 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1938, allocations: 0 / 249.5 MB, free: 9.895 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.641e-06/0.1938, allocations: 0 / 249.5 MB, free: 9.895 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1938, allocations: 3.953 kB / 249.5 MB, free: 9.891 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.619e-05/0.1938, allocations: 8 kB / 249.5 MB, free: 9.883 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1938, allocations: 0 / 249.5 MB, free: 9.883 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.1938, allocations: 0 / 249.5 MB, free: 9.883 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003235/0.1941, allocations: 282.3 kB / 249.8 MB, free: 9.578 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.805e-05/0.1942, allocations: 81.02 kB / 249.9 MB, free: 9.48 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.1942, allocations: 17.72 kB / 249.9 MB, free: 9.465 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.007e-05/0.1943, allocations: 8 kB / 249.9 MB, free: 9.457 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.44e-05/0.1944, allocations: 11.98 kB / 249.9 MB, free: 9.445 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.1944, allocations: 4 kB / 249.9 MB, free: 9.441 MB / 186.7 MB Notification: Performance of sorting global known variables: time 6.18e-05/0.1945, allocations: 105.2 kB / 250 MB, free: 9.34 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1945, allocations: 3.938 kB / 250 MB, free: 9.336 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0002678/0.1948, allocations: 56 kB / 250.1 MB, free: 9.281 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$whenCondition2,table2.y,table2.nextTime,table2.index,table1.y,table1.nextTime,table1.index,And1.u2,And1.y,Pre1.u) * Number of discrete states: 9 (Pre1.u,table1.y,table1.nextTime,table1.index,$whenCondition1,table2.y,table2.nextTime,table2.index,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0002189/0.195, allocations: 147.2 kB / 250.2 MB, free: 9.129 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0003258/0.1953, allocations: 333.5 kB / 250.6 MB, free: 8.754 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1953, allocations: 0 / 250.6 MB, free: 8.754 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001614/0.1955, allocations: 194.8 kB / 250.8 MB, free: 8.539 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001064/0.1956, allocations: 7.984 kB / 250.8 MB, free: 8.531 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004226/0.196, allocations: 259.5 kB / 251 MB, free: 8.25 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.1963, allocations: 0.7004 MB / 251.7 MB, free: 7.523 MB / 186.7 MB Notification: Performance of simCode: alias equations: time 1.929e-05/0.1964, allocations: 6.406 kB / 251.7 MB, free: 7.52 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.641e-05/0.1964, allocations: 15.44 kB / 251.7 MB, free: 7.508 MB / 186.7 MB Notification: Performance of SimCode: time 2.5e-07/0.1964, allocations: 0 / 251.7 MB, free: 7.508 MB / 186.7 MB Notification: Performance of Templates: time 0.003515/0.1999, allocations: 1.462 MB / 253.2 MB, free: 6.074 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)