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.1_cpp_Modelica.Electrical.Digital.Examples.DFFREGSRH") Notification: Performance of loadModel(Modelica): time 1.783/1.783, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.226e-05/3.251e-05, allocations: 4 kB / 225 MB, free: 2.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2139, allocations: 38.77 MB / 263.8 MB, free: 9.891 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1117/0.3257, allocations: 72.81 MB / 336.6 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.326, allocations: 67.97 kB / 336.6 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.097/0.423, allocations: 30.54 MB / 367.2 MB, free: 2.355 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.004e-06/0.423, allocations: 0 / 367.2 MB, free: 2.355 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.118e-05/0.4231, allocations: 19.94 kB / 367.2 MB, free: 2.336 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.001952/0.4251, allocations: 1.284 MB / 368.5 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/0.4251, allocations: 12.02 kB / 368.5 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003533/0.4255, allocations: 134.5 kB / 368.6 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001003/0.4265, allocations: 0.509 MB / 369.1 MB, free: 256 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.089e-05/0.4266, allocations: 23.94 kB / 369.2 MB, free: 232 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001104/0.4267, allocations: 35.89 kB / 369.2 MB, free: 196 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1848/0.6116, allocations: 0.611 MB / 369.8 MB, free: 87.81 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.885e-05/0.6116, allocations: 0.5938 kB / 369.8 MB, free: 87.81 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.903e-05/0.6117, allocations: 16.14 kB / 369.8 MB, free: 87.81 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.6118, allocations: 2.906 kB / 369.8 MB, free: 87.81 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.6129, allocations: 449.6 kB / 370.3 MB, free: 87.81 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002176/0.6151, allocations: 1.04 MB / 371.3 MB, free: 87.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009765/0.6161, allocations: 0.6793 MB / 372 MB, free: 87.49 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009422/0.6171, allocations: 0.6791 MB / 372.7 MB, free: 87.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.6171, allocations: 0 / 372.7 MB, free: 87.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001152/0.6183, allocations: 0.7593 MB / 373.4 MB, free: 87.3 MB / 314.7 MB Notification: Performance of pre-optimization done (n=36): time 4.143e-06/0.6183, allocations: 0 / 373.4 MB, free: 87.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=36): time 0.002415/0.6208, allocations: 1.394 MB / 374.8 MB, free: 86.96 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.621, allocations: 331.5 kB / 375.1 MB, free: 86.65 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002629/0.6236, allocations: 1.433 MB / 376.6 MB, free: 86.35 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001999/0.6239, allocations: 51.22 kB / 376.6 MB, free: 86.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.624, allocations: 242.4 kB / 376.9 MB, free: 86.16 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.6242, allocations: 77.47 kB / 376.9 MB, free: 86.12 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.968e-05/0.6243, allocations: 17.39 kB / 376.9 MB, free: 86.12 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.28e-05/0.6244, allocations: 332.6 kB / 377.3 MB, free: 85.81 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007499/0.6252, allocations: 439.4 kB / 377.7 MB, free: 85.81 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007145/0.6259, allocations: 439.1 kB / 378.1 MB, free: 85.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006731/0.6266, allocations: 0.5835 MB / 378.7 MB, free: 85.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.45e-06/0.6266, allocations: 0 / 378.7 MB, free: 85.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00211/0.6287, allocations: 1.29 MB / 380 MB, free: 84.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001988/0.629, allocations: 291.7 kB / 380.3 MB, free: 84.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-06/0.629, allocations: 3.953 kB / 380.3 MB, free: 84.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.629, allocations: 3.781 kB / 380.3 MB, free: 84.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.228e-05/0.629, allocations: 7.438 kB / 380.3 MB, free: 84.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.042e-06/0.6291, allocations: 0 / 380.3 MB, free: 84.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005359/0.6296, allocations: 46.45 kB / 380.3 MB, free: 84.61 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000204/0.6298, allocations: 155.1 kB / 380.5 MB, free: 84.6 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: 43 ($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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[1].y,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,$PRE.dFFREGSRH.delay.inertialDelaySensitive[2].y,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.0004624/0.6303, allocations: 460.4 kB / 380.9 MB, free: 84.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002165/0.6305, allocations: 132.1 kB / 381.1 MB, free: 84.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005623/0.6311, allocations: 198 kB / 381.3 MB, free: 84.05 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.656e-06/0.6311, allocations: 11.05 kB / 381.3 MB, free: 84.04 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.378e-06/0.6312, allocations: 3.844 kB / 381.3 MB, free: 84.04 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.6312, allocations: 0 / 381.3 MB, free: 84.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00381/0.635, allocations: 2.302 MB / 383.6 MB, free: 82.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.168e-06/0.635, allocations: 3.688 kB / 383.6 MB, free: 82.89 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.46e-05/0.6351, allocations: 11.59 kB / 383.6 MB, free: 82.89 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.23e-06/0.6351, allocations: 7.516 kB / 383.6 MB, free: 82.89 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.6352, allocations: 42.34 kB / 383.6 MB, free: 82.88 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.6352, allocations: 0 / 383.6 MB, free: 82.88 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.209e-06/0.6353, allocations: 0 / 383.6 MB, free: 82.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/0.6379, allocations: 1.596 MB / 385.2 MB, free: 82.11 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001387/0.6393, allocations: 0.6537 MB / 385.9 MB, free: 81.72 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002487/0.6396, allocations: 67.36 kB / 386 MB, free: 81.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004947/0.6401, allocations: 44.72 kB / 386 MB, free: 81.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006527/0.6408, allocations: 360.6 kB / 386.4 MB, free: 81.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/0.641, allocations: 157.1 kB / 386.5 MB, free: 81.28 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001961/0.643, allocations: 1.189 MB / 387.7 MB, free: 80.23 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.077e-06/0.643, allocations: 0 / 387.7 MB, free: 80.23 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007627/0.6438, allocations: 154.3 kB / 387.9 MB, free: 80.08 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: 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.0002861/0.6441, allocations: 199.2 kB / 388 MB, free: 79.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002263/0.6463, allocations: 1.894 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.6464, allocations: 0 / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001318/0.6477, allocations: 1.389 MB / 391.3 MB, free: 76.63 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.649, allocations: 293.8 kB / 391.6 MB, free: 76.43 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00401/0.6531, allocations: 2.411 MB / 394 MB, free: 74.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009049/0.654, allocations: 1.171 MB / 395.2 MB, free: 73.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.192e-05/0.6541, allocations: 31.44 kB / 395.2 MB, free: 73.15 MB / 314.7 MB Notification: Performance of SimCode: time 1.78e-06/0.6541, allocations: 0 / 395.2 MB, free: 73.15 MB / 314.7 MB Notification: Performance of Templates: time 0.01574/0.6699, allocations: 10.83 MB / 406.1 MB, free: 63.62 MB / 314.7 MB