Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.033/1.033, allocations: 111.2 MB / 123.8 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.921e-05/2.94e-05, allocations: 0 / 151.4 MB, free: 15.6 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1602/0.1602, allocations: 25.15 MB / 176.5 MB, free: 15.99 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0543/0.2146, allocations: 33.73 MB / 210.3 MB, free: 15.73 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.2148, allocations: 59.97 kB / 210.3 MB, free: 15.67 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008654/0.2235, allocations: 1.958 MB / 212.3 MB, free: 13.71 MB / 186.7 MB Notification: Performance of FrontEnd: time 2.5e-06/0.2235, allocations: 0 / 212.3 MB, free: 13.71 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.2236, allocations: 4 kB / 212.3 MB, free: 13.71 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.0005546/0.2241, allocations: 489.1 kB / 212.8 MB, free: 13.16 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.2242, allocations: 8.031 kB / 212.8 MB, free: 13.16 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.459e-05/0.2243, allocations: 15.91 kB / 212.8 MB, free: 13.14 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.2244, allocations: 174.9 kB / 213 MB, free: 12.93 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.365e-05/0.2245, allocations: 8 kB / 213 MB, free: 12.92 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.215e-05/0.2245, allocations: 8 kB / 213 MB, free: 12.91 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002393/0.2248, allocations: 89.67 kB / 213.1 MB, free: 12.82 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.049e-06/0.2248, allocations: 0 / 213.1 MB, free: 12.82 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.2248, allocations: 4 kB / 213.1 MB, free: 12.82 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.969e-06/0.2248, allocations: 3.953 kB / 213.1 MB, free: 12.81 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001362/0.225, allocations: 51.98 kB / 213.1 MB, free: 12.76 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006362/0.2256, allocations: 344.7 kB / 213.5 MB, free: 12.38 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001786/0.2258, allocations: 70.58 kB / 213.5 MB, free: 12.3 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.226, allocations: 52.84 kB / 213.6 MB, free: 12.24 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.222e-06/0.226, allocations: 0 / 213.6 MB, free: 12.24 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002759/0.2263, allocations: 174.7 kB / 213.7 MB, free: 12.05 MB / 186.7 MB Notification: Performance of pre-optimization done (n=11): time 2.685e-06/0.2263, allocations: 0 / 213.7 MB, free: 12.05 MB / 186.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004748/0.2268, allocations: 209 kB / 213.9 MB, free: 11.82 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.2269, allocations: 162.2 kB / 214.1 MB, free: 11.63 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001434/0.2271, allocations: 129.2 kB / 214.2 MB, free: 11.49 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 3.375e-05/0.2271, allocations: 29.7 kB / 214.3 MB, free: 11.46 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.2273, allocations: 162.5 kB / 214.4 MB, free: 11.3 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.027e-05/0.2273, allocations: 31.69 kB / 214.5 MB, free: 11.27 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.2273, allocations: 4 kB / 214.5 MB, free: 11.26 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.2275, allocations: 314.8 kB / 214.8 MB, free: 10.95 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.2276, allocations: 35.98 kB / 214.8 MB, free: 10.91 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.152e-05/0.2277, allocations: 40.72 kB / 214.8 MB, free: 10.87 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001685/0.2279, allocations: 143.5 kB / 215 MB, free: 10.71 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.606e-06/0.2279, allocations: 0 / 215 MB, free: 10.71 MB / 186.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004316/0.2284, allocations: 270.1 kB / 215.2 MB, free: 10.41 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001047/0.2285, allocations: 118.8 kB / 215.4 MB, free: 10.27 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.2285, allocations: 3.984 kB / 215.4 MB, free: 10.27 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.2285, allocations: 8 kB / 215.4 MB, free: 10.26 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.634e-05/0.2286, allocations: 0 / 215.4 MB, free: 10.26 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.429e-06/0.2286, allocations: 0 / 215.4 MB, free: 10.26 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.2287, allocations: 12 kB / 215.4 MB, free: 10.25 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/0.2287, allocations: 4 kB / 215.4 MB, free: 10.25 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 () * 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.0001732/0.2289, allocations: 184.3 kB / 215.6 MB, free: 10.05 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.146e-05/0.229, allocations: 19.84 kB / 215.6 MB, free: 10.03 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.229, allocations: 16.56 kB / 215.6 MB, free: 10.01 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.555e-06/0.2291, allocations: 0 / 215.6 MB, free: 10.01 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.701e-06/0.2291, allocations: 0 / 215.6 MB, free: 10.01 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.562e-06/0.2291, allocations: 0 / 215.6 MB, free: 10.01 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.2293, allocations: 205.5 kB / 215.8 MB, free: 9.758 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.336e-06/0.2293, allocations: 4 kB / 215.8 MB, free: 9.754 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.34e-06/0.2294, allocations: 0 / 215.8 MB, free: 9.754 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.089e-06/0.2294, allocations: 3.953 kB / 215.8 MB, free: 9.75 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.2294, allocations: 8 kB / 215.8 MB, free: 9.742 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.293e-06/0.2294, allocations: 0 / 215.8 MB, free: 9.742 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.901e-06/0.2294, allocations: 4 kB / 215.8 MB, free: 9.738 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00049/0.2299, allocations: 268.3 kB / 216.1 MB, free: 9.445 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.6e-05/0.23, allocations: 93.08 kB / 216.2 MB, free: 9.336 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.2301, allocations: 11.95 kB / 216.2 MB, free: 9.324 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.924e-05/0.2302, allocations: 8 kB / 216.2 MB, free: 9.316 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.97e-05/0.2303, allocations: 11.98 kB / 216.2 MB, free: 9.305 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.826e-05/0.2303, allocations: 4 kB / 216.2 MB, free: 9.301 MB / 186.7 MB Notification: Performance of sorting global known variables: time 9.718e-05/0.2304, allocations: 107.3 kB / 216.3 MB, free: 9.195 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.076e-06/0.2304, allocations: 0 / 216.3 MB, free: 9.195 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004032/0.2308, allocations: 59.92 kB / 216.4 MB, free: 9.137 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) * 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.0003033/0.2311, allocations: 147.2 kB / 216.5 MB, free: 8.984 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.00046/0.2316, allocations: 329.5 kB / 216.8 MB, free: 8.613 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2316, allocations: 0 / 216.8 MB, free: 8.613 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002414/0.2319, allocations: 194.7 kB / 217 MB, free: 8.398 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001319/0.232, allocations: 10.34 kB / 217 MB, free: 8.391 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000455/0.2325, allocations: 187.2 kB / 217.2 MB, free: 8.18 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004072/0.2329, allocations: 0.7043 MB / 217.9 MB, free: 7.449 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.771e-05/0.233, allocations: 15.38 kB / 217.9 MB, free: 7.434 MB / 186.7 MB Notification: Performance of SimCode: time 1.763e-06/0.233, allocations: 0 / 217.9 MB, free: 7.434 MB / 186.7 MB Notification: Performance of Templates: time 0.004216/0.2372, allocations: 1.606 MB / 219.5 MB, free: 5.824 MB / 186.7 MB