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 2.019/2.019, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.852e-05/2.878e-05, allocations: 4 kB / 258.8 MB, free: 8.727 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3056, allocations: 44.51 MB / 303.3 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002159/0.3078, allocations: 1.164 MB / 304.4 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001241/0.3091, allocations: 492 kB / 304.9 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.866e-05/0.3092, allocations: 2.906 kB / 304.9 MB, free: 11.44 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.131e-05/0.3093, allocations: 7.922 kB / 304.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.652e-05/0.3093, allocations: 10.27 kB / 304.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006259/0.31, allocations: 125.8 kB / 305.1 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001036/0.3101, allocations: 36.64 kB / 305.1 MB, free: 11.31 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.312e-05/0.3102, allocations: 19.61 kB / 305.1 MB, free: 11.3 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.321e-05/0.3103, allocations: 31.61 kB / 305.2 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.272e-05/0.3104, allocations: 28.83 kB / 305.2 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002507/0.3106, allocations: 75.12 kB / 305.3 MB, free: 11.23 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.536e-05/0.3107, allocations: 14.22 kB / 305.3 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.545e-05/0.3107, allocations: 10.61 kB / 305.3 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.945e-05/0.3108, allocations: 9.219 kB / 305.3 MB, free: 11.22 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002434/0.311, allocations: 103.6 kB / 305.4 MB, free: 11.15 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.3111, allocations: 0 / 305.4 MB, free: 11.15 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3111, allocations: 0 / 305.4 MB, free: 11.15 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.3111, allocations: 0 / 305.4 MB, free: 11.15 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.0006034/0.3117, allocations: 485.1 kB / 305.9 MB, free: 10.63 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.3118, allocations: 9.062 kB / 305.9 MB, free: 10.63 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.106e-05/0.3118, allocations: 15.72 kB / 305.9 MB, free: 10.62 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000172/0.312, allocations: 183 kB / 306.1 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.3121, allocations: 12.44 kB / 306.1 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.351e-05/0.3121, allocations: 6.969 kB / 306.1 MB, free: 10.4 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.3124, allocations: 91.38 kB / 306.2 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3124, allocations: 0 / 306.2 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.156e-05/0.3124, allocations: 6.141 kB / 306.2 MB, free: 10.34 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.3125, allocations: 6.062 kB / 306.2 MB, free: 10.33 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001578/0.3126, allocations: 50.48 kB / 306.2 MB, free: 10.31 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006501/0.3133, allocations: 345.3 kB / 306.6 MB, free: 9.961 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.3135, allocations: 73.28 kB / 306.6 MB, free: 9.91 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.3136, allocations: 4.969 kB / 306.6 MB, free: 9.906 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002999/0.3139, allocations: 157 kB / 306.8 MB, free: 9.762 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 2.525e-06/0.3139, allocations: 0 / 306.8 MB, free: 9.762 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007665/0.3147, allocations: 422 kB / 307.2 MB, free: 9.402 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001274/0.3148, allocations: 168.1 kB / 307.4 MB, free: 9.207 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001432/0.315, allocations: 122.1 kB / 307.5 MB, free: 9.098 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.588e-05/0.315, allocations: 32.45 kB / 307.5 MB, free: 9.062 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.3152, allocations: 173.5 kB / 307.7 MB, free: 8.895 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.3152, allocations: 20.19 kB / 307.7 MB, free: 8.879 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.578e-06/0.3152, allocations: 1.062 kB / 307.7 MB, free: 8.879 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3154, allocations: 320.1 kB / 308 MB, free: 8.559 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.3155, allocations: 32.45 kB / 308.1 MB, free: 8.547 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.892e-05/0.3156, allocations: 39.55 kB / 308.1 MB, free: 8.527 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001753/0.3158, allocations: 142.9 kB / 308.2 MB, free: 8.387 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3158, allocations: 0 / 308.2 MB, free: 8.387 MB / 250.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004474/0.3163, allocations: 263.3 kB / 308.5 MB, free: 8.129 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001002/0.3164, allocations: 122.8 kB / 308.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.573e-06/0.3164, allocations: 0 / 308.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.3164, allocations: 0 / 308.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.445e-05/0.3165, allocations: 15.83 kB / 308.6 MB, free: 7.969 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.3165, allocations: 0 / 308.6 MB, free: 7.969 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.3167, allocations: 12.06 kB / 308.6 MB, free: 7.957 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.064e-05/0.3167, allocations: 8 kB / 308.7 MB, free: 7.949 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.0002137/0.3169, allocations: 193.2 kB / 308.8 MB, free: 7.738 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.214e-05/0.317, allocations: 7.906 kB / 308.9 MB, free: 7.73 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.177e-05/0.317, allocations: 12.38 kB / 308.9 MB, free: 7.715 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-06/0.3171, allocations: 3.984 kB / 308.9 MB, free: 7.711 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.3171, allocations: 3.953 kB / 308.9 MB, free: 7.707 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.3171, allocations: 0 / 308.9 MB, free: 7.707 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.3173, allocations: 209.5 kB / 309.1 MB, free: 7.453 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3173, allocations: 0 / 309.1 MB, free: 7.453 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.297e-05/0.3174, allocations: 3.984 kB / 309.1 MB, free: 7.449 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3174, allocations: 0 / 309.1 MB, free: 7.449 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.3174, allocations: 8 kB / 309.1 MB, free: 7.441 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3174, allocations: 3.938 kB / 309.1 MB, free: 7.438 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.3174, allocations: 0 / 309.1 MB, free: 7.438 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000559/0.318, allocations: 276.3 kB / 309.4 MB, free: 7.137 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.904e-05/0.3181, allocations: 85.02 kB / 309.4 MB, free: 7.035 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.885e-05/0.3181, allocations: 12.12 kB / 309.5 MB, free: 7.023 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.3183, allocations: 11.98 kB / 309.5 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.275e-05/0.3184, allocations: 7.984 kB / 309.5 MB, free: 7.004 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.3184, allocations: 12 kB / 309.5 MB, free: 6.992 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.31e-05/0.3185, allocations: 100 kB / 309.6 MB, free: 6.895 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3185, allocations: 0 / 309.6 MB, free: 6.895 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003773/0.3189, allocations: 63.88 kB / 309.6 MB, free: 6.832 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.0003117/0.3192, allocations: 139.2 kB / 309.8 MB, free: 6.688 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0005237/0.3198, allocations: 337.4 kB / 310.1 MB, free: 6.309 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3198, allocations: 4 kB / 310.1 MB, free: 6.305 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.32, allocations: 186.8 kB / 310.3 MB, free: 6.098 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.3202, allocations: 8 kB / 310.3 MB, free: 6.09 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006603/0.3209, allocations: 271 kB / 310.6 MB, free: 5.797 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.3213, allocations: 0.7082 MB / 311.3 MB, free: 5.062 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.752e-05/0.3213, allocations: 11.44 kB / 311.3 MB, free: 5.051 MB / 250.7 MB Notification: Performance of SimCode: time 1.172e-06/0.3213, allocations: 0 / 311.3 MB, free: 5.051 MB / 250.7 MB Notification: Performance of Templates: time 0.004966/0.3263, allocations: 1.595 MB / 312.9 MB, free: 3.461 MB / 250.7 MB