Running command: translateModel(Modelica.Mechanics.Rotational.Examples.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|lossyGear.mode|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses") Notification: Performance of loadModel(Modelica): time 2.199/2.199, allocations: 224.7 MB / 241.1 MB, free: 1.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.911e-05/2.908e-05, allocations: 8 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1103, allocations: 50.41 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.006947/0.1173, allocations: 3.905 MB / 348.9 MB, free: 5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004632/0.1219, allocations: 1.631 MB / 350.5 MB, free: 3.363 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007052/0.1227, allocations: 19.94 kB / 350.5 MB, free: 3.344 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003398/0.1231, allocations: 123.1 kB / 350.7 MB, free: 3.223 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001334/0.1244, allocations: 374.9 kB / 351 MB, free: 2.855 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001297/0.1257, allocations: 383.4 kB / 351.4 MB, free: 2.48 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001752/0.1275, allocations: 0.7562 MB / 352.1 MB, free: 1.723 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004474/0.128, allocations: 163 kB / 352.3 MB, free: 1.562 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.1291, allocations: 0.5339 MB / 352.8 MB, free: 1.027 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.1303, allocations: 0.635 MB / 353.5 MB, free: 400 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005673/0.1309, allocations: 127.9 kB / 353.6 MB, free: 272 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002906/0.1312, allocations: 64 kB / 353.7 MB, free: 208 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003916/0.1316, allocations: 255.1 kB / 353.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003782/0.132, allocations: 100 kB / 354 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001733/0.1338, allocations: 1.056 MB / 355.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1338, allocations: 0 / 355.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.985e-06/0.1338, allocations: 8 kB / 355.1 MB, free: 14.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.645e-05/0.1339, allocations: 0 / 355.1 MB, free: 14.79 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.005094/0.139, allocations: 1.287 MB / 356.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/0.139, allocations: 12.03 kB / 356.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00096/0.14, allocations: 138.6 kB / 356.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001622/0.1417, allocations: 0.5841 MB / 357.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005307/0.1422, allocations: 195.1 kB / 357.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003184/0.1426, allocations: 103.9 kB / 357.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004178/0.1467, allocations: 1.259 MB / 358.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.669e-05/0.1469, allocations: 15.89 kB / 358.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.147, allocations: 40 kB / 358.7 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.029e-05/0.1471, allocations: 23.95 kB / 358.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00535/0.1524, allocations: 1.366 MB / 360.1 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01163/0.1641, allocations: 3.749 MB / 363.8 MB, free: 5.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003913/0.1681, allocations: 1.069 MB / 364.9 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000204/0.1683, allocations: 25.28 kB / 364.9 MB, free: 4.629 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.242e-05/0.1684, allocations: 43.88 kB / 365 MB, free: 4.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=129): time 4.107e-06/0.1684, allocations: 0 / 365 MB, free: 4.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=141): time 0.02605/0.1945, allocations: 5.884 MB / 370.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/0.1946, allocations: 90.42 kB / 370.9 MB, free: 14.43 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001199/0.1958, allocations: 0.5254 MB / 371.5 MB, free: 13.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003431/0.1962, allocations: 65.69 kB / 371.5 MB, free: 13.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003696/0.1966, allocations: 363.7 kB / 371.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007614/0.1974, allocations: 489.2 kB / 372.4 MB, free: 12.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001482/0.1975, allocations: 28 kB / 372.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.1978, allocations: 362.8 kB / 372.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002285/0.2001, allocations: 0.5817 MB / 373.3 MB, free: 12.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002468/0.2026, allocations: 0.7232 MB / 374.1 MB, free: 11.26 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002045/0.2046, allocations: 0.5175 MB / 374.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.2047, allocations: 0 / 374.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.007025/0.2117, allocations: 1.834 MB / 376.4 MB, free: 8.902 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.326e-05/0.2118, allocations: 4 kB / 376.4 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.777e-05/0.2118, allocations: 7.938 kB / 376.4 MB, free: 8.891 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003376/0.2152, allocations: 0.9541 MB / 377.4 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002143/0.2174, allocations: 259.6 kB / 377.6 MB, free: 7.676 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004243/0.2217, allocations: 2.009 MB / 379.6 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00241/0.2241, allocations: 207.9 kB / 379.8 MB, free: 5.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002431/0.2244, allocations: 51.98 kB / 379.9 MB, free: 5.359 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 127 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0007754/0.2252, allocations: 269.6 kB / 380.2 MB, free: 5.086 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003402/0.2256, allocations: 94.83 kB / 380.2 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004183/0.226, allocations: 137.2 kB / 380.4 MB, free: 4.852 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/0.226, allocations: 12 kB / 380.4 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/0.2261, allocations: 0 / 380.4 MB, free: 4.84 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.2261, allocations: 3.984 kB / 380.4 MB, free: 4.836 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/0.2376, allocations: 3.327 MB / 383.7 MB, free: 1.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.2376, allocations: 4.062 kB / 383.7 MB, free: 1.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002374/0.24, allocations: 255.7 kB / 384 MB, free: 1.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003187/0.2433, allocations: 0.907 MB / 384.9 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002699/0.2436, allocations: 47.94 kB / 384.9 MB, free: 224 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003961/0.2475, allocations: 1.94 MB / 386.9 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.2476, allocations: 0 / 386.9 MB, free: 14.22 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009991/0.2576, allocations: 2.649 MB / 389.5 MB, free: 11.53 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009672/0.2586, allocations: 291.8 kB / 389.8 MB, free: 11.23 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006073/0.2592, allocations: 40 kB / 389.8 MB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002883/0.2622, allocations: 215.8 kB / 390.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008373/0.263, allocations: 220.9 kB / 390.3 MB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001859/0.2633, allocations: 59.88 kB / 390.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0009027/0.2642, allocations: 422.8 kB / 390.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2642, allocations: 0 / 390.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001396/0.2656, allocations: 320 kB / 391.1 MB, free: 9.977 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 92 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005154/0.2661, allocations: 194.1 kB / 391.2 MB, free: 9.777 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007055/0.2732, allocations: 1.523 MB / 392.8 MB, free: 8.258 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.128e-06/0.2733, allocations: 0 / 392.8 MB, free: 8.258 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004705/0.278, allocations: 0.8443 MB / 393.6 MB, free: 7.414 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002228/0.2803, allocations: 137.5 kB / 393.7 MB, free: 7.285 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02169/0.302, allocations: 3.798 MB / 397.5 MB, free: 3.453 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001162/0.3033, allocations: 1.043 MB / 398.6 MB, free: 2.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000868/0.3042, allocations: 87.38 kB / 398.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of SimCode: time 1.343e-06/0.3042, allocations: 0 / 398.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of Templates: time 0.3268/0.631, allocations: 18.63 MB / 417.3 MB, free: 45.39 MB / 330.7 MB