Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRL.delay.inertialDelaySensitive.1..x|dLATREGSRL.delay.inertialDelaySensitive.1..y|dLATREGSRL.delay.inertialDelaySensitive.2..x|dLATREGSRL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DLATREGSRL") Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 194.9 MB / 208 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.884e-05/3.9e-05, allocations: 4 kB / 255.4 MB, free: 2.707 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 44.5 MB / 299.9 MB, free: 6.145 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3453/0.4582, allocations: 78.07 MB / 377.9 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002054/0.4585, allocations: 65.58 kB / 378 MB, free: 22.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1018/0.5603, allocations: 38.74 MB / 416.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.489e-06/0.5604, allocations: 0 / 416.7 MB, free: 12.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.058e-05/0.5604, allocations: 19.66 kB / 416.8 MB, free: 12.65 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001386/0.5618, allocations: 1.319 MB / 418.1 MB, free: 11.56 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.5619, allocations: 11.72 kB / 418.1 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002422/0.5622, allocations: 136.4 kB / 418.2 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007693/0.5629, allocations: 0.5134 MB / 418.7 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.578e-05/0.563, allocations: 22.81 kB / 418.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.544e-05/0.5631, allocations: 26.94 kB / 418.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.5642, allocations: 0.6187 MB / 419.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.5643, allocations: 0 / 419.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.16e-05/0.5644, allocations: 11.31 kB / 419.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.007e-06/0.5644, allocations: 3.812 kB / 419.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008137/0.5652, allocations: 464.6 kB / 419.9 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002371/0.5676, allocations: 1.18 MB / 421.1 MB, free: 10.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009762/0.5686, allocations: 0.6957 MB / 421.8 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008992/0.5695, allocations: 0.6796 MB / 422.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.882e-06/0.5696, allocations: 0 / 422.4 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001014/0.5706, allocations: 0.7434 MB / 423.2 MB, free: 9.801 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 3.748e-06/0.5706, allocations: 0 / 423.2 MB, free: 9.801 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.002299/0.5729, allocations: 1.416 MB / 424.6 MB, free: 9.293 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001577/0.5731, allocations: 331.2 kB / 424.9 MB, free: 8.961 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003076/0.5762, allocations: 1.619 MB / 426.5 MB, free: 8.316 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001755/0.5764, allocations: 40.33 kB / 426.6 MB, free: 8.285 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002926/0.5767, allocations: 246.8 kB / 426.8 MB, free: 8.164 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001544/0.5769, allocations: 77.34 kB / 426.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.47e-05/0.577, allocations: 11.62 kB / 426.9 MB, free: 8.117 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.5771, allocations: 378.5 kB / 427.3 MB, free: 7.777 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008149/0.578, allocations: 455.9 kB / 427.7 MB, free: 7.719 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008114/0.5788, allocations: 459.9 kB / 428.2 MB, free: 7.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007006/0.5795, allocations: 0.5824 MB / 428.8 MB, free: 7.332 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.816e-06/0.5795, allocations: 3.719 kB / 428.8 MB, free: 7.332 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.002196/0.5817, allocations: 1.341 MB / 430.1 MB, free: 6.867 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002028/0.582, allocations: 298.7 kB / 430.4 MB, free: 6.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.582, allocations: 4 kB / 430.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.582, allocations: 0 / 430.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.628e-05/0.5821, allocations: 3.75 kB / 430.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.959e-06/0.5821, allocations: 0 / 430.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005058/0.5826, allocations: 45.03 kB / 430.4 MB, free: 6.574 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000172/0.5828, allocations: 132.3 kB / 430.6 MB, free: 6.559 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: 37 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].x,$PRE.dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 8 * 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.0004003/0.5832, allocations: 461.6 kB / 431 MB, free: 6.16 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.5834, allocations: 139.9 kB / 431.2 MB, free: 6.086 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008387/0.5843, allocations: 258.1 kB / 431.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.552e-06/0.5843, allocations: 0 / 431.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.903e-06/0.5843, allocations: 0 / 431.4 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.242e-06/0.5843, allocations: 3.938 kB / 431.4 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00376/0.5881, allocations: 2.402 MB / 433.8 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.515e-06/0.5881, allocations: 0 / 433.8 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.618e-05/0.5881, allocations: 0 / 433.8 MB, free: 4.875 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.927e-06/0.5882, allocations: 11.77 kB / 433.8 MB, free: 4.867 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.756e-05/0.5883, allocations: 33.64 kB / 433.9 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.973e-06/0.5883, allocations: 0 / 433.9 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.232e-06/0.5883, allocations: 0 / 433.9 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002468/0.5908, allocations: 1.628 MB / 435.5 MB, free: 4.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001349/0.5922, allocations: 0.6731 MB / 436.2 MB, free: 3.562 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002334/0.5924, allocations: 67.91 kB / 436.2 MB, free: 3.496 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004935/0.5929, allocations: 51.81 kB / 436.3 MB, free: 3.445 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006475/0.5936, allocations: 375.6 kB / 436.6 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001691/0.5938, allocations: 131.9 kB / 436.8 MB, free: 2.949 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002317/0.5961, allocations: 1.335 MB / 438.1 MB, free: 1.609 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.78e-07/0.5961, allocations: 0 / 438.1 MB, free: 1.609 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008329/0.597, allocations: 148 kB / 438.3 MB, free: 1.465 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.delay.inertialDelaySensitive[1].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.dLATSR.dataIn[1],dLATREGSRL.dLATSR.dataIn[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRL.dLATSR.dataOut[2],dLATREGSRL.dLATSR.dataOut[1],dLATREGSRL.dLATSR.next_assign_val[2],dLATREGSRL.dLATSR.next_assign_val[1],dLATREGSRL.dLATSR.nextstate[2],dLATREGSRL.dLATSR.nextstate[1],dLATREGSRL.dLATSR.reset_set_flag,dLATREGSRL.dLATSR.enable_flag,dLATREGSRL.delay.inertialDelaySensitive[2].y,dLATREGSRL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[2].t_next,dLATREGSRL.delay.inertialDelaySensitive[2].delayTime,dLATREGSRL.delay.inertialDelaySensitive[2].lh,dLATREGSRL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRL.delay.inertialDelaySensitive[2].x,dLATREGSRL.delay.inertialDelaySensitive[1].y,dLATREGSRL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRL.delay.inertialDelaySensitive[1].t_next,dLATREGSRL.delay.inertialDelaySensitive[1].delayTime,dLATREGSRL.delay.inertialDelaySensitive[1].lh,dLATREGSRL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRL.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 8 * 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.0003937/0.5974, allocations: 189.7 kB / 438.4 MB, free: 1.266 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.5999, allocations: 1.913 MB / 440.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.643e-06/0.5999, allocations: 0 / 440.4 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.6019, allocations: 1.425 MB / 441.8 MB, free: 13.72 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001431/0.6034, allocations: 298.4 kB / 442.1 MB, free: 13.44 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005483/0.6089, allocations: 2.513 MB / 444.6 MB, free: 10.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.6105, allocations: 1.223 MB / 445.8 MB, free: 9.633 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002052/0.6107, allocations: 49.38 kB / 445.9 MB, free: 9.582 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.845e-05/0.6108, allocations: 15.44 kB / 445.9 MB, free: 9.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.893e-06/0.6108, allocations: 4 kB / 445.9 MB, free: 9.566 MB / 330.7 MB Notification: Performance of Templates: time 0.03155/0.6424, allocations: 15.19 MB / 461.1 MB, free: 10.05 MB / 346.7 MB