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.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.839/1.839, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.235e-05, allocations: 4 kB / 228.1 MB, free: 8.004 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08162/0.08167, allocations: 38.78 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002033/0.08377, allocations: 1.159 MB / 268 MB, free: 15.96 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.08493, allocations: 489.1 kB / 268.5 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.48e-05/0.085, allocations: 0 / 268.5 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.111e-05/0.08507, allocations: 3.938 kB / 268.5 MB, free: 15.48 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.095e-05/0.08516, allocations: 15.94 kB / 268.5 MB, free: 15.46 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005924/0.08577, allocations: 115.7 kB / 268.7 MB, free: 15.35 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 9.6e-05/0.08587, allocations: 43.89 kB / 268.7 MB, free: 15.3 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.18e-05/0.08598, allocations: 15.98 kB / 268.7 MB, free: 15.29 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.576e-05/0.08603, allocations: 19.98 kB / 268.7 MB, free: 15.27 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.679e-05/0.08613, allocations: 39.83 kB / 268.8 MB, free: 15.23 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.08635, allocations: 71.94 kB / 268.8 MB, free: 15.16 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.448e-05/0.08641, allocations: 8 kB / 268.8 MB, free: 15.15 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.284e-05/0.08648, allocations: 15.94 kB / 268.9 MB, free: 15.14 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.802e-05/0.08654, allocations: 8 kB / 268.9 MB, free: 15.13 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002428/0.08679, allocations: 108 kB / 269 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.08681, allocations: 4 kB / 269 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.08682, allocations: 0 / 269 MB, free: 15.02 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.08684, allocations: 4 kB / 269 MB, free: 15.02 MB / 234.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.0005644/0.08741, allocations: 485.9 kB / 269.5 MB, free: 14.47 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.08747, allocations: 12.03 kB / 269.5 MB, free: 14.46 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.856e-05/0.08754, allocations: 7.906 kB / 269.5 MB, free: 14.45 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001502/0.0877, allocations: 167 kB / 269.6 MB, free: 14.25 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.311e-05/0.08774, allocations: 11.95 kB / 269.7 MB, free: 14.23 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.124e-05/0.08778, allocations: 11.94 kB / 269.7 MB, free: 14.22 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002726/0.08806, allocations: 97.64 kB / 269.8 MB, free: 14.12 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.08808, allocations: 0 / 269.8 MB, free: 14.12 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.08812, allocations: 12 kB / 269.8 MB, free: 14.11 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.08814, allocations: 0 / 269.8 MB, free: 14.11 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001539/0.0883, allocations: 43.98 kB / 269.8 MB, free: 14.07 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006535/0.08897, allocations: 352.4 kB / 270.2 MB, free: 13.67 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.08918, allocations: 70.56 kB / 270.2 MB, free: 13.59 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.296e-05/0.08921, allocations: 4 kB / 270.2 MB, free: 13.59 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002996/0.08952, allocations: 158.8 kB / 270.4 MB, free: 13.41 MB / 234.7 MB Notification: Performance of pre-optimization done (n=11): time 9.979e-06/0.08954, allocations: 96 / 270.4 MB, free: 13.41 MB / 234.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007369/0.09029, allocations: 419 kB / 270.8 MB, free: 12.95 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.09042, allocations: 166.2 kB / 271 MB, free: 12.75 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.09057, allocations: 125.2 kB / 271.1 MB, free: 12.62 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.765e-05/0.09062, allocations: 37.69 kB / 271.1 MB, free: 12.57 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.782e-05/0.09073, allocations: 162.5 kB / 271.3 MB, free: 12.41 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.83e-05/0.09078, allocations: 23.8 kB / 271.3 MB, free: 12.39 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.258e-05/0.09081, allocations: 4 kB / 271.3 MB, free: 12.39 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.09096, allocations: 322.8 kB / 271.6 MB, free: 12.06 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001084/0.09108, allocations: 35.98 kB / 271.7 MB, free: 12.03 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.631e-05/0.09119, allocations: 33.86 kB / 271.7 MB, free: 12 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001626/0.09136, allocations: 142.8 kB / 271.8 MB, free: 11.83 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.09138, allocations: 3.938 kB / 271.8 MB, free: 11.83 MB / 234.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004235/0.09181, allocations: 262.4 kB / 272.1 MB, free: 11.54 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.751e-05/0.09193, allocations: 114.8 kB / 272.2 MB, free: 11.41 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.09195, allocations: 0 / 272.2 MB, free: 11.41 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.09197, allocations: 4 kB / 272.2 MB, free: 11.4 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.751e-05/0.09202, allocations: 4 kB / 272.2 MB, free: 11.4 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.09204, allocations: 3.984 kB / 272.2 MB, free: 11.39 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001419/0.09219, allocations: 11.91 kB / 272.2 MB, free: 11.38 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.09222, allocations: 4 kB / 272.2 MB, free: 11.38 MB / 234.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.y,$PRE.Pre1.u,Pre1.u,Pre1.y) * 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.0002131/0.09245, allocations: 209.1 kB / 272.4 MB, free: 11.15 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.33e-05/0.09249, allocations: 15.84 kB / 272.4 MB, free: 11.14 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.33e-05/0.09254, allocations: 12.36 kB / 272.5 MB, free: 11.12 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.763e-06/0.09256, allocations: 4 kB / 272.5 MB, free: 11.12 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.09258, allocations: 0 / 272.5 MB, free: 11.12 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.09259, allocations: 0 / 272.5 MB, free: 11.12 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002315/0.09283, allocations: 209.5 kB / 272.7 MB, free: 10.86 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.09284, allocations: 0 / 272.7 MB, free: 10.86 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.516e-06/0.09286, allocations: 0 / 272.7 MB, free: 10.86 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.09288, allocations: 8 kB / 272.7 MB, free: 10.86 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.929e-05/0.09291, allocations: 12.06 kB / 272.7 MB, free: 10.84 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.09293, allocations: 0 / 272.7 MB, free: 10.84 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.09294, allocations: 0 / 272.7 MB, free: 10.84 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005346/0.09348, allocations: 276.3 kB / 273 MB, free: 10.54 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.817e-05/0.09355, allocations: 85.02 kB / 273 MB, free: 10.44 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.52e-05/0.09361, allocations: 4 kB / 273 MB, free: 10.44 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001294/0.09375, allocations: 11.98 kB / 273.1 MB, free: 10.43 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.941e-05/0.09383, allocations: 15.98 kB / 273.1 MB, free: 10.41 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.09386, allocations: 4 kB / 273.1 MB, free: 10.41 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.622e-05/0.09397, allocations: 103.2 kB / 273.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of sort global known variables: time 2.345e-06/0.09398, allocations: 0 / 273.2 MB, free: 10.3 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003461/0.09434, allocations: 55.84 kB / 273.2 MB, free: 10.25 MB / 234.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.y,Pre1.u,Pre1.y) * 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.0002943/0.09465, allocations: 139.2 kB / 273.4 MB, free: 10.11 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004812/0.09514, allocations: 333.5 kB / 273.7 MB, free: 9.73 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.09517, allocations: 4 kB / 273.7 MB, free: 9.727 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002616/0.09544, allocations: 194.8 kB / 273.9 MB, free: 9.512 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001449/0.0956, allocations: 7.953 kB / 273.9 MB, free: 9.504 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006613/0.09627, allocations: 279.3 kB / 274.2 MB, free: 9.195 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.09659, allocations: 0.7043 MB / 274.9 MB, free: 8.465 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.041e-05/0.09664, allocations: 11.44 kB / 274.9 MB, free: 8.457 MB / 234.7 MB Notification: Performance of SimCode: time 8.52e-07/0.09665, allocations: 3.938 kB / 274.9 MB, free: 8.453 MB / 234.7 MB Notification: Performance of Templates: time 0.004704/0.1014, allocations: 1.602 MB / 276.5 MB, free: 6.855 MB / 234.7 MB