Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.002/1.002, allocations: 111.2 MB / 123.8 MB, free: 11.2 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 3.114e-05/3.126e-05, allocations: 4 kB / 151.5 MB, free: 15.54 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.1879, allocations: 25.15 MB / 176.6 MB, free: 32 kB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07988/0.2679, allocations: 36.92 MB / 213.6 MB, free: 12.54 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002568/0.2682, allocations: 63.97 kB / 213.6 MB, free: 12.47 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03298/0.3012, allocations: 6.814 MB / 220.4 MB, free: 5.629 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3012, allocations: 0 / 220.4 MB, free: 5.629 MB / 186.7 MB Notification: Performance of Transformations before backend: time 3.019e-05/0.3013, allocations: 8 kB / 220.4 MB, free: 5.621 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.002041/0.3033, allocations: 0.6895 MB / 221.1 MB, free: 4.887 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.3034, allocations: 12.03 kB / 221.1 MB, free: 4.875 MB / 186.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002128/0.3036, allocations: 83.23 kB / 221.2 MB, free: 4.781 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.3038, allocations: 55.34 kB / 221.3 MB, free: 4.727 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005437/0.3043, allocations: 298.3 kB / 221.6 MB, free: 4.398 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.737e-05/0.3044, allocations: 28.78 kB / 221.6 MB, free: 4.371 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.3045, allocations: 36 kB / 221.6 MB, free: 4.336 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.3057, allocations: 434 kB / 222.1 MB, free: 3.91 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.346e-05/0.3058, allocations: 11.84 kB / 222.1 MB, free: 3.898 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.088e-05/0.3059, allocations: 19.95 kB / 222.1 MB, free: 3.879 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.3059, allocations: 11.94 kB / 222.1 MB, free: 3.867 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.3071, allocations: 417.4 kB / 222.5 MB, free: 3.457 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003571/0.3107, allocations: 1.147 MB / 223.7 MB, free: 2.254 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00109/0.3118, allocations: 339.2 kB / 224 MB, free: 1.914 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006644/0.3125, allocations: 225.6 kB / 224.2 MB, free: 1.691 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.555e-05/0.3126, allocations: 16.36 kB / 224.2 MB, free: 1.676 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.3126, allocations: 30.94 kB / 224.3 MB, free: 1.637 MB / 186.7 MB Notification: Performance of pre-optimization done (n=45): time 2.915e-06/0.3127, allocations: 4 kB / 224.3 MB, free: 1.633 MB / 186.7 MB Notification: Performance of matching and sorting (n=51): time 0.004771/0.3174, allocations: 1.632 MB / 225.9 MB, free: 15.91 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.3175, allocations: 55.84 kB / 225.9 MB, free: 15.84 MB / 202.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004347/0.318, allocations: 235.5 kB / 226.2 MB, free: 15.61 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 9.51e-05/0.3181, allocations: 45.69 kB / 226.2 MB, free: 15.55 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.3183, allocations: 242.9 kB / 226.5 MB, free: 15.31 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002225/0.3185, allocations: 173.6 kB / 226.6 MB, free: 15.14 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.372e-05/0.3186, allocations: 12 kB / 226.6 MB, free: 15.13 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3188, allocations: 334.8 kB / 227 MB, free: 14.79 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006069/0.3194, allocations: 213.1 kB / 227.2 MB, free: 14.59 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006646/0.3201, allocations: 250.7 kB / 227.4 MB, free: 14.34 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005031/0.3206, allocations: 167.2 kB / 227.6 MB, free: 14.18 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.3206, allocations: 0 / 227.6 MB, free: 14.18 MB / 202.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002265/0.3229, allocations: 0.6877 MB / 228.3 MB, free: 13.47 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.3229, allocations: 8 kB / 228.3 MB, free: 13.46 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.3229, allocations: 0 / 228.3 MB, free: 13.46 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/0.3245, allocations: 0.5129 MB / 228.8 MB, free: 12.95 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006626/0.3252, allocations: 87.89 kB / 228.9 MB, free: 12.86 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001984/0.3272, allocations: 1.386 MB / 230.3 MB, free: 11.42 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009982/0.3282, allocations: 104.1 kB / 230.4 MB, free: 11.32 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.508e-05/0.3283, allocations: 31.92 kB / 230.4 MB, free: 11.29 MB / 202.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 (52): * Single equations (assignments): 50 * 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 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.000228/0.3286, allocations: 140.8 kB / 230.5 MB, free: 11.14 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.3287, allocations: 39.53 kB / 230.6 MB, free: 11.11 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.3289, allocations: 51.47 kB / 230.6 MB, free: 11.06 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.3289, allocations: 8 kB / 230.6 MB, free: 11.05 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.3289, allocations: 0 / 230.6 MB, free: 11.05 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.147e-06/0.329, allocations: 3.984 kB / 230.6 MB, free: 11.05 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004163/0.3331, allocations: 1.361 MB / 232 MB, free: 9.605 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.3332, allocations: 0 / 232 MB, free: 9.605 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007279/0.3339, allocations: 79.89 kB / 232.1 MB, free: 9.527 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.3354, allocations: 0.4936 MB / 232.6 MB, free: 9.027 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.51e-05/0.3355, allocations: 23.97 kB / 232.6 MB, free: 9.004 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00179/0.3373, allocations: 1.355 MB / 233.9 MB, free: 7.598 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.3373, allocations: 3.938 kB / 233.9 MB, free: 7.594 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002816/0.3401, allocations: 1.032 MB / 235 MB, free: 6.492 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003584/0.3405, allocations: 164.6 kB / 235.1 MB, free: 6.312 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.3407, allocations: 20 kB / 235.2 MB, free: 6.293 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000799/0.3415, allocations: 75.92 kB / 235.2 MB, free: 6.219 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003521/0.3419, allocations: 107.8 kB / 235.3 MB, free: 6.113 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.351e-05/0.342, allocations: 27.97 kB / 235.4 MB, free: 6.086 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0003089/0.3423, allocations: 195.1 kB / 235.6 MB, free: 5.891 MB / 202.7 MB Notification: Performance of sort global known variables: time 3.607e-06/0.3423, allocations: 4 kB / 235.6 MB, free: 5.887 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0006875/0.343, allocations: 127.9 kB / 235.7 MB, free: 5.762 MB / 202.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 (38): * Single equations (assignments): 36 * 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.0033/0.3463, allocations: 1.928 MB / 237.6 MB, free: 3.77 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.348, allocations: 0.5009 MB / 238.1 MB, free: 3.273 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.348, allocations: 0 / 238.1 MB, free: 3.273 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009121/0.3489, allocations: 280.2 kB / 238.4 MB, free: 3 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007531/0.3497, allocations: 64.78 kB / 238.5 MB, free: 2.938 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006731/0.3564, allocations: 1.452 MB / 239.9 MB, free: 1.422 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.357, allocations: 0.8192 MB / 240.7 MB, free: 0.5781 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.3574, allocations: 131.4 kB / 240.9 MB, free: 460 kB / 202.7 MB Notification: Performance of SimCode: time 1.362e-06/0.3574, allocations: 0 / 240.9 MB, free: 460 kB / 202.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.017/3.374, allocations: 9.111 MB / 250 MB, free: 7.328 MB / 218.7 MB