Running command: translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadModel(Modelica): time 1.781/1.781, allocations: 171.1 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.111e-05, allocations: 2.188 kB / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08455/0.08461, allocations: 38.78 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004188/0.08886, allocations: 2.381 MB / 269.3 MB, free: 14.72 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002166/0.09108, allocations: 0.842 MB / 270.1 MB, free: 13.88 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.09133, allocations: 11.94 kB / 270.1 MB, free: 13.86 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001653/0.09151, allocations: 39.69 kB / 270.2 MB, free: 13.82 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003875/0.09191, allocations: 135.6 kB / 270.3 MB, free: 13.69 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.09246, allocations: 147.7 kB / 270.4 MB, free: 13.55 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005492/0.09302, allocations: 308.5 kB / 270.7 MB, free: 13.25 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.09326, allocations: 69.11 kB / 270.8 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004208/0.0937, allocations: 215.4 kB / 271 MB, free: 12.97 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004335/0.09415, allocations: 231.3 kB / 271.2 MB, free: 12.74 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003281/0.09449, allocations: 115.9 kB / 271.4 MB, free: 12.63 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.966e-05/0.0946, allocations: 27.98 kB / 271.4 MB, free: 12.6 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.09476, allocations: 87.66 kB / 271.5 MB, free: 12.52 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.0949, allocations: 40 kB / 271.5 MB, free: 12.48 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007032/0.09561, allocations: 419.1 kB / 271.9 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.09563, allocations: 0 / 271.9 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.09564, allocations: 0 / 271.9 MB, free: 12.07 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.588e-05/0.09567, allocations: 3.938 kB / 271.9 MB, free: 12.06 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002032/0.09771, allocations: 0.6983 MB / 272.6 MB, free: 11.32 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.09778, allocations: 12.03 kB / 272.6 MB, free: 11.3 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.09794, allocations: 51.38 kB / 272.7 MB, free: 11.25 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005774/0.09853, allocations: 310.1 kB / 273 MB, free: 10.91 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.887e-05/0.0986, allocations: 29 kB / 273 MB, free: 10.88 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.09873, allocations: 43.94 kB / 273.1 MB, free: 10.84 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001371/0.1001, allocations: 458.3 kB / 273.5 MB, free: 10.39 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.371e-05/0.1002, allocations: 11.89 kB / 273.5 MB, free: 10.38 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.844e-05/0.1002, allocations: 20 kB / 273.5 MB, free: 10.36 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.626e-05/0.1003, allocations: 8 kB / 273.5 MB, free: 10.35 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.1019, allocations: 471.7 kB / 274 MB, free: 9.887 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003333/0.1052, allocations: 1.129 MB / 275.1 MB, free: 8.707 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.1066, allocations: 385 kB / 275.5 MB, free: 8.32 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.088e-05/0.1067, allocations: 4.438 kB / 275.5 MB, free: 8.316 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.1068, allocations: 46.92 kB / 275.6 MB, free: 8.262 MB / 234.7 MB Notification: Performance of pre-optimization done (n=50): time 3.567e-06/0.1068, allocations: 0 / 275.6 MB, free: 8.262 MB / 234.7 MB Notification: Performance of matching and sorting (n=56): time 0.008836/0.1156, allocations: 2.453 MB / 278 MB, free: 5.68 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.055e-05/0.1157, allocations: 55.97 kB / 278.1 MB, free: 5.613 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004314/0.1161, allocations: 254.5 kB / 278.3 MB, free: 5.359 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.1163, allocations: 45.7 kB / 278.4 MB, free: 5.309 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.1164, allocations: 235.7 kB / 278.6 MB, free: 5.074 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002369/0.1167, allocations: 193.3 kB / 278.8 MB, free: 4.883 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.972e-05/0.1168, allocations: 23.98 kB / 278.8 MB, free: 4.859 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1169, allocations: 326.8 kB / 279.1 MB, free: 4.531 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008244/0.1178, allocations: 237.2 kB / 279.4 MB, free: 4.301 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008678/0.1187, allocations: 288.8 kB / 279.6 MB, free: 4.012 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007001/0.1194, allocations: 199.1 kB / 279.8 MB, free: 3.82 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.1194, allocations: 0 / 279.8 MB, free: 3.82 MB / 234.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00239/0.1218, allocations: 0.7134 MB / 280.5 MB, free: 3.094 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.1218, allocations: 7.984 kB / 280.6 MB, free: 3.086 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.1219, allocations: 0 / 280.6 MB, free: 3.086 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.123, allocations: 373.5 kB / 280.9 MB, free: 2.715 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006929/0.1237, allocations: 91.83 kB / 281 MB, free: 2.625 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001924/0.1257, allocations: 1.378 MB / 282.4 MB, free: 1.195 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.1267, allocations: 100 kB / 282.5 MB, free: 1.098 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-05/0.1268, allocations: 23.98 kB / 282.5 MB, free: 1.074 MB / 234.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: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000328/0.1271, allocations: 177.7 kB / 282.7 MB, free: 0.8906 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.1273, allocations: 39.53 kB / 282.7 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001658/0.1275, allocations: 59.73 kB / 282.8 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.1275, allocations: 7.953 kB / 282.8 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.1275, allocations: 0 / 282.8 MB, free: 0.7891 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.1275, allocations: 3.984 kB / 282.8 MB, free: 0.7852 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004883/0.1324, allocations: 1.583 MB / 284.4 MB, free: 15.12 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/0.1325, allocations: 4 kB / 284.4 MB, free: 15.12 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008009/0.1333, allocations: 87.89 kB / 284.5 MB, free: 15.03 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001026/0.1343, allocations: 353.6 kB / 284.8 MB, free: 14.68 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.726e-05/0.1344, allocations: 23.97 kB / 284.8 MB, free: 14.66 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001796/0.1362, allocations: 1.343 MB / 286.2 MB, free: 13.26 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.1362, allocations: 4.125 kB / 286.2 MB, free: 13.26 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003621/0.1399, allocations: 1.209 MB / 287.4 MB, free: 11.98 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000334/0.1403, allocations: 156.6 kB / 287.5 MB, free: 11.8 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001556/0.1404, allocations: 23.98 kB / 287.6 MB, free: 11.78 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008166/0.1413, allocations: 79.92 kB / 287.6 MB, free: 11.7 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003521/0.1416, allocations: 116.2 kB / 287.8 MB, free: 11.59 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-05/0.1417, allocations: 19.98 kB / 287.8 MB, free: 11.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003155/0.142, allocations: 201.9 kB / 288 MB, free: 11.38 MB / 250.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.142, allocations: 4 kB / 288 MB, free: 11.37 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000675/0.1427, allocations: 128 kB / 288.1 MB, free: 11.25 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003224/0.1431, allocations: 139.1 kB / 288.2 MB, free: 11.1 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.002106/0.1452, allocations: 0.5888 MB / 288.8 MB, free: 10.51 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.1452, allocations: 0 / 288.8 MB, free: 10.51 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.1464, allocations: 326.7 kB / 289.1 MB, free: 10.19 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007708/0.1472, allocations: 61.77 kB / 289.2 MB, free: 10.13 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006896/0.1541, allocations: 1.786 MB / 291 MB, free: 8.293 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005587/0.1547, allocations: 0.8287 MB / 291.8 MB, free: 7.438 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.155, allocations: 39.42 kB / 291.9 MB, free: 7.398 MB / 250.7 MB Notification: Performance of SimCode: time 1.443e-06/0.155, allocations: 0 / 291.9 MB, free: 7.398 MB / 250.7 MB Notification: Performance of Templates: time 0.2257/0.3807, allocations: 7.826 MB / 299.7 MB, free: 30.71 MB / 250.7 MB