Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGL.delay.inertialDelaySensitive.1..x|dLATREGL.delay.inertialDelaySensitive.1..y|dLATREGL.delay.inertialDelaySensitive.2..x|dLATREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGL") Notification: Performance of loadModel(Modelica): time 1.939/1.939, allocations: 194.9 MB / 208 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.046e-05/3.059e-05, allocations: 8 kB / 255.4 MB, free: 2.684 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07871/0.07876, allocations: 44.49 MB / 299.9 MB, free: 6.129 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3298/0.4086, allocations: 77.74 MB / 377.6 MB, free: 22.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002125/0.4088, allocations: 66.77 kB / 377.7 MB, free: 22.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09638/0.5052, allocations: 33.37 MB / 411.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.812e-06/0.5053, allocations: 0 / 411.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.489e-05/0.5053, allocations: 11.72 kB / 411.1 MB, free: 15.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.001038/0.5064, allocations: 0.9942 MB / 412.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.5064, allocations: 7.812 kB / 412.1 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001753/0.5066, allocations: 89.81 kB / 412.2 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006129/0.5072, allocations: 408.5 kB / 412.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.307e-05/0.5073, allocations: 22.84 kB / 412.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.874e-05/0.5074, allocations: 26.28 kB / 412.6 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009062/0.5083, allocations: 0.4896 MB / 413.1 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.5083, allocations: 3.938 kB / 413.1 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.797e-05/0.5084, allocations: 15.64 kB / 413.1 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.141e-06/0.5084, allocations: 7.891 kB / 413.1 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006462/0.5091, allocations: 356 kB / 413.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00172/0.5108, allocations: 0.921 MB / 414.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007679/0.5116, allocations: 0.49 MB / 414.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007084/0.5124, allocations: 491.2 kB / 415.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.5124, allocations: 3.984 kB / 415.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008571/0.5133, allocations: 0.6248 MB / 416 MB, free: 12.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 5.576e-06/0.5133, allocations: 4.016 kB / 416 MB, free: 12.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.001938/0.5152, allocations: 1.147 MB / 417.1 MB, free: 12.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001297/0.5154, allocations: 281.3 kB / 417.4 MB, free: 12.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.5173, allocations: 1.018 MB / 418.4 MB, free: 11.77 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001124/0.5174, allocations: 37.02 kB / 418.5 MB, free: 11.73 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.5175, allocations: 149 kB / 418.6 MB, free: 11.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.5176, allocations: 73.19 kB / 418.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.016e-05/0.5177, allocations: 10.97 kB / 418.7 MB, free: 11.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.313e-05/0.5178, allocations: 345 kB / 419 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006207/0.5185, allocations: 347 kB / 419.4 MB, free: 11.21 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000612/0.5191, allocations: 348.1 kB / 419.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005855/0.5197, allocations: 495.8 kB / 420.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.605e-06/0.5197, allocations: 0 / 420.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001766/0.5215, allocations: 1.091 MB / 421.3 MB, free: 10.49 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001579/0.5217, allocations: 245.7 kB / 421.5 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.386e-06/0.5217, allocations: 7.938 kB / 421.5 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.5217, allocations: 0 / 421.5 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.573e-05/0.5218, allocations: 0 / 421.5 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.5218, allocations: 0 / 421.5 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004301/0.5222, allocations: 46.41 kB / 421.6 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/0.5224, allocations: 133.1 kB / 421.7 MB, free: 10.22 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.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.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.0003765/0.5228, allocations: 410.8 kB / 422.1 MB, free: 9.859 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001446/0.523, allocations: 89.94 kB / 422.2 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000456/0.5234, allocations: 152 kB / 422.3 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.144e-06/0.5234, allocations: 0 / 422.3 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.904e-06/0.5235, allocations: 0 / 422.3 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.384e-06/0.5235, allocations: 3.875 kB / 422.3 MB, free: 9.73 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003017/0.5265, allocations: 1.927 MB / 424.3 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.781e-06/0.5265, allocations: 0 / 424.3 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.849e-05/0.5266, allocations: 3.906 kB / 424.3 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.682e-06/0.5266, allocations: 4 kB / 424.3 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.622e-05/0.5267, allocations: 30.73 kB / 424.3 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.863e-06/0.5267, allocations: 0 / 424.3 MB, free: 8.836 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.232e-06/0.5267, allocations: 3.984 kB / 424.3 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/0.5289, allocations: 1.363 MB / 425.7 MB, free: 8.289 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.53, allocations: 0.5579 MB / 426.2 MB, free: 8.008 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002116/0.5303, allocations: 58.03 kB / 426.3 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004639/0.5308, allocations: 42.59 kB / 426.3 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000472/0.5312, allocations: 231.1 kB / 426.6 MB, free: 7.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/0.5314, allocations: 137.5 kB / 426.7 MB, free: 7.902 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001545/0.533, allocations: 0.8503 MB / 427.5 MB, free: 7.574 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.43e-07/0.533, allocations: 0 / 427.5 MB, free: 7.574 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006588/0.5337, allocations: 122.6 kB / 427.7 MB, free: 7.57 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,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.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.0002743/0.534, allocations: 188.7 kB / 427.9 MB, free: 7.445 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00176/0.5357, allocations: 1.513 MB / 429.4 MB, free: 6.891 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.5358, allocations: 0 / 429.4 MB, free: 6.891 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.537, allocations: 1.135 MB / 430.5 MB, free: 6.391 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.5381, allocations: 259.7 kB / 430.8 MB, free: 6.309 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003124/0.5413, allocations: 1.706 MB / 432.5 MB, free: 5.715 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.5423, allocations: 1.042 MB / 433.5 MB, free: 20.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001857/0.5425, allocations: 30.92 kB / 433.5 MB, free: 20.81 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.441e-05/0.5426, allocations: 15.06 kB / 433.5 MB, free: 20.8 MB / 330.7 MB Notification: Performance of SimCode: time 1.588e-06/0.5426, allocations: 3.938 kB / 433.5 MB, free: 20.8 MB / 330.7 MB Notification: Performance of Templates: time 0.02348/0.5661, allocations: 12.64 MB / 446.2 MB, free: 9.152 MB / 330.7 MB