Running command: translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NRXFER") Notification: Performance of loadModel(Modelica): time 2.255/2.255, allocations: 224.7 MB / 241.1 MB, free: 1.648 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.87e-05/2.867e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 50.41 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002065/0.1135, allocations: 1.193 MB / 346.2 MB, free: 7.723 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002481/0.116, allocations: 0.7883 MB / 347 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.635e-05/0.1161, allocations: 8 kB / 347 MB, free: 6.922 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.258e-05/0.1162, allocations: 7.922 kB / 347 MB, free: 6.914 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.475e-05/0.1163, allocations: 15.95 kB / 347 MB, free: 6.898 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002096/0.1165, allocations: 35.84 kB / 347 MB, free: 6.863 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.1167, allocations: 47.94 kB / 347.1 MB, free: 6.816 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.584e-05/0.1168, allocations: 11.98 kB / 347.1 MB, free: 6.805 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006877/0.1175, allocations: 419.3 kB / 347.5 MB, free: 6.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001821/0.1177, allocations: 71.89 kB / 347.6 MB, free: 6.324 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.917e-05/0.1177, allocations: 8 kB / 347.6 MB, free: 6.316 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.542e-05/0.1178, allocations: 3.938 kB / 347.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.1179, allocations: 63.77 kB / 347.6 MB, free: 6.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.181e-05/0.118, allocations: 12 kB / 347.6 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003868/0.1184, allocations: 299.3 kB / 347.9 MB, free: 5.945 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1184, allocations: 0 / 347.9 MB, free: 5.945 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1184, allocations: 4 kB / 347.9 MB, free: 5.941 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.1184, allocations: 0 / 347.9 MB, free: 5.941 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000724/0.1192, allocations: 0.6069 MB / 348.5 MB, free: 5.262 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.1192, allocations: 8.031 kB / 348.6 MB, free: 5.254 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.1193, allocations: 39.62 kB / 348.6 MB, free: 5.215 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.1197, allocations: 249.5 kB / 348.8 MB, free: 4.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.1198, allocations: 4 kB / 348.8 MB, free: 4.926 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.1198, allocations: 11.98 kB / 348.9 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004391/0.1203, allocations: 125.5 kB / 349 MB, free: 4.785 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1203, allocations: 4 kB / 349 MB, free: 4.781 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.501e-05/0.1203, allocations: 7.953 kB / 349 MB, free: 4.773 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1204, allocations: 4 kB / 349 MB, free: 4.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.1206, allocations: 59.95 kB / 349 MB, free: 4.711 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008972/0.1215, allocations: 468.4 kB / 349.5 MB, free: 4.203 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002782/0.1218, allocations: 94.55 kB / 349.6 MB, free: 4.102 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.1219, allocations: 3.953 kB / 349.6 MB, free: 4.098 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004508/0.1223, allocations: 206.8 kB / 349.8 MB, free: 3.871 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.405e-06/0.1223, allocations: 0 / 349.8 MB, free: 3.871 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.001332/0.1237, allocations: 0.6154 MB / 350.4 MB, free: 3.188 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.1238, allocations: 166.2 kB / 350.6 MB, free: 2.988 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009238/0.1247, allocations: 464.5 kB / 351 MB, free: 2.527 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.229e-05/0.1248, allocations: 29.7 kB / 351.1 MB, free: 2.492 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.1249, allocations: 167.6 kB / 351.2 MB, free: 2.328 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.343e-05/0.125, allocations: 23.66 kB / 351.3 MB, free: 2.305 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.171e-05/0.125, allocations: 8 kB / 351.3 MB, free: 2.297 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000122/0.1252, allocations: 322.8 kB / 351.6 MB, free: 1.973 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000208/0.1254, allocations: 55.91 kB / 351.6 MB, free: 1.918 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/0.1256, allocations: 73.69 kB / 351.7 MB, free: 1.84 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002639/0.1259, allocations: 166.8 kB / 351.9 MB, free: 1.652 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.1259, allocations: 0 / 351.9 MB, free: 1.652 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008387/0.1268, allocations: 368.9 kB / 352.2 MB, free: 1.262 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000111/0.1269, allocations: 134.7 kB / 352.4 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.1269, allocations: 8.031 kB / 352.4 MB, free: 1.098 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.04e-05/0.127, allocations: 4 kB / 352.4 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.465e-05/0.127, allocations: 0 / 352.4 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.127, allocations: 0 / 352.4 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000252/0.1273, allocations: 19.89 kB / 352.4 MB, free: 1.074 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.1274, allocations: 55.94 kB / 352.4 MB, free: 1.02 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.nRXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0005039/0.1279, allocations: 358.8 kB / 352.8 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.42e-05/0.128, allocations: 35.62 kB / 352.8 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.1282, allocations: 79.08 kB / 352.9 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.1282, allocations: 4 kB / 352.9 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1282, allocations: 0 / 352.9 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1282, allocations: 0 / 352.9 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.1297, allocations: 0.7978 MB / 353.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1297, allocations: 4 kB / 353.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.448e-06/0.1297, allocations: 3.953 kB / 353.7 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.1297, allocations: 0 / 353.7 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.488e-05/0.1298, allocations: 15.98 kB / 353.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.1298, allocations: 0 / 353.7 MB, free: 15.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.1298, allocations: 4 kB / 353.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009953/0.1308, allocations: 0.5135 MB / 354.2 MB, free: 15.06 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004956/0.1313, allocations: 244.5 kB / 354.5 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001027/0.1315, allocations: 23.92 kB / 354.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.1317, allocations: 15.84 kB / 354.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.1319, allocations: 27.97 kB / 354.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001017/0.132, allocations: 56.11 kB / 354.6 MB, free: 14.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007345/0.1327, allocations: 390.9 kB / 355 MB, free: 14.3 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.355e-06/0.1327, allocations: 0 / 355 MB, free: 14.3 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003892/0.1331, allocations: 51.94 kB / 355 MB, free: 14.25 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.0001819/0.1333, allocations: 117.9 kB / 355.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008114/0.1342, allocations: 437.5 kB / 355.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1342, allocations: 0 / 355.6 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00049/0.1347, allocations: 381.5 kB / 356 MB, free: 13.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007329/0.1354, allocations: 98.78 kB / 356 MB, free: 13.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001693/0.1371, allocations: 0.7756 MB / 356.8 MB, free: 12.32 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005904/0.1377, allocations: 0.8102 MB / 357.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.474e-05/0.1378, allocations: 7.438 kB / 357.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of SimCode: time 8.32e-07/0.1378, allocations: 4 kB / 357.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of Templates: time 0.006266/0.1441, allocations: 2.621 MB / 360.3 MB, free: 8.805 MB / 298.7 MB