Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREG.delay.inertialDelaySensitive.1..x|dLATREG.delay.inertialDelaySensitive.1..y|dLATREG.delay.inertialDelaySensitive.2..x|dLATREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREG") Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.753e-05/2.773e-05, allocations: 4 kB / 255.4 MB, free: 2.711 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08111/0.08116, allocations: 44.5 MB / 299.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3302/0.4114, allocations: 77.7 MB / 377.6 MB, free: 22.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.4117, allocations: 67.97 kB / 377.6 MB, free: 22.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07719/0.4889, allocations: 26.75 MB / 404.4 MB, free: 18.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.989e-06/0.4889, allocations: 0 / 404.4 MB, free: 18.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.421e-05/0.489, allocations: 11.69 kB / 404.4 MB, free: 18.24 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001005/0.49, allocations: 1.012 MB / 405.4 MB, free: 17.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.49, allocations: 11.72 kB / 405.4 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.4902, allocations: 85.84 kB / 405.5 MB, free: 17.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006013/0.4908, allocations: 404.5 kB / 405.9 MB, free: 17.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.036e-05/0.4909, allocations: 19.02 kB / 405.9 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.409e-05/0.491, allocations: 30.95 kB / 406 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009515/0.492, allocations: 497.7 kB / 406.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.492, allocations: 0 / 406.4 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.74e-05/0.4921, allocations: 15.31 kB / 406.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.005e-06/0.4921, allocations: 0 / 406.5 MB, free: 16.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000661/0.4928, allocations: 360.4 kB / 406.8 MB, free: 16.81 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.4946, allocations: 0.9338 MB / 407.7 MB, free: 16.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007717/0.4954, allocations: 0.4954 MB / 408.2 MB, free: 16.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007111/0.4962, allocations: 489 kB / 408.7 MB, free: 16.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.4962, allocations: 3.906 kB / 408.7 MB, free: 16.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009303/0.4971, allocations: 0.6204 MB / 409.3 MB, free: 15.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 4.039e-06/0.4972, allocations: 4 kB / 409.3 MB, free: 15.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002011/0.4992, allocations: 1.145 MB / 410.5 MB, free: 15.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/0.4993, allocations: 285.8 kB / 410.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00195/0.5013, allocations: 1.016 MB / 411.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.5015, allocations: 45.31 kB / 411.8 MB, free: 14.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.5016, allocations: 141.5 kB / 412 MB, free: 14.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.5017, allocations: 70.11 kB / 412 MB, free: 14.57 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.239e-05/0.5018, allocations: 11.56 kB / 412.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.416e-05/0.5019, allocations: 348.7 kB / 412.4 MB, free: 14.24 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006346/0.5026, allocations: 341.5 kB / 412.7 MB, free: 14.2 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006116/0.5032, allocations: 342.8 kB / 413.1 MB, free: 14.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006004/0.5038, allocations: 0.4891 MB / 413.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.898e-06/0.5038, allocations: 3.938 kB / 413.6 MB, free: 13.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001863/0.5057, allocations: 1.086 MB / 414.6 MB, free: 13.48 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001681/0.5059, allocations: 248.8 kB / 414.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.546e-06/0.5059, allocations: 0 / 414.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.5059, allocations: 0 / 414.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.634e-05/0.506, allocations: 3.906 kB / 414.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.528e-06/0.506, allocations: 3.953 kB / 414.9 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004663/0.5065, allocations: 50.88 kB / 414.9 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001677/0.5067, allocations: 121.1 kB / 415.1 MB, free: 13.21 MB / 314.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].x,$PRE.dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].x,$PRE.dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 7 * 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.0003962/0.5071, allocations: 416.6 kB / 415.5 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.5073, allocations: 89.55 kB / 415.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004535/0.5077, allocations: 148.4 kB / 415.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.5077, allocations: 0 / 415.7 MB, free: 12.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.583e-06/0.5078, allocations: 7.984 kB / 415.7 MB, free: 12.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.249e-06/0.5078, allocations: 3.953 kB / 415.7 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00313/0.5109, allocations: 1.928 MB / 417.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.563e-06/0.511, allocations: 0 / 417.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.707e-05/0.511, allocations: 0 / 417.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.54e-06/0.511, allocations: 0 / 417.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.956e-05/0.5111, allocations: 38.47 kB / 417.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.843e-06/0.5111, allocations: 7.859 kB / 417.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.35e-06/0.5111, allocations: 4 kB / 417.7 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.5134, allocations: 1.355 MB / 419 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00116/0.5146, allocations: 0.5517 MB / 419.6 MB, free: 11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.5148, allocations: 64.27 kB / 419.7 MB, free: 10.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004599/0.5153, allocations: 43.33 kB / 419.7 MB, free: 10.97 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004904/0.5158, allocations: 233.6 kB / 419.9 MB, free: 10.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/0.516, allocations: 136.5 kB / 420.1 MB, free: 10.89 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001616/0.5176, allocations: 0.8489 MB / 420.9 MB, free: 10.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.24e-07/0.5176, allocations: 0 / 420.9 MB, free: 10.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006539/0.5183, allocations: 120.8 kB / 421 MB, free: 10.56 MB / 314.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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].y_old,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[2].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].y_old,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.dLATR.dataIn[1],dLATREG.dLATR.dataIn[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.dataOut[2],dLATREG.dLATR.enable_flag,dLATREG.dLATR.reset_flag,dLATREG.dLATR.nextstate[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREG.dLATR.dataOut[2],dLATREG.dLATR.dataOut[1],dLATREG.dLATR.next_assign_val[2],dLATREG.dLATR.next_assign_val[1],dLATREG.dLATR.nextstate[2],dLATREG.dLATR.nextstate[1],dLATREG.dLATR.reset_flag,dLATREG.dLATR.enable_flag,dLATREG.delay.inertialDelaySensitive[1].y,dLATREG.delay.inertialDelaySensitive[1].y_auxiliary,dLATREG.delay.inertialDelaySensitive[1].t_next,dLATREG.delay.inertialDelaySensitive[1].delayTime,dLATREG.delay.inertialDelaySensitive[1].lh,dLATREG.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREG.delay.inertialDelaySensitive[1].x,dLATREG.delay.inertialDelaySensitive[2].y,dLATREG.delay.inertialDelaySensitive[2].y_auxiliary,dLATREG.delay.inertialDelaySensitive[2].t_next,dLATREG.delay.inertialDelaySensitive[2].delayTime,dLATREG.delay.inertialDelaySensitive[2].lh,dLATREG.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREG.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 7 * 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.000268/0.5186, allocations: 182.1 kB / 421.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001966/0.5206, allocations: 1.516 MB / 422.7 MB, free: 9.891 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.246e-06/0.5206, allocations: 3.938 kB / 422.7 MB, free: 9.887 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001219/0.5218, allocations: 1.138 MB / 423.9 MB, free: 9.383 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001336/0.5232, allocations: 258 kB / 424.1 MB, free: 9.301 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003305/0.5265, allocations: 1.701 MB / 425.8 MB, free: 8.711 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000822/0.5274, allocations: 1.034 MB / 426.8 MB, free: 7.863 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001919/0.5276, allocations: 33 kB / 426.9 MB, free: 7.848 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.413e-05/0.5276, allocations: 18.94 kB / 426.9 MB, free: 7.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.675e-06/0.5276, allocations: 0 / 426.9 MB, free: 7.84 MB / 314.7 MB Notification: Performance of Templates: time 0.0255/0.5531, allocations: 12.65 MB / 439.5 MB, free: 14.86 MB / 330.7 MB