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.945/1.945, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.052e-05/3.07e-05, allocations: 11.52 kB / 255.3 MB, free: 3.188 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07755/0.0776, allocations: 44.5 MB / 299.8 MB, free: 6.637 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3294/0.407, allocations: 71.53 MB / 371.4 MB, free: 21.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.4073, allocations: 61.73 kB / 371.4 MB, free: 21.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008599/0.4159, allocations: 2.073 MB / 373.5 MB, free: 21.32 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.876e-06/0.416, allocations: 0.875 kB / 373.5 MB, free: 21.32 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.738e-06/0.416, allocations: 0.9688 kB / 373.5 MB, free: 21.32 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.000366/0.4163, allocations: 475.5 kB / 374 MB, free: 20.84 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4164, allocations: 10.66 kB / 374 MB, free: 20.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.866e-05/0.4165, allocations: 14.7 kB / 374 MB, free: 20.83 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.031e-05/0.4166, allocations: 191.3 kB / 374.2 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.087e-05/0.4166, allocations: 4.891 kB / 374.2 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.233e-05/0.4167, allocations: 10.94 kB / 374.2 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.4169, allocations: 91.19 kB / 374.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.4169, allocations: 0 / 374.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.417, allocations: 5.875 kB / 374.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.417, allocations: 1.844 kB / 374.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.4171, allocations: 42.84 kB / 374.3 MB, free: 20.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004902/0.4176, allocations: 349.5 kB / 374.7 MB, free: 20.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.4178, allocations: 71.06 kB / 374.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.487e-05/0.4179, allocations: 46.91 kB / 374.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.4179, allocations: 0 / 374.8 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002142/0.4182, allocations: 163.7 kB / 375 MB, free: 20.15 MB / 314.7 MB Notification: Performance of pre-optimization done (n=11): time 2.749e-06/0.4182, allocations: 0 / 375 MB, free: 20.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=11): time 0.000413/0.4186, allocations: 225.4 kB / 375.2 MB, free: 20.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.4187, allocations: 165.8 kB / 375.3 MB, free: 19.85 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.4188, allocations: 118.7 kB / 375.5 MB, free: 19.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.4189, allocations: 32.97 kB / 375.5 MB, free: 19.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.332e-05/0.4189, allocations: 163.2 kB / 375.6 MB, free: 19.57 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/0.419, allocations: 27.97 kB / 375.7 MB, free: 19.56 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.193e-06/0.419, allocations: 4 kB / 375.7 MB, free: 19.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.226e-05/0.419, allocations: 318.2 kB / 376 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.594e-05/0.4192, allocations: 34.41 kB / 376 MB, free: 19.25 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.772e-05/0.4193, allocations: 39.8 kB / 376.1 MB, free: 19.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001217/0.4194, allocations: 145.9 kB / 376.2 MB, free: 19.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.58e-06/0.4194, allocations: 0 / 376.2 MB, free: 19.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003756/0.4198, allocations: 263.2 kB / 376.5 MB, free: 18.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.193e-05/0.4199, allocations: 113.1 kB / 376.6 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.4199, allocations: 2.156 kB / 376.6 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.4199, allocations: 1.938 kB / 376.6 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.58e-05/0.4199, allocations: 5.125 kB / 376.6 MB, free: 18.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.24e-06/0.42, allocations: 5.047 kB / 376.6 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.363e-05/0.4201, allocations: 17.78 kB / 376.6 MB, free: 18.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.4201, allocations: 6.312 kB / 376.6 MB, free: 18.82 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.0001056/0.4202, allocations: 182.1 kB / 376.8 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.4203, allocations: 10.25 kB / 376.8 MB, free: 18.64 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.481e-05/0.4203, allocations: 11.83 kB / 376.8 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.826e-06/0.4203, allocations: 5.031 kB / 376.8 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4203, allocations: 1.031 kB / 376.8 MB, free: 18.63 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.411e-06/0.4204, allocations: 3.953 kB / 376.8 MB, free: 18.62 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.4205, allocations: 204.9 kB / 377 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/0.4205, allocations: 0 / 377 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.272e-06/0.4206, allocations: 3.062 kB / 377 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.789e-06/0.4206, allocations: 1.125 kB / 377 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.961e-05/0.4206, allocations: 3.5 kB / 377 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.4206, allocations: 0 / 377 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.696e-06/0.4206, allocations: 1.25 kB / 377 MB, free: 18.44 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004271/0.4211, allocations: 280.2 kB / 377.3 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.565e-05/0.4211, allocations: 91.25 kB / 377.4 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.391e-05/0.4212, allocations: 13.59 kB / 377.4 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001027/0.4213, allocations: 10.64 kB / 377.4 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.102e-05/0.4213, allocations: 12.09 kB / 377.4 MB, free: 18.19 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.94e-05/0.4214, allocations: 4.281 kB / 377.4 MB, free: 18.19 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.295e-05/0.4215, allocations: 100.4 kB / 377.5 MB, free: 18.11 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.3e-07/0.4215, allocations: 4 kB / 377.5 MB, free: 18.11 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004032/0.4219, allocations: 48.84 kB / 377.6 MB, free: 18.11 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.0002888/0.4222, allocations: 147.2 kB / 377.7 MB, free: 18.01 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003491/0.4226, allocations: 329.9 kB / 378 MB, free: 17.76 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.64e-06/0.4226, allocations: 0.9375 kB / 378 MB, free: 17.76 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.4228, allocations: 189.5 kB / 378.2 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.4229, allocations: 8.672 kB / 378.2 MB, free: 17.63 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004186/0.4234, allocations: 199.5 kB / 378.4 MB, free: 17.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.4235, allocations: 0.7023 MB / 379.1 MB, free: 16.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.339e-05/0.4236, allocations: 9.781 kB / 379.1 MB, free: 16.81 MB / 314.7 MB Notification: Performance of SimCode: time 1.411e-06/0.4236, allocations: 0 / 379.1 MB, free: 16.81 MB / 314.7 MB Notification: Performance of Templates: time 0.00392/0.4275, allocations: 1.582 MB / 380.7 MB, free: 16.65 MB / 314.7 MB