Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadModel(Modelica): time 1.816/1.816, allocations: 171.2 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.58e-05/4.574e-05, allocations: 6.188 kB / 228.1 MB, free: 5.902 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1099, allocations: 38.77 MB / 266.9 MB, free: 15.05 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002835/0.1128, allocations: 1.142 MB / 268 MB, free: 13.89 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001586/0.1144, allocations: 0.4894 MB / 268.5 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.29e-05/0.1145, allocations: 0 / 268.5 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 5.199e-05/0.1146, allocations: 7.875 kB / 268.5 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001458/0.1148, allocations: 27.89 kB / 268.5 MB, free: 13.36 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005146/0.1153, allocations: 63.83 kB / 268.6 MB, free: 13.3 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.1155, allocations: 35.91 kB / 268.6 MB, free: 13.26 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.459e-05/0.1155, allocations: 4 kB / 268.6 MB, free: 13.26 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.621e-05/0.1156, allocations: 23.91 kB / 268.7 MB, free: 13.23 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.763e-05/0.1157, allocations: 31.91 kB / 268.7 MB, free: 13.2 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001735/0.1159, allocations: 35.97 kB / 268.7 MB, free: 13.17 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.345e-05/0.116, allocations: 12 kB / 268.7 MB, free: 13.16 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.078e-05/0.1161, allocations: 15.92 kB / 268.8 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.829e-05/0.1161, allocations: 4 kB / 268.8 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.1164, allocations: 72.09 kB / 268.8 MB, free: 13.07 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.1164, allocations: 0 / 268.8 MB, free: 13.07 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.706e-06/0.1164, allocations: 0 / 268.8 MB, free: 13.07 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.1165, allocations: 0 / 268.8 MB, free: 13.07 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0008597/0.1173, allocations: 426.6 kB / 269.3 MB, free: 12.59 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.505e-05/0.1174, allocations: 12.03 kB / 269.3 MB, free: 12.58 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.459e-05/0.1175, allocations: 11.84 kB / 269.3 MB, free: 12.57 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.1177, allocations: 178.9 kB / 269.5 MB, free: 12.35 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.1178, allocations: 7.953 kB / 269.5 MB, free: 12.34 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.417e-05/0.1178, allocations: 4 kB / 269.5 MB, free: 12.34 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003719/0.1182, allocations: 97.03 kB / 269.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.1182, allocations: 4 kB / 269.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.1183, allocations: 8 kB / 269.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1183, allocations: 0 / 269.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002546/0.1186, allocations: 43.91 kB / 269.6 MB, free: 12.17 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007216/0.1193, allocations: 382.8 kB / 270 MB, free: 11.74 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003204/0.1197, allocations: 95.8 kB / 270.1 MB, free: 11.62 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.1197, allocations: 0 / 270.1 MB, free: 11.62 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004103/0.1201, allocations: 155.6 kB / 270.2 MB, free: 11.44 MB / 234.7 MB Notification: Performance of pre-optimization done (n=10): time 2.835e-06/0.1202, allocations: 0 / 270.2 MB, free: 11.44 MB / 234.7 MB Notification: Performance of matching and sorting (n=10): time 0.0009143/0.1211, allocations: 280.2 kB / 270.5 MB, free: 11.13 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.1212, allocations: 158.2 kB / 270.7 MB, free: 10.94 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.1215, allocations: 129.4 kB / 270.8 MB, free: 10.8 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.586e-05/0.1215, allocations: 25.7 kB / 270.8 MB, free: 10.77 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.1216, allocations: 166.7 kB / 271 MB, free: 10.61 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.653e-05/0.1217, allocations: 23.73 kB / 271 MB, free: 10.59 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.1217, allocations: 0 / 271 MB, free: 10.59 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.1219, allocations: 318.8 kB / 271.3 MB, free: 10.27 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.1221, allocations: 23.98 kB / 271.3 MB, free: 10.24 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.1223, allocations: 59.42 kB / 271.4 MB, free: 10.17 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002041/0.1225, allocations: 87.38 kB / 271.5 MB, free: 10.07 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.1226, allocations: 0 / 271.5 MB, free: 10.07 MB / 234.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0005719/0.1232, allocations: 180.9 kB / 271.7 MB, free: 9.879 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.448e-05/0.1233, allocations: 63.39 kB / 271.7 MB, free: 9.805 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1233, allocations: 0 / 271.7 MB, free: 9.805 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.252e-05/0.1233, allocations: 8.062 kB / 271.7 MB, free: 9.797 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.567e-05/0.1234, allocations: 0 / 271.7 MB, free: 9.797 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.1234, allocations: 4 kB / 271.7 MB, free: 9.793 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.1237, allocations: 19.89 kB / 271.7 MB, free: 9.773 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.1237, allocations: 7.938 kB / 271.8 MB, free: 9.766 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition2,step.y,pulse.y,$PRE.pulse.pulsStart,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,$PRE.table.y,table.y,$PRE.table.nextTime,table.nextTime,$PRE.table.index,table.index) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * 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 prepare postOptimizeDAE: time 0.0002335/0.124, allocations: 167.4 kB / 271.9 MB, free: 9.586 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.392e-05/0.124, allocations: 15.91 kB / 271.9 MB, free: 9.57 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.61e-05/0.1241, allocations: 8.312 kB / 271.9 MB, free: 9.559 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.1241, allocations: 4 kB / 271.9 MB, free: 9.555 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.1242, allocations: 0 / 271.9 MB, free: 9.555 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.1242, allocations: 3.984 kB / 271.9 MB, free: 9.551 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003308/0.1245, allocations: 193.6 kB / 272.1 MB, free: 9.312 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.538e-06/0.1246, allocations: 384 / 272.1 MB, free: 9.312 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.945e-05/0.1246, allocations: 0 / 272.1 MB, free: 9.312 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.391e-05/0.1246, allocations: 4 kB / 272.1 MB, free: 9.309 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.23e-05/0.1247, allocations: 11.98 kB / 272.2 MB, free: 9.297 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.748e-06/0.1247, allocations: 4 kB / 272.2 MB, free: 9.293 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1247, allocations: 4 kB / 272.2 MB, free: 9.289 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000709/0.1254, allocations: 231.8 kB / 272.4 MB, free: 9.02 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.333e-05/0.1255, allocations: 85.02 kB / 272.5 MB, free: 8.918 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.1256, allocations: 12 kB / 272.5 MB, free: 8.906 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002248/0.1259, allocations: 15.98 kB / 272.5 MB, free: 8.891 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.126, allocations: 15.97 kB / 272.5 MB, free: 8.875 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.126, allocations: 4 kB / 272.5 MB, free: 8.871 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0001381/0.1262, allocations: 111.7 kB / 272.6 MB, free: 8.762 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.1262, allocations: 0 / 272.6 MB, free: 8.762 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0005592/0.1268, allocations: 35.94 kB / 272.7 MB, free: 8.727 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,step.y,pulse.y,pulse.pulsStart,booleanExpression.y,sample.y,$whenCondition1,table.y,table.nextTime,table.index) * Number of discrete states: 4 (table.y,table.nextTime,table.index,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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.0003166/0.1271, allocations: 135.1 kB / 272.8 MB, free: 8.586 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005627/0.1277, allocations: 198.7 kB / 273 MB, free: 8.367 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1277, allocations: 0 / 273 MB, free: 8.367 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003378/0.1281, allocations: 123.3 kB / 273.1 MB, free: 8.234 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003397/0.1284, allocations: 12.25 kB / 273.1 MB, free: 8.223 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007594/0.1292, allocations: 244.6 kB / 273.4 MB, free: 7.949 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.1296, allocations: 0.6965 MB / 274.1 MB, free: 7.227 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.693e-05/0.1297, allocations: 19.44 kB / 274.1 MB, free: 7.211 MB / 234.7 MB Notification: Performance of SimCode: time 1.353e-06/0.1297, allocations: 0 / 274.1 MB, free: 7.211 MB / 234.7 MB Notification: Performance of Templates: time 0.005677/0.1354, allocations: 1.367 MB / 275.4 MB, free: 5.852 MB / 234.7 MB