Running command: translateModel(Modelica.Electrical.Digital.Examples.DLATREGL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dLATREGL.delay.inertialDelaySensitive.1..x|dLATREGL.delay.inertialDelaySensitive.1..y|dLATREGL.delay.inertialDelaySensitive.2..x|dLATREGL.delay.inertialDelaySensitive.2..y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.DLATREGL") Notification: Performance of loadModel(Modelica): time 2.174/2.174, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.85e-05/2.866e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1082, allocations: 50.4 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.DLATREGL): time 0.002499/0.1108, allocations: 1.412 MB / 346.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.1139, allocations: 0.8858 MB / 347.3 MB, free: 6.648 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.114, allocations: 4 kB / 347.3 MB, free: 6.645 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001494/0.1142, allocations: 15.86 kB / 347.3 MB, free: 6.629 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.1144, allocations: 35.88 kB / 347.3 MB, free: 6.594 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003381/0.1147, allocations: 75.78 kB / 347.4 MB, free: 6.52 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002971/0.115, allocations: 147.8 kB / 347.5 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002072/0.1152, allocations: 68.11 kB / 347.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008902/0.1161, allocations: 0.503 MB / 348.1 MB, free: 5.801 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.1165, allocations: 163.7 kB / 348.3 MB, free: 5.641 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001043/0.1166, allocations: 12 kB / 348.3 MB, free: 5.629 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001019/0.1167, allocations: 8 kB / 348.3 MB, free: 5.621 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.1169, allocations: 151.4 kB / 348.4 MB, free: 5.473 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002626/0.1172, allocations: 44 kB / 348.5 MB, free: 5.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001156/0.1183, allocations: 0.8577 MB / 349.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1184, allocations: 0 / 349.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.1184, allocations: 0 / 349.3 MB, free: 4.57 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.829e-05/0.1184, allocations: 4 kB / 349.3 MB, free: 4.566 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.001378/0.1198, allocations: 0.9893 MB / 350.3 MB, free: 3.484 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.838e-05/0.1199, allocations: 12.03 kB / 350.3 MB, free: 3.473 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.1201, allocations: 86.97 kB / 350.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007466/0.1209, allocations: 407.5 kB / 350.8 MB, free: 2.945 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.189e-05/0.1209, allocations: 20 kB / 350.8 MB, free: 2.926 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.1211, allocations: 20 kB / 350.9 MB, free: 2.906 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.1224, allocations: 0.5122 MB / 351.4 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1225, allocations: 0 / 351.4 MB, free: 2.391 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.094e-05/0.1226, allocations: 15.95 kB / 351.4 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.1226, allocations: 0 / 351.4 MB, free: 2.375 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000946/0.1235, allocations: 364 kB / 351.7 MB, free: 2.02 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00208/0.1256, allocations: 0.9377 MB / 352.7 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.1268, allocations: 0.5025 MB / 353.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.1268, allocations: 0 / 353.2 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/0.1281, allocations: 0.6306 MB / 353.8 MB, free: 15.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 2.735e-06/0.1282, allocations: 0 / 353.8 MB, free: 15.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.00389/0.1321, allocations: 1.761 MB / 355.6 MB, free: 13.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002358/0.1323, allocations: 287.3 kB / 355.9 MB, free: 13.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002413/0.1348, allocations: 1.027 MB / 356.9 MB, free: 12.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.1349, allocations: 41.69 kB / 356.9 MB, free: 12.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001539/0.1351, allocations: 196.4 kB / 357.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001393/0.1352, allocations: 67.16 kB / 357.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.145e-05/0.1353, allocations: 15.98 kB / 357.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.1355, allocations: 330.7 kB / 357.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009205/0.1364, allocations: 343.8 kB / 357.9 MB, free: 11.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009389/0.1373, allocations: 382.2 kB / 358.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009041/0.1383, allocations: 0.4929 MB / 358.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.1383, allocations: 112 / 358.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002546/0.1408, allocations: 1.101 MB / 359.8 MB, free: 9.547 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002533/0.1411, allocations: 247.8 kB / 360.1 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.1411, allocations: 4 kB / 360.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.1412, allocations: 0 / 360.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.097e-05/0.1412, allocations: 0 / 360.1 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.1412, allocations: 12.06 kB / 360.1 MB, free: 9.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006185/0.1419, allocations: 43.81 kB / 360.1 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002194/0.1421, allocations: 123.9 kB / 360.2 MB, free: 9.082 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: 36 ($PRE.dLATREGL.delay.inertialDelaySensitive[2].y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,$PRE.dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,$PRE.dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 8 * 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.001349/0.1434, allocations: 0.7562 MB / 361 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001909/0.1437, allocations: 87.06 kB / 361.1 MB, free: 8.188 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000359/0.144, allocations: 155.5 kB / 361.2 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.144, allocations: 4 kB / 361.2 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1441, allocations: 0 / 361.2 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1441, allocations: 0 / 361.2 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004041/0.1481, allocations: 1.962 MB / 363.2 MB, free: 5.965 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.1481, allocations: 4 kB / 363.2 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.433e-05/0.1482, allocations: 0 / 363.2 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.1482, allocations: 0 / 363.2 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-05/0.1483, allocations: 31.98 kB / 363.2 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.1483, allocations: 0 / 363.2 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.1483, allocations: 4 kB / 363.2 MB, free: 5.926 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002956/0.1513, allocations: 1.385 MB / 364.6 MB, free: 4.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.1526, allocations: 0.562 MB / 365.2 MB, free: 3.898 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002757/0.1529, allocations: 55.97 kB / 365.2 MB, free: 3.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005361/0.1535, allocations: 35.97 kB / 365.3 MB, free: 3.809 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006253/0.1541, allocations: 231.7 kB / 365.5 MB, free: 3.582 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002134/0.1543, allocations: 128 kB / 365.6 MB, free: 3.457 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001856/0.1562, allocations: 0.8576 MB / 366.5 MB, free: 2.602 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1562, allocations: 0 / 366.5 MB, free: 2.602 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000629/0.1569, allocations: 127.8 kB / 366.6 MB, free: 2.477 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: 32 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,enable.y,data_0.y,reset.y,data_1.y,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].y_old,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[2].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].y_old,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.dLATR.dataIn[1],dLATREGL.dLATR.dataIn[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.enable_flag,dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.next_assign_val[2]) * Number of discrete states: 30 (enable.y,data_0.y,reset.y,data_1.y,dLATREGL.dLATR.dataOut[2],dLATREGL.dLATR.dataOut[1],dLATREGL.dLATR.next_assign_val[2],dLATREGL.dLATR.next_assign_val[1],dLATREGL.dLATR.nextstate[2],dLATREGL.dLATR.nextstate[1],dLATREGL.dLATR.reset_flag,dLATREGL.dLATR.enable_flag,dLATREGL.delay.inertialDelaySensitive[1].y,dLATREGL.delay.inertialDelaySensitive[1].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[1].t_next,dLATREGL.delay.inertialDelaySensitive[1].delayTime,dLATREGL.delay.inertialDelaySensitive[1].lh,dLATREGL.delay.inertialDelaySensitive[1].y_old,$whenCondition4,$whenCondition3,dLATREGL.delay.inertialDelaySensitive[1].x,dLATREGL.delay.inertialDelaySensitive[2].y,dLATREGL.delay.inertialDelaySensitive[2].y_auxiliary,dLATREGL.delay.inertialDelaySensitive[2].t_next,dLATREGL.delay.inertialDelaySensitive[2].delayTime,dLATREGL.delay.inertialDelaySensitive[2].lh,dLATREGL.delay.inertialDelaySensitive[2].y_old,$whenCondition2,$whenCondition1,dLATREGL.delay.inertialDelaySensitive[2].x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 4 * 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.0003438/0.1572, allocations: 184.4 kB / 366.8 MB, free: 2.289 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002777/0.16, allocations: 1.527 MB / 368.3 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.16, allocations: 8.125 kB / 368.3 MB, free: 0.668 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001757/0.1618, allocations: 1.14 MB / 369.5 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/0.1635, allocations: 261.1 kB / 369.7 MB, free: 15.19 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004658/0.1682, allocations: 2.218 MB / 371.9 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001098/0.1693, allocations: 1.031 MB / 373 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.172e-05/0.1694, allocations: 15.44 kB / 373 MB, free: 11.86 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.1694, allocations: 0 / 373 MB, free: 11.86 MB / 314.7 MB Notification: Performance of Templates: time 0.01521/0.1846, allocations: 7.53 MB / 380.5 MB, free: 4.23 MB / 314.7 MB