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_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadModel(Modelica): time 1.589/1.589, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.611e-05, allocations: 4 kB / 228.1 MB, free: 7.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07392/0.07396, allocations: 38.78 MB / 266.9 MB, free: 500 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00183/0.07584, allocations: 1.161 MB / 268.1 MB, free: 15.31 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.07688, allocations: 487.6 kB / 268.5 MB, free: 14.83 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.314e-05/0.07693, allocations: 0 / 268.5 MB, free: 14.83 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.051e-05/0.07698, allocations: 7.922 kB / 268.6 MB, free: 14.82 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.132e-05/0.07705, allocations: 4 kB / 268.6 MB, free: 14.82 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005576/0.07762, allocations: 131.7 kB / 268.7 MB, free: 14.69 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 8.326e-05/0.07772, allocations: 39.89 kB / 268.7 MB, free: 14.65 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.659e-05/0.07781, allocations: 11.98 kB / 268.7 MB, free: 14.64 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.861e-05/0.07787, allocations: 23.92 kB / 268.8 MB, free: 14.61 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.779e-05/0.07795, allocations: 35.91 kB / 268.8 MB, free: 14.58 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.07816, allocations: 75.94 kB / 268.9 MB, free: 14.5 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.142e-05/0.07821, allocations: 8 kB / 268.9 MB, free: 14.5 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.477e-05/0.07827, allocations: 19.91 kB / 268.9 MB, free: 14.48 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 3.759e-05/0.07832, allocations: 8 kB / 268.9 MB, free: 14.47 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002084/0.07854, allocations: 104 kB / 269 MB, free: 14.37 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.07855, allocations: 4 kB / 269 MB, free: 14.36 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.07856, allocations: 0 / 269 MB, free: 14.36 MB / 234.7 MB Notification: Performance of Transformations before backend: time 8.235e-06/0.07858, allocations: 0 / 269 MB, free: 14.36 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.0004479/0.07904, allocations: 485.9 kB / 269.5 MB, free: 13.82 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.804e-05/0.07911, allocations: 12.03 kB / 269.5 MB, free: 13.8 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.612e-05/0.07917, allocations: 7.906 kB / 269.5 MB, free: 13.8 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.07931, allocations: 174.9 kB / 269.7 MB, free: 13.59 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.07935, allocations: 15.95 kB / 269.7 MB, free: 13.57 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.07938, allocations: 4 kB / 269.7 MB, free: 13.57 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002446/0.07964, allocations: 93.66 kB / 269.8 MB, free: 13.47 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.07966, allocations: 7.922 kB / 269.8 MB, free: 13.46 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.07969, allocations: 4 kB / 269.8 MB, free: 13.46 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.0797, allocations: 0 / 269.8 MB, free: 13.46 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001496/0.07986, allocations: 55.97 kB / 269.9 MB, free: 13.4 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005378/0.08041, allocations: 348.5 kB / 270.2 MB, free: 13.01 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001748/0.0806, allocations: 70.55 kB / 270.3 MB, free: 12.93 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.08063, allocations: 4 kB / 270.3 MB, free: 12.93 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002586/0.0809, allocations: 162.8 kB / 270.4 MB, free: 12.75 MB / 234.7 MB Notification: Performance of pre-optimization done (n=11): time 1.934e-06/0.08092, allocations: 0 / 270.4 MB, free: 12.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006612/0.08159, allocations: 415.1 kB / 270.8 MB, free: 12.29 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.743e-05/0.08169, allocations: 166.2 kB / 271 MB, free: 12.09 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.08182, allocations: 121.6 kB / 271.1 MB, free: 11.96 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.699e-05/0.08186, allocations: 29.7 kB / 271.1 MB, free: 11.93 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.868e-05/0.08194, allocations: 100 kB / 271.2 MB, free: 11.82 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.934e-05/0.08199, allocations: 35.78 kB / 271.3 MB, free: 11.79 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.08201, allocations: 0 / 271.3 MB, free: 11.79 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.08214, allocations: 326.8 kB / 271.6 MB, free: 11.46 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.303e-05/0.08225, allocations: 35.92 kB / 271.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.494e-05/0.08234, allocations: 31.98 kB / 271.7 MB, free: 11.39 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.0825, allocations: 146.8 kB / 271.8 MB, free: 11.23 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.08252, allocations: 0 / 271.8 MB, free: 11.23 MB / 234.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003963/0.08292, allocations: 258.6 kB / 272.1 MB, free: 10.95 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.873e-05/0.08301, allocations: 118.8 kB / 272.2 MB, free: 10.8 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.08303, allocations: 4 kB / 272.2 MB, free: 10.8 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.08305, allocations: 4 kB / 272.2 MB, free: 10.8 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.614e-05/0.0831, allocations: 3.984 kB / 272.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.08312, allocations: 3.938 kB / 272.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.08324, allocations: 11.91 kB / 272.2 MB, free: 10.78 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.754e-05/0.08327, allocations: 4 kB / 272.2 MB, free: 10.77 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.0001673/0.08345, allocations: 197.2 kB / 272.4 MB, free: 10.56 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.266e-05/0.0835, allocations: 19.84 kB / 272.4 MB, free: 10.54 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.169e-05/0.08354, allocations: 8.359 kB / 272.4 MB, free: 10.53 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.08356, allocations: 4 kB / 272.4 MB, free: 10.52 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.08357, allocations: 0 / 272.4 MB, free: 10.52 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.08358, allocations: 0 / 272.4 MB, free: 10.52 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.08378, allocations: 209.5 kB / 272.6 MB, free: 10.27 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.0838, allocations: 4.062 kB / 272.6 MB, free: 10.27 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.029e-05/0.08382, allocations: 4 kB / 272.6 MB, free: 10.26 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/0.08383, allocations: 0 / 272.6 MB, free: 10.26 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.232e-05/0.08386, allocations: 8 kB / 272.6 MB, free: 10.25 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.08387, allocations: 0 / 272.6 MB, free: 10.25 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.08388, allocations: 4 kB / 272.6 MB, free: 10.25 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005249/0.08442, allocations: 280.2 kB / 272.9 MB, free: 9.945 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.328e-05/0.08448, allocations: 85.02 kB / 273 MB, free: 9.844 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.536e-05/0.08453, allocations: 7.984 kB / 273 MB, free: 9.836 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.08466, allocations: 8 kB / 273 MB, free: 9.828 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.482e-05/0.08474, allocations: 11.98 kB / 273 MB, free: 9.816 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.08477, allocations: 4 kB / 273 MB, free: 9.812 MB / 234.7 MB Notification: Performance of sorting global known variables: time 8.08e-05/0.08486, allocations: 115.4 kB / 273.2 MB, free: 9.699 MB / 234.7 MB Notification: Performance of sort global known variables: time 2.154e-06/0.08488, allocations: 0 / 273.2 MB, free: 9.699 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003209/0.08521, allocations: 55.94 kB / 273.2 MB, free: 9.645 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.0002649/0.08548, allocations: 139.2 kB / 273.3 MB, free: 9.5 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0004151/0.08591, allocations: 333.5 kB / 273.7 MB, free: 9.125 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.08593, allocations: 0 / 273.7 MB, free: 9.125 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002362/0.08617, allocations: 194.8 kB / 273.9 MB, free: 8.91 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.08631, allocations: 11.95 kB / 273.9 MB, free: 8.898 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005388/0.08687, allocations: 241.3 kB / 274.1 MB, free: 8.633 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.08716, allocations: 0.7082 MB / 274.8 MB, free: 7.898 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 2.757e-05/0.0872, allocations: 7.938 kB / 274.8 MB, free: 7.891 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.865e-05/0.08723, allocations: 7.438 kB / 274.8 MB, free: 7.887 MB / 234.7 MB Notification: Performance of SimCode: time 6.11e-07/0.08724, allocations: 4 kB / 274.8 MB, free: 7.883 MB / 234.7 MB Notification: Performance of Templates: time 0.005292/0.09254, allocations: 1.432 MB / 276.3 MB, free: 6.453 MB / 234.7 MB