Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.806/1.806, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.868e-05/2.895e-05, allocations: 3 kB / 255.3 MB, free: 3.199 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07789/0.07794, allocations: 44.5 MB / 299.8 MB, free: 6.656 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.379/0.457, allocations: 71.52 MB / 371.3 MB, free: 21.47 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002211/0.4573, allocations: 64.58 kB / 371.4 MB, free: 21.47 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008497/0.4658, allocations: 2.071 MB / 373.5 MB, free: 21.09 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.058e-06/0.4658, allocations: 5.312 kB / 373.5 MB, free: 21.09 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.729e-06/0.4658, allocations: 1 kB / 373.5 MB, free: 21.09 MB / 314.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.0003467/0.4662, allocations: 474.2 kB / 374 MB, free: 20.61 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.4663, allocations: 10.23 kB / 374 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.32e-05/0.4663, allocations: 14.41 kB / 374 MB, free: 20.6 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.868e-05/0.4664, allocations: 186.7 kB / 374.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.4664, allocations: 4.406 kB / 374.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.092e-05/0.4665, allocations: 10.31 kB / 374.2 MB, free: 20.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002216/0.4667, allocations: 90.19 kB / 374.3 MB, free: 20.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.181e-06/0.4667, allocations: 8 kB / 374.3 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.788e-05/0.4668, allocations: 5.344 kB / 374.3 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.321e-06/0.4668, allocations: 2.188 kB / 374.3 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001374/0.4669, allocations: 46.55 kB / 374.3 MB, free: 20.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004831/0.4674, allocations: 346.1 kB / 374.7 MB, free: 20.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.4676, allocations: 71.14 kB / 374.7 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.351e-05/0.4677, allocations: 46.7 kB / 374.8 MB, free: 20.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.265e-05/0.4677, allocations: 8.625 kB / 374.8 MB, free: 20.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.468, allocations: 159.9 kB / 374.9 MB, free: 19.92 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.594e-06/0.468, allocations: 0 / 374.9 MB, free: 19.92 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004152/0.4684, allocations: 221.6 kB / 375.2 MB, free: 19.81 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.4685, allocations: 171.3 kB / 375.3 MB, free: 19.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.932e-05/0.4686, allocations: 114.9 kB / 375.4 MB, free: 19.53 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.443e-05/0.4686, allocations: 32.59 kB / 375.5 MB, free: 19.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.4687, allocations: 167.4 kB / 375.6 MB, free: 19.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.4687, allocations: 23.59 kB / 375.7 MB, free: 19.33 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.579e-06/0.4688, allocations: 0 / 375.7 MB, free: 19.33 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.2e-05/0.4688, allocations: 322.8 kB / 376 MB, free: 19.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.4689, allocations: 33.97 kB / 376 MB, free: 19.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.619e-05/0.469, allocations: 35.56 kB / 376 MB, free: 19.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.4692, allocations: 149.6 kB / 376.2 MB, free: 18.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.092e-06/0.4692, allocations: 1 kB / 376.2 MB, free: 18.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003683/0.4696, allocations: 265.5 kB / 376.4 MB, free: 18.72 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.119e-05/0.4696, allocations: 118.2 kB / 376.6 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.4697, allocations: 0 / 376.6 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.4697, allocations: 1.031 kB / 376.6 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.783e-05/0.4697, allocations: 1.188 kB / 376.6 MB, free: 18.6 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.525e-06/0.4697, allocations: 12.95 kB / 376.6 MB, free: 18.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.941e-05/0.4698, allocations: 11.36 kB / 376.6 MB, free: 18.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.4699, allocations: 8.875 kB / 376.6 MB, free: 18.58 MB / 314.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.0001054/0.47, allocations: 181.7 kB / 376.8 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.081e-05/0.47, allocations: 11.06 kB / 376.8 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/0.4701, allocations: 10.47 kB / 376.8 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.4701, allocations: 0 / 376.8 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.04e-06/0.4701, allocations: 1 kB / 376.8 MB, free: 18.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.4701, allocations: 3.953 kB / 376.8 MB, free: 18.39 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001443/0.4703, allocations: 205.3 kB / 377 MB, free: 18.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.206e-06/0.4703, allocations: 5.031 kB / 377 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.073e-06/0.4703, allocations: 1.094 kB / 377 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.125e-06/0.4703, allocations: 1.828 kB / 377 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.981e-05/0.4704, allocations: 3.344 kB / 377 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.38e-06/0.4704, allocations: 1.188 kB / 377 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.62e-06/0.4704, allocations: 0 / 377 MB, free: 18.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004224/0.4708, allocations: 278.7 kB / 377.3 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.739e-05/0.4709, allocations: 89.23 kB / 377.4 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.4709, allocations: 13 kB / 377.4 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.893e-05/0.471, allocations: 10.42 kB / 377.4 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.664e-05/0.4711, allocations: 11.3 kB / 377.4 MB, free: 17.96 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.4711, allocations: 10.09 kB / 377.4 MB, free: 17.95 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.932e-05/0.4712, allocations: 98.88 kB / 377.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.4712, allocations: 0 / 377.5 MB, free: 17.88 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003802/0.4716, allocations: 52.45 kB / 377.6 MB, free: 17.88 MB / 314.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.0002442/0.4719, allocations: 146.7 kB / 377.7 MB, free: 17.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003253/0.4722, allocations: 328.6 kB / 378 MB, free: 17.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.182e-06/0.4722, allocations: 0 / 378 MB, free: 17.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000182/0.4724, allocations: 193.2 kB / 378.2 MB, free: 17.4 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001277/0.4726, allocations: 12.61 kB / 378.2 MB, free: 17.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000408/0.473, allocations: 191.9 kB / 378.4 MB, free: 17.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001443/0.4731, allocations: 0.7032 MB / 379.1 MB, free: 16.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.238e-05/0.4732, allocations: 14.62 kB / 379.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of SimCode: time 1.558e-06/0.4732, allocations: 0 / 379.1 MB, free: 16.57 MB / 314.7 MB Notification: Performance of Templates: time 0.003909/0.4771, allocations: 1.581 MB / 380.7 MB, free: 16.43 MB / 314.7 MB