Running command: translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 0.9862/0.9862, allocations: 111.1 MB / 126.3 MB, free: 6.41 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.509e-05/2.494e-05, allocations: 4 kB / 154.5 MB, free: 2.84 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05165/0.05169, allocations: 25.17 MB / 179.7 MB, free: 9.629 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001766/0.05352, allocations: 1.031 MB / 180.7 MB, free: 8.594 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009785/0.05452, allocations: 432.6 kB / 181.1 MB, free: 8.168 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.361e-05/0.05459, allocations: 7.938 kB / 181.1 MB, free: 8.16 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 4.403e-05/0.05465, allocations: 7.922 kB / 181.1 MB, free: 8.152 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 5.727e-05/0.05471, allocations: 0 / 181.1 MB, free: 8.152 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005965/0.05532, allocations: 127.7 kB / 181.3 MB, free: 8.027 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 9.132e-05/0.05543, allocations: 39.94 kB / 181.3 MB, free: 7.988 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.102e-05/0.05553, allocations: 16 kB / 181.3 MB, free: 7.973 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.836e-05/0.05559, allocations: 27.91 kB / 181.4 MB, free: 7.945 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.03e-05/0.05567, allocations: 27.89 kB / 181.4 MB, free: 7.918 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002364/0.05592, allocations: 91.92 kB / 181.5 MB, free: 7.828 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.102e-05/0.05598, allocations: 12 kB / 181.5 MB, free: 7.816 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 4.478e-05/0.05604, allocations: 15.92 kB / 181.5 MB, free: 7.801 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 3.541e-05/0.05609, allocations: 12 kB / 181.5 MB, free: 7.789 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.05634, allocations: 108.1 kB / 181.6 MB, free: 7.684 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.05635, allocations: 0 / 181.6 MB, free: 7.684 MB / 154.7 MB Notification: Performance of FrontEnd: time 4.108e-06/0.05637, allocations: 0 / 181.6 MB, free: 7.684 MB / 154.7 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.05638, allocations: 3.938 kB / 181.6 MB, free: 7.68 MB / 154.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.0005086/0.0569, allocations: 485.9 kB / 182.1 MB, free: 7.133 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.05695, allocations: 8.031 kB / 182.1 MB, free: 7.125 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.137e-05/0.05702, allocations: 11.91 kB / 182.1 MB, free: 7.113 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.0572, allocations: 182.8 kB / 182.3 MB, free: 6.895 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.681e-05/0.05724, allocations: 8 kB / 182.3 MB, free: 6.887 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.921e-05/0.05728, allocations: 12 kB / 182.3 MB, free: 6.875 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002634/0.05755, allocations: 93.66 kB / 182.4 MB, free: 6.777 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.05758, allocations: 0 / 182.4 MB, free: 6.777 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.65e-05/0.0576, allocations: 0 / 182.4 MB, free: 6.777 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.689e-06/0.05762, allocations: 7.953 kB / 182.4 MB, free: 6.77 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001565/0.05778, allocations: 51.97 kB / 182.5 MB, free: 6.719 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005997/0.0584, allocations: 344.6 kB / 182.8 MB, free: 6.332 MB / 154.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001915/0.05861, allocations: 74.55 kB / 182.9 MB, free: 6.25 MB / 154.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.132e-05/0.05863, allocations: 0 / 182.9 MB, free: 6.25 MB / 154.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.05893, allocations: 162.9 kB / 183 MB, free: 6.066 MB / 154.7 MB Notification: Performance of pre-optimization done (n=11): time 1.903e-06/0.05895, allocations: 0 / 183 MB, free: 6.066 MB / 154.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007313/0.05969, allocations: 423.1 kB / 183.4 MB, free: 5.598 MB / 154.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.05982, allocations: 170.1 kB / 183.6 MB, free: 5.395 MB / 154.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.05997, allocations: 129.1 kB / 183.7 MB, free: 5.258 MB / 154.7 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.06001, allocations: 25.7 kB / 183.8 MB, free: 5.227 MB / 154.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.917e-05/0.06012, allocations: 170.5 kB / 183.9 MB, free: 5.059 MB / 154.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.737e-05/0.06017, allocations: 19.89 kB / 183.9 MB, free: 5.039 MB / 154.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-06/0.06019, allocations: 0 / 183.9 MB, free: 5.039 MB / 154.7 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.06033, allocations: 322.8 kB / 184.3 MB, free: 4.715 MB / 154.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-05/0.06044, allocations: 31.98 kB / 184.3 MB, free: 4.684 MB / 154.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.419e-05/0.06055, allocations: 43.92 kB / 184.3 MB, free: 4.641 MB / 154.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.06072, allocations: 146.7 kB / 184.5 MB, free: 4.473 MB / 154.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.06074, allocations: 0 / 184.5 MB, free: 4.473 MB / 154.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004341/0.06118, allocations: 262 kB / 184.7 MB, free: 4.188 MB / 154.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.359e-05/0.06129, allocations: 118.8 kB / 184.9 MB, free: 4.047 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.06131, allocations: 0 / 184.9 MB, free: 4.047 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.06133, allocations: 0 / 184.9 MB, free: 4.047 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.697e-05/0.06138, allocations: 7.984 kB / 184.9 MB, free: 4.039 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.0614, allocations: 3.938 kB / 184.9 MB, free: 4.035 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.06153, allocations: 12 kB / 184.9 MB, free: 4.023 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.06157, allocations: 8 kB / 184.9 MB, free: 4.016 MB / 154.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.0001949/0.06177, allocations: 193.2 kB / 185.1 MB, free: 3.805 MB / 154.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.06182, allocations: 19.84 kB / 185.1 MB, free: 3.785 MB / 154.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.06186, allocations: 8.375 kB / 185.1 MB, free: 3.781 MB / 154.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.06188, allocations: 0 / 185.1 MB, free: 3.781 MB / 154.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.06189, allocations: 0 / 185.1 MB, free: 3.781 MB / 154.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.0619, allocations: 4 kB / 185.1 MB, free: 3.777 MB / 154.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002452/0.06216, allocations: 209.5 kB / 185.3 MB, free: 3.523 MB / 154.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.06218, allocations: 0 / 185.3 MB, free: 3.523 MB / 154.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.305e-06/0.06219, allocations: 0 / 185.3 MB, free: 3.523 MB / 154.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.06221, allocations: 3.953 kB / 185.3 MB, free: 3.52 MB / 154.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.803e-05/0.06224, allocations: 4 kB / 185.3 MB, free: 3.516 MB / 154.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.909e-06/0.06225, allocations: 4 kB / 185.3 MB, free: 3.512 MB / 154.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.06226, allocations: 0 / 185.3 MB, free: 3.512 MB / 154.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005292/0.0628, allocations: 272.7 kB / 185.6 MB, free: 3.215 MB / 154.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.492e-05/0.06287, allocations: 92.95 kB / 185.7 MB, free: 3.105 MB / 154.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.157e-05/0.06293, allocations: 15.94 kB / 185.7 MB, free: 3.09 MB / 154.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001282/0.06307, allocations: 8 kB / 185.7 MB, free: 3.082 MB / 154.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.046e-05/0.06315, allocations: 15.92 kB / 185.7 MB, free: 3.066 MB / 154.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.06318, allocations: 4 kB / 185.7 MB, free: 3.062 MB / 154.7 MB Notification: Performance of sorting global known variables: time 8.741e-05/0.06328, allocations: 99.25 kB / 185.8 MB, free: 2.965 MB / 154.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.06329, allocations: 0 / 185.8 MB, free: 2.965 MB / 154.7 MB Notification: Performance of remove unused functions: time 0.0003677/0.06367, allocations: 56 kB / 185.9 MB, free: 2.91 MB / 154.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.000315/0.064, allocations: 155.1 kB / 186 MB, free: 2.746 MB / 154.7 MB Notification: Performance of simCode: created initialization part: time 0.0004641/0.06448, allocations: 338.5 kB / 186.4 MB, free: 2.367 MB / 154.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.0645, allocations: 0 / 186.4 MB, free: 2.367 MB / 154.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002538/0.06476, allocations: 198.8 kB / 186.5 MB, free: 2.148 MB / 154.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.06491, allocations: 4 kB / 186.5 MB, free: 2.145 MB / 154.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006262/0.06555, allocations: 271 kB / 186.8 MB, free: 1.844 MB / 154.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003284/0.0659, allocations: 0.7043 MB / 187.5 MB, free: 1.113 MB / 154.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.772e-05/0.06593, allocations: 11.44 kB / 187.5 MB, free: 1.102 MB / 154.7 MB Notification: Performance of SimCode: time 6.62e-07/0.06594, allocations: 0 / 187.5 MB, free: 1.102 MB / 154.7 MB Notification: Performance of Templates: time 0.004579/0.07053, allocations: 1.634 MB / 189.2 MB, free: 15.47 MB / 170.7 MB