Running command: translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.NXFER") Notification: Performance of loadModel(Modelica): time 2.193/2.193, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.886e-05/2.877e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 50.42 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002033/0.1138, allocations: 1.19 MB / 346.2 MB, free: 7.762 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002484/0.1163, allocations: 0.7922 MB / 347 MB, free: 6.965 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.581e-05/0.1164, allocations: 4 kB / 347 MB, free: 6.961 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.769e-05/0.1165, allocations: 7.922 kB / 347 MB, free: 6.953 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.429e-05/0.1166, allocations: 11.97 kB / 347 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002484/0.1169, allocations: 31.91 kB / 347 MB, free: 6.91 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001222/0.117, allocations: 47.94 kB / 347.1 MB, free: 6.863 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.135e-05/0.1171, allocations: 15.98 kB / 347.1 MB, free: 6.848 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006942/0.1178, allocations: 419.3 kB / 347.5 MB, free: 6.438 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000164/0.118, allocations: 71.89 kB / 347.6 MB, free: 6.367 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.091e-05/0.1181, allocations: 4 kB / 347.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.817e-05/0.1181, allocations: 0 / 347.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.1182, allocations: 71.69 kB / 347.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.319e-05/0.1183, allocations: 12 kB / 347.6 MB, free: 6.281 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003861/0.1187, allocations: 291.3 kB / 347.9 MB, free: 5.996 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1187, allocations: 0 / 347.9 MB, free: 5.996 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1188, allocations: 4 kB / 347.9 MB, free: 5.992 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.31e-05/0.1188, allocations: 0 / 347.9 MB, free: 5.992 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.0007305/0.1195, allocations: 0.6108 MB / 348.5 MB, free: 5.309 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.1196, allocations: 8.031 kB / 348.5 MB, free: 5.301 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001007/0.1197, allocations: 39.62 kB / 348.6 MB, free: 5.262 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003729/0.1201, allocations: 253.4 kB / 348.8 MB, free: 4.973 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.01e-05/0.1201, allocations: 8 kB / 348.8 MB, free: 4.965 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.1202, allocations: 11.94 kB / 348.9 MB, free: 4.953 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004418/0.1206, allocations: 125.6 kB / 349 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.1207, allocations: 4 kB / 349 MB, free: 4.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.1207, allocations: 3.953 kB / 349 MB, free: 4.816 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.1207, allocations: 8 kB / 349 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002637/0.121, allocations: 59.95 kB / 349 MB, free: 4.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009344/0.1219, allocations: 464.4 kB / 349.5 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002907/0.1223, allocations: 98.55 kB / 349.6 MB, free: 4.141 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.1223, allocations: 7.953 kB / 349.6 MB, free: 4.133 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004577/0.1228, allocations: 202.8 kB / 349.8 MB, free: 3.91 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 2.896e-06/0.1228, allocations: 0 / 349.8 MB, free: 3.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.001374/0.1242, allocations: 0.6154 MB / 350.4 MB, free: 3.227 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.1243, allocations: 162.2 kB / 350.6 MB, free: 3.031 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000964/0.1253, allocations: 468.5 kB / 351 MB, free: 2.566 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.1254, allocations: 29.7 kB / 351.1 MB, free: 2.531 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1255, allocations: 171.5 kB / 351.2 MB, free: 2.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.096e-05/0.1255, allocations: 23.81 kB / 351.3 MB, free: 2.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.047e-05/0.1256, allocations: 7.938 kB / 351.3 MB, free: 2.332 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.1257, allocations: 326.8 kB / 351.6 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002157/0.126, allocations: 51.97 kB / 351.6 MB, free: 1.953 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000241/0.1262, allocations: 73.69 kB / 351.7 MB, free: 1.875 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002734/0.1265, allocations: 166.8 kB / 351.9 MB, free: 1.688 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.1265, allocations: 0 / 351.9 MB, free: 1.688 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0008524/0.1274, allocations: 368.4 kB / 352.2 MB, free: 1.297 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.1275, allocations: 126.8 kB / 352.4 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.1275, allocations: 0 / 352.4 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.1276, allocations: 4 kB / 352.4 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.419e-05/0.1276, allocations: 0 / 352.4 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.1276, allocations: 0 / 352.4 MB, free: 1.145 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.1279, allocations: 23.89 kB / 352.4 MB, free: 1.121 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.128, allocations: 55.94 kB / 352.4 MB, free: 1.066 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.nXFERGATE.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.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.0005287/0.1285, allocations: 361.4 kB / 352.8 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.319e-05/0.1286, allocations: 35.62 kB / 352.8 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001794/0.1288, allocations: 75.08 kB / 352.9 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1289, allocations: 4 kB / 352.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1289, allocations: 0 / 352.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1289, allocations: 0 / 352.9 MB, free: 0.5703 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001503/0.1304, allocations: 0.802 MB / 353.7 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1304, allocations: 4.188 kB / 353.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.315e-05/0.1304, allocations: 7.953 kB / 353.7 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.722e-06/0.1305, allocations: 11.92 kB / 353.7 MB, free: 15.66 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.758e-05/0.1305, allocations: 15.98 kB / 353.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.1305, allocations: 0 / 353.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1305, allocations: 0 / 353.7 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001009/0.1316, allocations: 0.5174 MB / 354.3 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005312/0.1321, allocations: 252.4 kB / 354.5 MB, free: 14.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.842e-05/0.1322, allocations: 15.95 kB / 354.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002447/0.1325, allocations: 15.91 kB / 354.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.1326, allocations: 27.97 kB / 354.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/0.1328, allocations: 55.98 kB / 354.6 MB, free: 14.71 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007615/0.1336, allocations: 386.9 kB / 355 MB, free: 14.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1336, allocations: 0 / 355 MB, free: 14.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00041/0.134, allocations: 44 kB / 355 MB, free: 14.29 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,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.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.0002053/0.1342, allocations: 122.9 kB / 355.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008006/0.135, allocations: 437.5 kB / 355.6 MB, free: 13.69 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1351, allocations: 3.938 kB / 355.6 MB, free: 13.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005004/0.1356, allocations: 377.6 kB / 356 MB, free: 13.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007613/0.1363, allocations: 96.27 kB / 356.1 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.1382, allocations: 0.7718 MB / 356.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/0.1387, allocations: 0.8102 MB / 357.6 MB, free: 11.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.009e-05/0.1388, allocations: 7.438 kB / 357.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of SimCode: time 1.212e-06/0.1388, allocations: 4 kB / 357.6 MB, free: 11.52 MB / 298.7 MB Notification: Performance of Templates: time 0.006922/0.1457, allocations: 2.628 MB / 360.3 MB, free: 8.844 MB / 298.7 MB