Running command: translateModel(Modelica.Mechanics.Rotational.Examples.ElasticBearing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|load.phi|load.w|shaft.phi|shaft.w|springDamper.phi_rel|springDamper.w_rel",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing") Notification: Performance of loadModel(Modelica): time 2.403/2.403, allocations: 224.7 MB / 241.1 MB, free: 1.699 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.809e-05/2.806e-05, allocations: 4 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 50.41 MB / 345 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003242/0.1119, allocations: 1.924 MB / 346.9 MB, free: 7.031 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001097/0.1131, allocations: 0.4911 MB / 347.4 MB, free: 6.535 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001306/0.1132, allocations: 8 kB / 347.4 MB, free: 6.527 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.834e-05/0.1133, allocations: 23.78 kB / 347.4 MB, free: 6.504 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.1136, allocations: 83.73 kB / 347.5 MB, free: 6.422 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001625/0.1137, allocations: 47.94 kB / 347.5 MB, free: 6.375 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000302/0.1141, allocations: 155.6 kB / 347.7 MB, free: 6.223 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001809/0.1143, allocations: 65.05 kB / 347.8 MB, free: 6.156 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001678/0.1144, allocations: 79.77 kB / 347.8 MB, free: 6.078 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001771/0.1146, allocations: 95.61 kB / 347.9 MB, free: 5.984 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.956e-05/0.1147, allocations: 12 kB / 347.9 MB, free: 5.973 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.392e-05/0.1147, allocations: 8 kB / 348 MB, free: 5.965 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.674e-05/0.1148, allocations: 35.84 kB / 348 MB, free: 5.93 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.355e-05/0.1149, allocations: 28 kB / 348 MB, free: 5.902 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.1152, allocations: 211.6 kB / 348.2 MB, free: 5.695 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.1152, allocations: 0 / 348.2 MB, free: 5.695 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.068e-06/0.1152, allocations: 4 kB / 348.2 MB, free: 5.691 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1152, allocations: 0 / 348.2 MB, free: 5.691 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.000947/0.1162, allocations: 499.2 kB / 348.7 MB, free: 5.156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1162, allocations: 8.031 kB / 348.7 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.169e-05/0.1163, allocations: 35.67 kB / 348.8 MB, free: 5.113 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003321/0.1167, allocations: 239.2 kB / 349 MB, free: 4.84 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.1167, allocations: 12.56 kB / 349 MB, free: 4.828 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.624e-05/0.1168, allocations: 35.91 kB / 349 MB, free: 4.793 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006855/0.1175, allocations: 232.9 kB / 349.3 MB, free: 4.562 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/0.1175, allocations: 0 / 349.3 MB, free: 4.562 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.1176, allocations: 8 kB / 349.3 MB, free: 4.555 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.829e-06/0.1176, allocations: 8 kB / 349.3 MB, free: 4.547 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006666/0.1183, allocations: 190.1 kB / 349.5 MB, free: 4.363 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.1201, allocations: 0.7694 MB / 350.2 MB, free: 3.535 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007193/0.1208, allocations: 229.8 kB / 350.5 MB, free: 3.305 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.1209, allocations: 4 kB / 350.5 MB, free: 3.301 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.1209, allocations: 34.56 kB / 350.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of pre-optimization done (n=26): time 3.286e-06/0.1209, allocations: 0 / 350.5 MB, free: 3.258 MB / 282.7 MB Notification: Performance of matching and sorting (n=28): time 0.00269/0.1236, allocations: 0.9843 MB / 351.5 MB, free: 2.188 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.1237, allocations: 55.41 kB / 351.5 MB, free: 2.121 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.1239, allocations: 137.8 kB / 351.7 MB, free: 1.977 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.1239, allocations: 29.7 kB / 351.7 MB, free: 1.941 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.1241, allocations: 203 kB / 351.9 MB, free: 1.742 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.1242, allocations: 110.4 kB / 352 MB, free: 1.633 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.844e-05/0.1242, allocations: 8 kB / 352 MB, free: 1.625 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1243, allocations: 330.8 kB / 352.3 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003029/0.1247, allocations: 71.97 kB / 352.4 MB, free: 1.223 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.125, allocations: 119.2 kB / 352.5 MB, free: 1.094 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003422/0.1254, allocations: 91.98 kB / 352.6 MB, free: 1.004 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1254, allocations: 0 / 352.6 MB, free: 1.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0007992/0.1262, allocations: 269.5 kB / 352.9 MB, free: 0.7344 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.1262, allocations: 4 kB / 352.9 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.1263, allocations: 7.938 kB / 352.9 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.1263, allocations: 0 / 352.9 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005599/0.1269, allocations: 75.91 kB / 353 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.478e-05/0.1269, allocations: 7.984 kB / 353 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.1271, allocations: 16.03 kB / 353 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.791e-05/0.1272, allocations: 8 kB / 353 MB, free: 0.6172 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * 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.0001725/0.1274, allocations: 141.2 kB / 353.1 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.679e-05/0.1274, allocations: 23.8 kB / 353.2 MB, free: 460 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.825e-05/0.1275, allocations: 22.56 kB / 353.2 MB, free: 436 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.1275, allocations: 4 kB / 353.2 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.1275, allocations: 0 / 353.2 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1276, allocations: 0 / 353.2 MB, free: 432 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001494/0.1291, allocations: 0.6708 MB / 353.9 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.1291, allocations: 8.062 kB / 353.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006308/0.1297, allocations: 71.95 kB / 353.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.51e-06/0.1298, allocations: 4 kB / 353.9 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.1298, allocations: 11.83 kB / 353.9 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.02e-05/0.1298, allocations: 0 / 353.9 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1298, allocations: 3.938 kB / 353.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001141/0.131, allocations: 484.7 kB / 354.4 MB, free: 15.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.613e-05/0.1311, allocations: 92.91 kB / 354.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.343e-05/0.1311, allocations: 12.02 kB / 354.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002358/0.1314, allocations: 12 kB / 354.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.262e-05/0.1315, allocations: 19.97 kB / 354.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.1315, allocations: 8 kB / 354.6 MB, free: 14.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001358/0.1316, allocations: 118.5 kB / 354.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.1317, allocations: 7.938 kB / 354.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004403/0.1321, allocations: 56 kB / 354.7 MB, free: 14.75 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * 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.0001572/0.1323, allocations: 103.2 kB / 354.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007385/0.133, allocations: 211.8 kB / 355 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.133, allocations: 0 / 355 MB, free: 14.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003509/0.1334, allocations: 111.8 kB / 355.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.1339, allocations: 35.91 kB / 355.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002202/0.1361, allocations: 1.002 MB / 356.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.1365, allocations: 0.7563 MB / 357 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001077/0.1366, allocations: 23.44 kB / 357 MB, free: 12.44 MB / 298.7 MB Notification: Performance of SimCode: time 1.112e-06/0.1366, allocations: 0 / 357 MB, free: 12.44 MB / 298.7 MB Notification: Performance of Templates: time 0.006668/0.1433, allocations: 2.677 MB / 359.7 MB, free: 9.762 MB / 298.7 MB