Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGL.dFFR.clock|dFFREGL.dFFR.reset|dFFREGL.delay.inertialDelaySensitive.1..x|dFFREGL.delay.inertialDelaySensitive.1..y|dFFREGL.delay.inertialDelaySensitive.2..x|dFFREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.DFFREGL") Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 205.8 MB / 218.9 MB, free: 9.266 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.253e-05, allocations: 0 / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08567/0.08573, allocations: 47.57 MB / 316.9 MB, free: 6.742 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3413/0.427, allocations: 82.16 MB / 399.1 MB, free: 5.945 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.4273, allocations: 68.22 kB / 399.2 MB, free: 5.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1182/0.5455, allocations: 37.66 MB / 436.8 MB, free: 6.441 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.046e-06/0.5455, allocations: 0 / 436.8 MB, free: 6.441 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.857e-05/0.5456, allocations: 12 kB / 436.8 MB, free: 6.43 MB / 346.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.001366/0.547, allocations: 1.009 MB / 437.8 MB, free: 5.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.547, allocations: 12.03 kB / 437.8 MB, free: 5.371 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001948/0.5472, allocations: 90.91 kB / 437.9 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007517/0.548, allocations: 423.7 kB / 438.3 MB, free: 4.859 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.768e-05/0.5481, allocations: 27.69 kB / 438.4 MB, free: 4.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.454e-05/0.5482, allocations: 20 kB / 438.4 MB, free: 4.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.5493, allocations: 0.5086 MB / 438.9 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.792e-06/0.5493, allocations: 0 / 438.9 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.054e-05/0.5494, allocations: 19.59 kB / 438.9 MB, free: 4.406 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.5494, allocations: 4 kB / 438.9 MB, free: 4.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007245/0.5501, allocations: 353.5 kB / 439.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.5519, allocations: 0.8568 MB / 440.1 MB, free: 3.426 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008887/0.5528, allocations: 0.5059 MB / 440.6 MB, free: 3.109 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008314/0.5537, allocations: 0.4936 MB / 441.1 MB, free: 2.812 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.484e-05/0.5537, allocations: 4 kB / 441.1 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001122/0.5548, allocations: 0.6359 MB / 441.8 MB, free: 2.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 3.932e-06/0.5549, allocations: 0 / 441.8 MB, free: 2.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.002322/0.5572, allocations: 1.186 MB / 443 MB, free: 1.242 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002323/0.5575, allocations: 281.7 kB / 443.2 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002168/0.5596, allocations: 1.028 MB / 444.3 MB, free: 15.99 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001331/0.5598, allocations: 41.7 kB / 444.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001572/0.56, allocations: 146 kB / 444.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001666/0.5601, allocations: 79.09 kB / 444.5 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.742e-05/0.5602, allocations: 12 kB / 444.5 MB, free: 15.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002076/0.5605, allocations: 346.8 kB / 444.9 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007365/0.5612, allocations: 348.2 kB / 445.2 MB, free: 15.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007162/0.5619, allocations: 364.3 kB / 445.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007641/0.5627, allocations: 496.9 kB / 446 MB, free: 14.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.468e-06/0.5627, allocations: 0 / 446 MB, free: 14.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002252/0.565, allocations: 1.122 MB / 447.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002636/0.5653, allocations: 243.8 kB / 447.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.496e-06/0.5653, allocations: 0 / 447.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.5653, allocations: 4 kB / 447.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.939e-05/0.5654, allocations: 0 / 447.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.413e-06/0.5654, allocations: 0 / 447.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004701/0.5659, allocations: 47.81 kB / 447.5 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002358/0.5661, allocations: 152.2 kB / 447.6 MB, free: 12.49 MB / 362.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: 40 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].x,$PRE.dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].x,$PRE.dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGL.dFFR.reset,dFFREGL.dFFR.reset,$PRE.dFFREGL.dFFR.clock,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 12 * 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.0005351/0.5667, allocations: 410 kB / 448 MB, free: 12.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001916/0.5669, allocations: 90.92 kB / 448.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004748/0.5674, allocations: 151.8 kB / 448.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.725e-06/0.5674, allocations: 4 kB / 448.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.5674, allocations: 0 / 448.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.27e-06/0.5674, allocations: 0 / 448.2 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003756/0.5712, allocations: 1.958 MB / 450.2 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.788e-06/0.5712, allocations: 3.938 kB / 450.2 MB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.685e-05/0.5713, allocations: 4 kB / 450.2 MB, free: 9.727 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.846e-06/0.5713, allocations: 3.938 kB / 450.2 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.5714, allocations: 39.98 kB / 450.3 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.5714, allocations: 0 / 450.3 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.237e-06/0.5714, allocations: 0 / 450.3 MB, free: 9.684 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00263/0.5741, allocations: 1.381 MB / 451.6 MB, free: 8.242 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001304/0.5754, allocations: 0.5582 MB / 452.2 MB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002327/0.5757, allocations: 63.95 kB / 452.3 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004784/0.5762, allocations: 35.88 kB / 452.3 MB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005547/0.5767, allocations: 239.7 kB / 452.5 MB, free: 7.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002372/0.577, allocations: 155.9 kB / 452.7 MB, free: 7.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001856/0.5789, allocations: 0.8578 MB / 453.5 MB, free: 6.328 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.097e-06/0.5789, allocations: 0 / 453.5 MB, free: 6.328 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007228/0.5796, allocations: 124 kB / 453.7 MB, free: 6.207 MB / 362.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].y_old,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[2].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].y_old,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.dFFR.reset,dFFREGL.dFFR.clock,dFFREGL.dFFR.dataIn[1],dFFREGL.dFFR.dataIn[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREGL.dFFR.dataOut[2],dFFREGL.dFFR.dataOut[1],dFFREGL.dFFR.next_assign_val[2],dFFREGL.dFFR.next_assign_val[1],dFFREGL.dFFR.nextstate[2],dFFREGL.dFFR.nextstate[1],dFFREGL.dFFR.reset_flag,dFFREGL.dFFR.clock_flag,dFFREGL.dFFR.clock,dFFREGL.dFFR.reset,dFFREGL.delay.inertialDelaySensitive[1].y,dFFREGL.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[1].t_next,dFFREGL.delay.inertialDelaySensitive[1].delayTime,dFFREGL.delay.inertialDelaySensitive[1].lh,dFFREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGL.delay.inertialDelaySensitive[1].x,dFFREGL.delay.inertialDelaySensitive[2].y,dFFREGL.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGL.delay.inertialDelaySensitive[2].t_next,dFFREGL.delay.inertialDelaySensitive[2].delayTime,dFFREGL.delay.inertialDelaySensitive[2].lh,dFFREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 6 * 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.0003555/0.58, allocations: 192.4 kB / 453.8 MB, free: 6.008 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002474/0.5825, allocations: 1.507 MB / 455.4 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.272e-06/0.5825, allocations: 0 / 455.4 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001568/0.5841, allocations: 1.113 MB / 456.5 MB, free: 3.215 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001393/0.5855, allocations: 272.9 kB / 456.7 MB, free: 2.949 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003897/0.5894, allocations: 1.714 MB / 458.4 MB, free: 1.207 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/0.5907, allocations: 1.042 MB / 459.5 MB, free: 136 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.5909, allocations: 41.44 kB / 459.5 MB, free: 96 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.911e-05/0.5909, allocations: 19.38 kB / 459.5 MB, free: 76 kB / 362.7 MB Notification: Performance of SimCode: time 1.818e-06/0.591, allocations: 4 kB / 459.6 MB, free: 72 kB / 362.7 MB Notification: Performance of Templates: time 0.02747/0.6184, allocations: 13.55 MB / 473.1 MB, free: 2.301 MB / 378.7 MB