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_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 2.081/2.081, allocations: 194.9 MB / 211.2 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.79e-05/3.781e-05, allocations: 8 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3306, allocations: 44.51 MB / 303.3 MB, free: 12.8 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREGSRH): time 0.002392/0.333, allocations: 1.448 MB / 304.7 MB, free: 11.61 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003028/0.3361, allocations: 0.9703 MB / 305.7 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.3363, allocations: 4.469 kB / 305.7 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.3365, allocations: 26.12 kB / 305.7 MB, free: 10.87 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003559/0.3368, allocations: 171.2 kB / 305.9 MB, free: 10.78 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003804/0.3372, allocations: 89.86 kB / 306 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003738/0.3376, allocations: 197.5 kB / 306.2 MB, free: 10.57 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.3378, allocations: 74.5 kB / 306.3 MB, free: 10.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001404/0.3393, allocations: 0.8136 MB / 307.1 MB, free: 9.926 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.3397, allocations: 211.6 kB / 307.3 MB, free: 9.719 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.3398, allocations: 12 kB / 307.3 MB, free: 9.707 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001394/0.34, allocations: 8 kB / 307.3 MB, free: 9.699 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000357/0.3404, allocations: 239.2 kB / 307.5 MB, free: 9.465 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000387/0.3408, allocations: 64 kB / 307.6 MB, free: 9.402 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001565/0.3423, allocations: 1.179 MB / 308.8 MB, free: 8.223 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.093e-06/0.3424, allocations: 4 kB / 308.8 MB, free: 8.219 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3424, allocations: 0 / 308.8 MB, free: 8.219 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.296e-05/0.3424, allocations: 0 / 308.8 MB, free: 8.219 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.001974/0.3444, allocations: 1.269 MB / 310 MB, free: 6.848 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.3445, allocations: 11.97 kB / 310.1 MB, free: 6.836 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003222/0.3448, allocations: 130.5 kB / 310.2 MB, free: 6.707 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000981/0.3458, allocations: 0.5205 MB / 310.7 MB, free: 6.137 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.381e-05/0.3459, allocations: 24 kB / 310.7 MB, free: 6.113 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000129/0.346, allocations: 32 kB / 310.8 MB, free: 6.082 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.3477, allocations: 0.6182 MB / 311.4 MB, free: 5.457 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.3478, allocations: 4 kB / 311.4 MB, free: 5.453 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.343e-05/0.3479, allocations: 12 kB / 311.4 MB, free: 5.441 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.3479, allocations: 8 kB / 311.4 MB, free: 5.434 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.3492, allocations: 463.7 kB / 311.9 MB, free: 4.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.3516, allocations: 1.084 MB / 312.9 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.3532, allocations: 0.6976 MB / 313.6 MB, free: 3.133 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.3533, allocations: 3.938 kB / 313.6 MB, free: 3.129 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00162/0.3549, allocations: 0.7554 MB / 314.4 MB, free: 2.336 MB / 250.7 MB Notification: Performance of pre-optimization done (n=36): time 3.917e-06/0.3549, allocations: 3.938 kB / 314.4 MB, free: 2.332 MB / 250.7 MB Notification: Performance of matching and sorting (n=36): time 0.004826/0.3598, allocations: 2.122 MB / 316.5 MB, free: 100 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003618/0.3602, allocations: 332.9 kB / 316.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004093/0.3643, allocations: 1.608 MB / 318.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002343/0.3646, allocations: 45.69 kB / 318.5 MB, free: 14.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003281/0.3649, allocations: 244.9 kB / 318.7 MB, free: 13.8 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.3652, allocations: 91.16 kB / 318.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.572e-05/0.3652, allocations: 12 kB / 318.8 MB, free: 13.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.3654, allocations: 326.8 kB / 319.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.3666, allocations: 451.9 kB / 319.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001177/0.3678, allocations: 482.7 kB / 320.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001157/0.369, allocations: 0.5872 MB / 320.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.966e-06/0.369, allocations: 3.953 kB / 320.7 MB, free: 11.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.003072/0.3721, allocations: 1.314 MB / 322 MB, free: 10.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003231/0.3725, allocations: 293.5 kB / 322.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/0.3725, allocations: 0 / 322.3 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.291e-05/0.3725, allocations: 3.984 kB / 322.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.301e-05/0.3726, allocations: 12 kB / 322.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.3726, allocations: 0 / 322.3 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008524/0.3735, allocations: 47.88 kB / 322.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002421/0.3737, allocations: 127.9 kB / 322.5 MB, free: 9.91 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.001918/0.3757, allocations: 0.9907 MB / 323.4 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.376, allocations: 130.5 kB / 323.6 MB, free: 8.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000758/0.3767, allocations: 255.6 kB / 323.8 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.67e-06/0.3768, allocations: 0 / 323.8 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.3768, allocations: 0 / 323.8 MB, free: 8.473 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.3768, allocations: 4 kB / 323.8 MB, free: 8.469 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005461/0.3823, allocations: 2.422 MB / 326.2 MB, free: 5.934 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3823, allocations: 7.875 kB / 326.3 MB, free: 5.926 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.521e-05/0.3824, allocations: 4 kB / 326.3 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.356e-06/0.3824, allocations: 4 kB / 326.3 MB, free: 5.918 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.3825, allocations: 35.98 kB / 326.3 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3825, allocations: 0 / 326.3 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3825, allocations: 0 / 326.3 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00402/0.3866, allocations: 1.653 MB / 327.9 MB, free: 4.16 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001914/0.3885, allocations: 0.6824 MB / 328.6 MB, free: 3.457 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003377/0.3889, allocations: 55.97 kB / 328.7 MB, free: 3.402 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006077/0.3895, allocations: 43.97 kB / 328.7 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009424/0.3905, allocations: 355.6 kB / 329.1 MB, free: 3.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002764/0.3908, allocations: 159.9 kB / 329.2 MB, free: 2.855 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.003412/0.3942, allocations: 1.325 MB / 330.6 MB, free: 1.527 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.72e-07/0.3943, allocations: 0 / 330.6 MB, free: 1.527 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0008791/0.3951, allocations: 155.9 kB / 330.7 MB, free: 1.375 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.0003961/0.3956, allocations: 193.7 kB / 330.9 MB, free: 1.176 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.003594/0.3992, allocations: 1.94 MB / 332.8 MB, free: 15.14 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.3992, allocations: 0 / 332.8 MB, free: 15.14 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002292/0.4015, allocations: 1.393 MB / 334.2 MB, free: 13.64 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/0.4035, allocations: 307.5 kB / 334.5 MB, free: 13.35 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007232/0.4108, allocations: 3.188 MB / 337.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001606/0.4124, allocations: 1.22 MB / 338.9 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.078e-05/0.4125, allocations: 27.44 kB / 339 MB, free: 8.844 MB / 282.7 MB Notification: Performance of SimCode: time 1.132e-06/0.4126, allocations: 7.938 kB / 339 MB, free: 8.836 MB / 282.7 MB Notification: Performance of Templates: time 0.02447/0.437, allocations: 11.34 MB / 350.3 MB, free: 13.28 MB / 298.7 MB