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_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.814/1.814, allocations: 194.9 MB / 210.6 MB, free: 9.316 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.7e-05/2.7e-05, allocations: 4 kB / 258.8 MB, free: 9.039 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2939, allocations: 44.5 MB / 303.3 MB, free: 12.86 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001974/0.296, allocations: 1.161 MB / 304.5 MB, free: 11.89 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.2972, allocations: 0.4913 MB / 305 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.858e-05/0.2972, allocations: 7.312 kB / 305 MB, free: 11.5 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.028e-05/0.2973, allocations: 3.938 kB / 305 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.043e-05/0.2974, allocations: 5.422 kB / 305 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00059/0.298, allocations: 131.2 kB / 305.1 MB, free: 11.4 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.062e-05/0.2981, allocations: 31.94 kB / 305.1 MB, free: 11.38 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.911e-05/0.2982, allocations: 22.81 kB / 305.2 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.833e-05/0.2982, allocations: 23.92 kB / 305.2 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.828e-05/0.2983, allocations: 29.41 kB / 305.2 MB, free: 11.33 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002141/0.2985, allocations: 76.19 kB / 305.3 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.346e-05/0.2986, allocations: 8.312 kB / 305.3 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.385e-05/0.2986, allocations: 14.83 kB / 305.3 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.667e-05/0.2987, allocations: 10.16 kB / 305.3 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002478/0.2989, allocations: 103.2 kB / 305.4 MB, free: 11.22 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.299, allocations: 5.156 kB / 305.4 MB, free: 11.21 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.299, allocations: 0 / 305.4 MB, free: 11.21 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.299, allocations: 0 / 305.4 MB, free: 11.21 MB / 250.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.0005195/0.2995, allocations: 484.1 kB / 305.9 MB, free: 10.7 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.2996, allocations: 9.219 kB / 305.9 MB, free: 10.7 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.2997, allocations: 11.69 kB / 305.9 MB, free: 10.69 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001367/0.2998, allocations: 179.5 kB / 306.1 MB, free: 10.48 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.2998, allocations: 3.469 kB / 306.1 MB, free: 10.48 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.195e-05/0.2999, allocations: 15.69 kB / 306.1 MB, free: 10.47 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000258/0.3001, allocations: 95.73 kB / 306.2 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.3002, allocations: 0 / 306.2 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.184e-05/0.3002, allocations: 6.25 kB / 306.2 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.3002, allocations: 2.25 kB / 306.2 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.3004, allocations: 51.12 kB / 306.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.3011, allocations: 352.4 kB / 306.6 MB, free: 10.02 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001893/0.3013, allocations: 64.81 kB / 306.7 MB, free: 9.98 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.52e-05/0.3013, allocations: 1.312 kB / 306.7 MB, free: 9.98 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002964/0.3016, allocations: 164.9 kB / 306.8 MB, free: 9.828 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.924e-06/0.3016, allocations: 0 / 306.8 MB, free: 9.828 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007211/0.3023, allocations: 421.8 kB / 307.2 MB, free: 9.469 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.3025, allocations: 168.7 kB / 307.4 MB, free: 9.273 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.3026, allocations: 125.3 kB / 307.5 MB, free: 9.16 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.287e-05/0.3027, allocations: 32.89 kB / 307.6 MB, free: 9.125 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.697e-05/0.3028, allocations: 100.8 kB / 307.7 MB, free: 9.027 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.795e-05/0.3028, allocations: 23.67 kB / 307.7 MB, free: 9.008 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.568e-06/0.3028, allocations: 0.9688 kB / 307.7 MB, free: 9.008 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.303, allocations: 317.9 kB / 308 MB, free: 8.691 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.589e-05/0.3031, allocations: 35.61 kB / 308 MB, free: 8.676 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.3032, allocations: 39.94 kB / 308.1 MB, free: 8.656 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001593/0.3034, allocations: 148.9 kB / 308.2 MB, free: 8.5 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.3034, allocations: 0 / 308.2 MB, free: 8.5 MB / 250.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004226/0.3038, allocations: 261.8 kB / 308.5 MB, free: 8.215 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.241e-05/0.3039, allocations: 114.8 kB / 308.6 MB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3039, allocations: 0 / 308.6 MB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.304, allocations: 0 / 308.6 MB, free: 8.078 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.83e-05/0.304, allocations: 11.89 kB / 308.6 MB, free: 8.066 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.304, allocations: 0 / 308.6 MB, free: 8.066 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.3042, allocations: 15.98 kB / 308.6 MB, free: 8.051 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.98e-05/0.3042, allocations: 4 kB / 308.6 MB, free: 8.047 MB / 250.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.0002181/0.3044, allocations: 200.3 kB / 308.8 MB, free: 7.832 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.113e-05/0.3045, allocations: 7.906 kB / 308.8 MB, free: 7.824 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.78e-05/0.3045, allocations: 12.38 kB / 308.8 MB, free: 7.809 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.3045, allocations: 0 / 308.8 MB, free: 7.809 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.3046, allocations: 3.953 kB / 308.8 MB, free: 7.805 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.3046, allocations: 0 / 308.8 MB, free: 7.805 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002292/0.3048, allocations: 213.5 kB / 309 MB, free: 7.547 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.3048, allocations: 0 / 309 MB, free: 7.547 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.346e-06/0.3048, allocations: 4 kB / 309 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3049, allocations: 0 / 309 MB, free: 7.543 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.543e-05/0.3049, allocations: 11.98 kB / 309.1 MB, free: 7.531 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3049, allocations: 0 / 309.1 MB, free: 7.531 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3049, allocations: 64 / 309.1 MB, free: 7.531 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005291/0.3054, allocations: 284.3 kB / 309.3 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.311e-05/0.3055, allocations: 85.02 kB / 309.4 MB, free: 7.121 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.357e-05/0.3056, allocations: 4 kB / 309.4 MB, free: 7.117 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.3057, allocations: 19.92 kB / 309.4 MB, free: 7.098 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.276e-05/0.3058, allocations: 11.98 kB / 309.4 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.3058, allocations: 4 kB / 309.5 MB, free: 7.082 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.288e-05/0.3059, allocations: 104 kB / 309.6 MB, free: 6.98 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.3059, allocations: 0 / 309.6 MB, free: 6.98 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003607/0.3063, allocations: 55.89 kB / 309.6 MB, free: 6.926 MB / 250.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.0003026/0.3066, allocations: 143.1 kB / 309.7 MB, free: 6.781 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004681/0.3071, allocations: 341.4 kB / 310.1 MB, free: 6.398 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3071, allocations: 0 / 310.1 MB, free: 6.398 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002558/0.3074, allocations: 194.8 kB / 310.3 MB, free: 6.184 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001336/0.3075, allocations: 4 kB / 310.3 MB, free: 6.18 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000604/0.3081, allocations: 249.3 kB / 310.5 MB, free: 5.914 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.3085, allocations: 0.7043 MB / 311.2 MB, free: 5.184 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 2.204e-05/0.3085, allocations: 0 / 311.2 MB, free: 5.184 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.754e-05/0.3086, allocations: 15.42 kB / 311.2 MB, free: 5.168 MB / 250.7 MB Notification: Performance of SimCode: time 9.12e-07/0.3086, allocations: 0 / 311.2 MB, free: 5.168 MB / 250.7 MB Notification: Performance of Templates: time 0.005634/0.3142, allocations: 1.421 MB / 312.7 MB, free: 3.75 MB / 250.7 MB