Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREGSRH.dataOut.1.|dFFREGSRH.dataOut.2.",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 1.948/1.948, allocations: 194.9 MB / 210.6 MB, free: 8.336 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.428e-05/2.461e-05, allocations: 0 / 258.8 MB, free: 8.047 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3219, allocations: 44.5 MB / 303.3 MB, free: 12.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRH): time 0.002481/0.3244, allocations: 1.445 MB / 304.8 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003168/0.3277, allocations: 0.97 MB / 305.7 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.3279, allocations: 5.094 kB / 305.7 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.328, allocations: 21.22 kB / 305.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003909/0.3284, allocations: 175.2 kB / 305.9 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004268/0.3289, allocations: 89.19 kB / 306 MB, free: 10.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000451/0.3294, allocations: 194.3 kB / 306.2 MB, free: 10.58 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000235/0.3296, allocations: 80.44 kB / 306.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001401/0.331, allocations: 0.8189 MB / 307.1 MB, free: 9.68 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003957/0.3315, allocations: 203.7 kB / 307.3 MB, free: 9.48 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.3316, allocations: 12 kB / 307.3 MB, free: 9.469 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.3318, allocations: 12 kB / 307.3 MB, free: 9.457 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000301/0.3321, allocations: 243.2 kB / 307.6 MB, free: 9.219 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003934/0.3325, allocations: 60 kB / 307.6 MB, free: 9.16 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001553/0.3341, allocations: 1.179 MB / 308.8 MB, free: 7.98 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3341, allocations: 0 / 308.8 MB, free: 7.98 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.3341, allocations: 7.938 kB / 308.8 MB, free: 7.973 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.484e-05/0.3342, allocations: 0 / 308.8 MB, free: 7.973 MB / 250.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.001894/0.3361, allocations: 1.269 MB / 310.1 MB, free: 6.602 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3361, allocations: 8.031 kB / 310.1 MB, free: 6.594 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000341/0.3365, allocations: 138.4 kB / 310.2 MB, free: 6.457 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009628/0.3375, allocations: 0.5088 MB / 310.7 MB, free: 5.898 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.302e-05/0.3375, allocations: 24 kB / 310.8 MB, free: 5.875 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.3377, allocations: 31.98 kB / 310.8 MB, free: 5.844 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001676/0.3394, allocations: 0.6182 MB / 311.4 MB, free: 5.219 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.3395, allocations: 4 kB / 311.4 MB, free: 5.215 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.49e-05/0.3396, allocations: 12 kB / 311.4 MB, free: 5.203 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.3396, allocations: 4 kB / 311.4 MB, free: 5.199 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.3408, allocations: 467.6 kB / 311.9 MB, free: 4.742 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003101/0.3439, allocations: 1.091 MB / 313 MB, free: 3.594 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002532/0.3465, allocations: 0.695 MB / 313.7 MB, free: 2.891 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.3466, allocations: 3.938 kB / 313.7 MB, free: 2.887 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002715/0.3494, allocations: 0.7554 MB / 314.4 MB, free: 2.094 MB / 250.7 MB Notification: Performance of pre-optimization done (n=36): time 7.714e-06/0.3494, allocations: 4 kB / 314.4 MB, free: 2.09 MB / 250.7 MB Notification: Performance of matching and sorting (n=36): time 0.00677/0.3562, allocations: 2.118 MB / 316.5 MB, free: 15.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002711/0.3565, allocations: 332.9 kB / 316.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00378/0.3603, allocations: 1.612 MB / 318.5 MB, free: 13.85 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001898/0.3606, allocations: 41.7 kB / 318.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003771/0.361, allocations: 234.4 kB / 318.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002018/0.3612, allocations: 91.16 kB / 318.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.504e-05/0.3613, allocations: 12 kB / 318.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002291/0.3615, allocations: 378.7 kB / 319.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.3627, allocations: 459.9 kB / 319.7 MB, free: 12.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.3639, allocations: 474.7 kB / 320.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.3649, allocations: 0.5872 MB / 320.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.365, allocations: 3.953 kB / 320.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003076/0.368, allocations: 1.352 MB / 322.1 MB, free: 10.12 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002913/0.3684, allocations: 293.5 kB / 322.4 MB, free: 9.781 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3684, allocations: 4.062 kB / 322.4 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.3684, allocations: 0 / 322.4 MB, free: 9.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.976e-05/0.3685, allocations: 7.938 kB / 322.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.3685, allocations: 0 / 322.4 MB, free: 9.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006655/0.3692, allocations: 47.88 kB / 322.4 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002291/0.3694, allocations: 131.9 kB / 322.6 MB, free: 9.594 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 43 ($PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.set,$PRE.dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.reset,$PRE.dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 14 * 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.001937/0.3714, allocations: 1.002 MB / 323.6 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002836/0.3717, allocations: 130.5 kB / 323.7 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006387/0.3723, allocations: 247.6 kB / 323.9 MB, free: 8.152 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.3723, allocations: 0 / 323.9 MB, free: 8.152 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3723, allocations: 7.938 kB / 323.9 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.3724, allocations: 0 / 323.9 MB, free: 8.145 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005088/0.3775, allocations: 2.418 MB / 326.3 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.3775, allocations: 0 / 326.3 MB, free: 5.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.982e-05/0.3776, allocations: 4 kB / 326.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.3776, allocations: 3.938 kB / 326.4 MB, free: 5.605 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000167/0.3777, allocations: 43.97 kB / 326.4 MB, free: 5.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.3778, allocations: 0 / 326.4 MB, free: 5.562 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.3778, allocations: 0 / 326.4 MB, free: 5.562 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003612/0.3814, allocations: 1.645 MB / 328 MB, free: 3.848 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/0.3833, allocations: 0.6863 MB / 328.7 MB, free: 3.141 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003378/0.3836, allocations: 63.97 kB / 328.8 MB, free: 3.078 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005869/0.3842, allocations: 35.95 kB / 328.8 MB, free: 3.043 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009525/0.3852, allocations: 355.6 kB / 329.2 MB, free: 2.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002957/0.3855, allocations: 155.9 kB / 329.3 MB, free: 2.543 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.003413/0.389, allocations: 1.329 MB / 330.7 MB, free: 1.211 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.313e-06/0.389, allocations: 0 / 330.7 MB, free: 1.211 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009329/0.3899, allocations: 151.9 kB / 330.8 MB, free: 1.062 MB / 266.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: 36 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,set.y,dFFREGSRH.delay.inertialDelaySensitive[1].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.dFFSR.set,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.dataIn[1],dFFREGSRH.dFFSR.dataIn[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.next_assign_val[2]) * Number of discrete states: 34 (set.y,data_1.y,reset.y,data_0.y,clock.y,dFFREGSRH.dFFSR.dataOut[2],dFFREGSRH.dFFSR.dataOut[1],dFFREGSRH.dFFSR.next_assign_val[2],dFFREGSRH.dFFSR.next_assign_val[1],dFFREGSRH.dFFSR.nextstate[2],dFFREGSRH.dFFSR.nextstate[1],dFFREGSRH.dFFSR.reset_set_flag,dFFREGSRH.dFFSR.clock_flag,dFFREGSRH.dFFSR.clock,dFFREGSRH.dFFSR.reset,dFFREGSRH.dFFSR.set,dFFREGSRH.delay.inertialDelaySensitive[2].y,dFFREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[2].t_next,dFFREGSRH.delay.inertialDelaySensitive[2].delayTime,dFFREGSRH.delay.inertialDelaySensitive[2].lh,dFFREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREGSRH.delay.inertialDelaySensitive[2].x,dFFREGSRH.delay.inertialDelaySensitive[1].y,dFFREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dFFREGSRH.delay.inertialDelaySensitive[1].t_next,dFFREGSRH.delay.inertialDelaySensitive[1].delayTime,dFFREGSRH.delay.inertialDelaySensitive[1].lh,dFFREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 7 * 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.0003948/0.3904, allocations: 197.7 kB / 331 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003496/0.3939, allocations: 1.936 MB / 332.9 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3939, allocations: 0 / 332.9 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002199/0.3961, allocations: 1.407 MB / 334.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/0.3983, allocations: 299.5 kB / 334.6 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006937/0.4053, allocations: 3.089 MB / 337.7 MB, free: 9.902 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001577/0.4069, allocations: 1.22 MB / 338.9 MB, free: 8.656 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005528/0.4075, allocations: 187 kB / 339.1 MB, free: 8.473 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.14e-05/0.4076, allocations: 27.44 kB / 339.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of SimCode: time 3.817e-06/0.4076, allocations: 0 / 339.2 MB, free: 8.445 MB / 282.7 MB Notification: Performance of Templates: time 0.03791/0.4455, allocations: 16.48 MB / 355.6 MB, free: 7.574 MB / 298.7 MB