Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREGSRH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGSRH.delay.inertialDelaySensitive.1..x|dLATREGSRH.delay.inertialDelaySensitive.1..y|dLATREGSRH.delay.inertialDelaySensitive.2..x|dLATREGSRH.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGSRH") Notification: Performance of loadModel(Modelica): time 2.106/2.106, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.169e-05/4.129e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1525, allocations: 50.41 MB / 345 MB, free: 8.953 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DLATREGSRH): time 0.003657/0.1563, allocations: 1.447 MB / 346.4 MB, free: 7.496 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00393/0.1603, allocations: 0.9442 MB / 347.4 MB, free: 6.547 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001345/0.1604, allocations: 8 kB / 347.4 MB, free: 6.539 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000159/0.1606, allocations: 23.84 kB / 347.4 MB, free: 6.516 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003386/0.161, allocations: 163.7 kB / 347.6 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004038/0.1614, allocations: 95.75 kB / 347.6 MB, free: 6.262 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.1618, allocations: 195.6 kB / 347.8 MB, free: 6.07 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002252/0.1621, allocations: 72.44 kB / 347.9 MB, free: 5.996 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001125/0.1632, allocations: 0.6279 MB / 348.5 MB, free: 5.367 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003643/0.1636, allocations: 195.6 kB / 348.7 MB, free: 5.176 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001297/0.1637, allocations: 12 kB / 348.7 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001374/0.1639, allocations: 12 kB / 348.8 MB, free: 5.152 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000311/0.1642, allocations: 243.2 kB / 349 MB, free: 4.914 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003169/0.1645, allocations: 56 kB / 349 MB, free: 4.859 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001551/0.1661, allocations: 1.189 MB / 350.2 MB, free: 3.668 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.1662, allocations: 4 kB / 350.2 MB, free: 3.664 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.165e-06/0.1662, allocations: 0 / 350.2 MB, free: 3.664 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.566e-05/0.1662, allocations: 0 / 350.2 MB, free: 3.664 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.002105/0.1683, allocations: 1.281 MB / 351.5 MB, free: 2.281 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/0.1684, allocations: 8.031 kB / 351.5 MB, free: 2.273 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003865/0.1688, allocations: 138.3 kB / 351.7 MB, free: 2.137 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009843/0.1698, allocations: 0.5285 MB / 352.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.567e-05/0.1699, allocations: 20 kB / 352.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.17, allocations: 35.98 kB / 352.2 MB, free: 1.504 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001724/0.1718, allocations: 0.6222 MB / 352.9 MB, free: 0.875 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.589e-05/0.1718, allocations: 0 / 352.9 MB, free: 0.875 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.479e-05/0.1719, allocations: 15.95 kB / 352.9 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.172, allocations: 4 kB / 352.9 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.1733, allocations: 483.6 kB / 353.4 MB, free: 392 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002954/0.1763, allocations: 1.166 MB / 354.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.178, allocations: 0.7053 MB / 355.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.178, allocations: 0 / 355.2 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001723/0.1797, allocations: 0.7561 MB / 356 MB, free: 13.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 4.098e-06/0.1798, allocations: 0 / 356 MB, free: 13.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.005096/0.1849, allocations: 2.132 MB / 358.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003281/0.1853, allocations: 333 kB / 358.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004348/0.1896, allocations: 1.636 MB / 360.1 MB, free: 9.371 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000215/0.1899, allocations: 45.69 kB / 360.1 MB, free: 9.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003704/0.1903, allocations: 249 kB / 360.4 MB, free: 9.074 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/0.1905, allocations: 83.09 kB / 360.4 MB, free: 8.992 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.531e-05/0.1906, allocations: 16 kB / 360.5 MB, free: 8.977 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1908, allocations: 326.8 kB / 360.8 MB, free: 8.648 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.192, allocations: 455.8 kB / 361.2 MB, free: 8.203 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001232/0.1933, allocations: 497.2 kB / 361.7 MB, free: 7.711 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001193/0.1945, allocations: 0.5909 MB / 362.3 MB, free: 7.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.1946, allocations: 0 / 362.3 MB, free: 7.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.003219/0.1978, allocations: 1.326 MB / 363.6 MB, free: 5.688 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003119/0.1982, allocations: 297.5 kB / 363.9 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.1982, allocations: 0 / 363.9 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.1982, allocations: 3.984 kB / 363.9 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.97e-05/0.1983, allocations: 7.938 kB / 363.9 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.1983, allocations: 0 / 363.9 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007533/0.199, allocations: 47.88 kB / 364 MB, free: 5.289 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002436/0.1993, allocations: 120.2 kB / 364.1 MB, free: 5.172 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: 37 ($PRE.dLATREGSRH.delay.inertialDelaySensitive[2].y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,$PRE.dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 8 * 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.002008/0.2013, allocations: 0.9984 MB / 365.1 MB, free: 4.117 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000313/0.2017, allocations: 130.5 kB / 365.2 MB, free: 3.988 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006936/0.2024, allocations: 251.9 kB / 365.5 MB, free: 3.734 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.2024, allocations: 4 kB / 365.5 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.2024, allocations: 0 / 365.5 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.2024, allocations: 0 / 365.5 MB, free: 3.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005703/0.2081, allocations: 2.435 MB / 367.9 MB, free: 1.184 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.826e-06/0.2082, allocations: 0 / 367.9 MB, free: 1.184 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.375e-05/0.2082, allocations: 7.938 kB / 367.9 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.2083, allocations: 0 / 367.9 MB, free: 1.176 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000149/0.2084, allocations: 35.98 kB / 367.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2084, allocations: 0 / 367.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2084, allocations: 0 / 367.9 MB, free: 1.141 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003892/0.2123, allocations: 1.661 MB / 369.6 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002022/0.2144, allocations: 0.6824 MB / 370.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004138/0.2149, allocations: 55.97 kB / 370.3 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007309/0.2156, allocations: 39.95 kB / 370.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001099/0.2168, allocations: 375.6 kB / 370.8 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002777/0.2171, allocations: 131.9 kB / 370.9 MB, free: 14.11 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003632/0.2207, allocations: 1.349 MB / 372.2 MB, free: 12.76 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.12e-07/0.2208, allocations: 0 / 372.2 MB, free: 12.76 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009166/0.2217, allocations: 155.8 kB / 372.4 MB, free: 12.61 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: 33 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.delay.inertialDelaySensitive[1].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.dLATSR.dataIn[1],dLATREGSRH.dLATSR.dataIn[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.next_assign_val[2]) * Number of discrete states: 31 (enable.y,data_0.y,reset.y,data_1.y,set.y,dLATREGSRH.dLATSR.dataOut[2],dLATREGSRH.dLATSR.dataOut[1],dLATREGSRH.dLATSR.next_assign_val[2],dLATREGSRH.dLATSR.next_assign_val[1],dLATREGSRH.dLATSR.nextstate[2],dLATREGSRH.dLATSR.nextstate[1],dLATREGSRH.dLATSR.reset_set_flag,dLATREGSRH.dLATSR.enable_flag,dLATREGSRH.delay.inertialDelaySensitive[2].y,dLATREGSRH.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[2].t_next,dLATREGSRH.delay.inertialDelaySensitive[2].delayTime,dLATREGSRH.delay.inertialDelaySensitive[2].lh,dLATREGSRH.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGSRH.delay.inertialDelaySensitive[2].x,dLATREGSRH.delay.inertialDelaySensitive[1].y,dLATREGSRH.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGSRH.delay.inertialDelaySensitive[1].t_next,dLATREGSRH.delay.inertialDelaySensitive[1].delayTime,dLATREGSRH.delay.inertialDelaySensitive[1].lh,dLATREGSRH.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGSRH.delay.inertialDelaySensitive[1].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 4 * 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.0003971/0.2221, allocations: 193.5 kB / 372.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003812/0.2259, allocations: 1.936 MB / 374.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.226, allocations: 0 / 374.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002477/0.2285, allocations: 1.44 MB / 375.9 MB, free: 8.84 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.2307, allocations: 298.2 kB / 376.2 MB, free: 8.559 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007835/0.2385, allocations: 3.253 MB / 379.5 MB, free: 5.266 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001673/0.2403, allocations: 1.227 MB / 380.7 MB, free: 4.012 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.574e-05/0.2404, allocations: 15.44 kB / 380.7 MB, free: 3.996 MB / 314.7 MB Notification: Performance of SimCode: time 1.092e-06/0.2404, allocations: 0 / 380.7 MB, free: 3.996 MB / 314.7 MB Notification: Performance of Templates: time 0.02252/0.2629, allocations: 10.12 MB / 390.9 MB, free: 9.793 MB / 330.7 MB