Running command: translateModel(Modelica.Electrical.Digital.Examples.DFFREG,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dFFREG.dFFR.clock|dFFREG.dFFR.reset|dFFREG.delay.inertialDelaySensitive.1..x|dFFREG.delay.inertialDelaySensitive.1..y|dFFREG.delay.inertialDelaySensitive.2..x|dFFREG.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DFFREG") Notification: Performance of loadModel(Modelica): time 2.037/2.037, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.492e-05/4.51e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 50.42 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DFFREG): time 0.002534/0.1153, allocations: 1.412 MB / 346.4 MB, free: 7.531 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002965/0.1183, allocations: 0.8818 MB / 347.3 MB, free: 6.645 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.1185, allocations: 4 kB / 347.3 MB, free: 6.641 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.1187, allocations: 19.84 kB / 347.3 MB, free: 6.621 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.1189, allocations: 43.86 kB / 347.3 MB, free: 6.578 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004393/0.1193, allocations: 67.8 kB / 347.4 MB, free: 6.512 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003461/0.1197, allocations: 151.8 kB / 347.5 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.1199, allocations: 68.14 kB / 347.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001144/0.1211, allocations: 0.6941 MB / 348.3 MB, free: 5.598 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003219/0.1214, allocations: 175.6 kB / 348.5 MB, free: 5.426 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001136/0.1215, allocations: 12 kB / 348.5 MB, free: 5.414 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.1217, allocations: 8 kB / 348.5 MB, free: 5.406 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.1219, allocations: 155.5 kB / 348.6 MB, free: 5.254 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003408/0.1222, allocations: 40 kB / 348.7 MB, free: 5.215 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001165/0.1234, allocations: 0.8616 MB / 349.5 MB, free: 4.352 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.1235, allocations: 0 / 349.5 MB, free: 4.352 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1235, allocations: 3.938 kB / 349.6 MB, free: 4.348 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.683e-05/0.1235, allocations: 4 kB / 349.6 MB, free: 4.344 MB / 282.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.001404/0.1249, allocations: 0.9893 MB / 350.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.125, allocations: 12.03 kB / 350.6 MB, free: 3.25 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003138/0.1253, allocations: 90.97 kB / 350.6 MB, free: 3.16 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008214/0.1261, allocations: 411.5 kB / 351 MB, free: 2.715 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.807e-05/0.1262, allocations: 20 kB / 351.1 MB, free: 2.695 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.1264, allocations: 24 kB / 351.1 MB, free: 2.672 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001438/0.1278, allocations: 0.5099 MB / 351.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.1279, allocations: 0 / 351.6 MB, free: 2.156 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.408e-05/0.1279, allocations: 19.95 kB / 351.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.112e-06/0.128, allocations: 0 / 351.6 MB, free: 2.137 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.1291, allocations: 375.9 kB / 352 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.1311, allocations: 0.8635 MB / 352.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.1324, allocations: 0.5101 MB / 353.4 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.971e-05/0.1325, allocations: 0 / 353.4 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001538/0.134, allocations: 0.6508 MB / 354 MB, free: 15.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 3.677e-06/0.1341, allocations: 0 / 354 MB, free: 15.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.004165/0.1383, allocations: 1.783 MB / 355.8 MB, free: 13.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002487/0.1386, allocations: 275.3 kB / 356.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002461/0.141, allocations: 1.031 MB / 357.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000192/0.1413, allocations: 45.69 kB / 357.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001731/0.1415, allocations: 196.4 kB / 357.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002012/0.1417, allocations: 75.16 kB / 357.4 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.488e-05/0.1418, allocations: 11.98 kB / 357.4 MB, free: 12.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.1419, allocations: 330.8 kB / 357.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009664/0.1429, allocations: 352.1 kB / 358.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009427/0.1439, allocations: 386.9 kB / 358.5 MB, free: 11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009357/0.1449, allocations: 487.7 kB / 358.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1449, allocations: 0 / 358.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002693/0.1476, allocations: 1.11 MB / 360 MB, free: 9.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002592/0.1479, allocations: 243.9 kB / 360.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.1479, allocations: 0 / 360.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.148, allocations: 4.062 kB / 360.3 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.43e-05/0.148, allocations: 11.92 kB / 360.3 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.148, allocations: 4 kB / 360.3 MB, free: 9.02 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006082/0.1487, allocations: 43.77 kB / 360.3 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002295/0.1489, allocations: 128.2 kB / 360.5 MB, free: 8.852 MB / 298.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: 40 ($PRE.dFFREG.delay.inertialDelaySensitive[2].y,$PRE.dFFREG.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,clock.y,data_0.y,reset.y,data_1.y,$PRE.dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,$PRE.dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,$PRE.dFFREG.dFFR.reset,dFFREG.dFFR.reset,$PRE.dFFREG.dFFR.clock,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.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.001507/0.1504, allocations: 0.768 MB / 361.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000231/0.1507, allocations: 87.06 kB / 361.3 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003953/0.1511, allocations: 151.6 kB / 361.5 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.555e-06/0.1511, allocations: 4 kB / 361.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1511, allocations: 0 / 361.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.956e-06/0.1511, allocations: 7.969 kB / 361.5 MB, free: 7.781 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004357/0.1555, allocations: 1.97 MB / 363.5 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.1555, allocations: 0 / 363.5 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.195e-05/0.1556, allocations: 4 kB / 363.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.1556, allocations: 0 / 363.5 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.1557, allocations: 43.97 kB / 363.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.1557, allocations: 0 / 363.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.1557, allocations: 0 / 363.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003165/0.1589, allocations: 1.396 MB / 364.9 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001522/0.1605, allocations: 0.5621 MB / 365.5 MB, free: 3.625 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003253/0.1609, allocations: 59.95 kB / 365.5 MB, free: 3.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005397/0.1614, allocations: 39.89 kB / 365.6 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000687/0.1621, allocations: 239.7 kB / 365.8 MB, free: 3.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000275/0.1624, allocations: 159.9 kB / 365.9 MB, free: 3.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00206/0.1645, allocations: 0.8538 MB / 366.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.1645, allocations: 0 / 366.8 MB, free: 2.285 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007912/0.1653, allocations: 128 kB / 366.9 MB, free: 2.16 MB / 298.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,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].y_old,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[2].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].y_old,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.dFFR.reset,dFFREG.dFFR.clock,dFFREG.dFFR.dataIn[1],dFFREG.dFFR.dataIn[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.dataOut[2],dFFREG.dFFR.clock_flag,dFFREG.dFFR.reset_flag,dFFREG.dFFR.nextstate[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.next_assign_val[2]) * Number of discrete states: 32 (data_1.y,reset.y,data_0.y,clock.y,dFFREG.dFFR.dataOut[2],dFFREG.dFFR.dataOut[1],dFFREG.dFFR.next_assign_val[2],dFFREG.dFFR.next_assign_val[1],dFFREG.dFFR.nextstate[2],dFFREG.dFFR.nextstate[1],dFFREG.dFFR.reset_flag,dFFREG.dFFR.clock_flag,dFFREG.dFFR.clock,dFFREG.dFFR.reset,dFFREG.delay.inertialDelaySensitive[1].y,dFFREG.delay.inertialDelaySensitive[1].y_auxiliary,dFFREG.delay.inertialDelaySensitive[1].t_next,dFFREG.delay.inertialDelaySensitive[1].delayTime,dFFREG.delay.inertialDelaySensitive[1].lh,dFFREG.delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,dFFREG.delay.inertialDelaySensitive[1].x,dFFREG.delay.inertialDelaySensitive[2].y,dFFREG.delay.inertialDelaySensitive[2].y_auxiliary,dFFREG.delay.inertialDelaySensitive[2].t_next,dFFREG.delay.inertialDelaySensitive[2].delayTime,dFFREG.delay.inertialDelaySensitive[2].lh,dFFREG.delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,dFFREG.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.0004135/0.1658, allocations: 191.8 kB / 367.1 MB, free: 1.969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00297/0.1687, allocations: 1.527 MB / 368.6 MB, free: 364 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.1688, allocations: 0 / 368.6 MB, free: 364 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001884/0.1707, allocations: 1.117 MB / 369.8 MB, free: 15.15 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/0.1727, allocations: 287.7 kB / 370 MB, free: 14.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005203/0.1779, allocations: 2.234 MB / 372.3 MB, free: 12.61 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001133/0.1791, allocations: 1.042 MB / 373.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.913e-05/0.1792, allocations: 15.44 kB / 373.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of SimCode: time 1.062e-06/0.1792, allocations: 0 / 373.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of Templates: time 0.01718/0.1964, allocations: 7.916 MB / 381.2 MB, free: 3.504 MB / 314.7 MB