Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.066/2.066, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.381e-05, allocations: 0 / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.1115, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4573/0.5689, allocations: 81.65 MB / 424.3 MB, free: 12.18 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.5693, allocations: 77.81 kB / 424.4 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03785/0.6071, allocations: 7.795 MB / 432.1 MB, free: 5.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.6072, allocations: 4 kB / 432.2 MB, free: 5.406 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.08e-05/0.6073, allocations: 8 kB / 432.2 MB, free: 5.398 MB / 346.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.002154/0.6094, allocations: 0.7015 MB / 432.9 MB, free: 4.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.6095, allocations: 8.031 kB / 432.9 MB, free: 4.672 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002231/0.6097, allocations: 84.44 kB / 433 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/0.6099, allocations: 47.44 kB / 433 MB, free: 4.559 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006099/0.6105, allocations: 311.8 kB / 433.3 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.563e-05/0.6106, allocations: 34.88 kB / 433.3 MB, free: 4.223 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001255/0.6107, allocations: 41.56 kB / 433.4 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.612, allocations: 434.3 kB / 433.8 MB, free: 3.898 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.424e-05/0.612, allocations: 7.859 kB / 433.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.132e-05/0.6121, allocations: 17.25 kB / 433.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.534e-05/0.6121, allocations: 16 kB / 433.8 MB, free: 3.871 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001138/0.6133, allocations: 398.2 kB / 434.2 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003753/0.617, allocations: 1.153 MB / 435.4 MB, free: 2.637 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.6182, allocations: 372.4 kB / 435.7 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006488/0.6189, allocations: 237.4 kB / 436 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.343e-05/0.619, allocations: 11.86 kB / 436 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.6191, allocations: 42.56 kB / 436 MB, free: 2.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.517e-06/0.6191, allocations: 0 / 436 MB, free: 2.184 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.004958/0.624, allocations: 1.64 MB / 437.7 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.228e-05/0.6242, allocations: 59.95 kB / 437.7 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003903/0.6246, allocations: 223.2 kB / 437.9 MB, free: 0.543 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001136/0.6247, allocations: 48.19 kB / 438 MB, free: 0.5 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.6249, allocations: 241.8 kB / 438.2 MB, free: 296 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002511/0.6251, allocations: 198.6 kB / 438.4 MB, free: 124 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.267e-05/0.6252, allocations: 9.812 kB / 438.4 MB, free: 124 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.6254, allocations: 343.5 kB / 438.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005782/0.626, allocations: 197.6 kB / 439 MB, free: 15.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006268/0.6266, allocations: 241.1 kB / 439.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004867/0.6271, allocations: 164.8 kB / 439.4 MB, free: 15.4 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.6271, allocations: 3.938 kB / 439.4 MB, free: 15.4 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002411/0.6296, allocations: 0.6665 MB / 440 MB, free: 14.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.677e-05/0.6296, allocations: 4 kB / 440 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/0.6297, allocations: 7.984 kB / 440 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/0.6309, allocations: 385.2 kB / 440.4 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007531/0.6317, allocations: 99.09 kB / 440.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001757/0.6335, allocations: 1.316 MB / 441.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.6345, allocations: 110.3 kB / 441.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.571e-05/0.6347, allocations: 19 kB / 442 MB, free: 13.14 MB / 362.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): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0002352/0.6349, allocations: 137.1 kB / 442.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.635, allocations: 43.52 kB / 442.1 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00235/0.6374, allocations: 0.6931 MB / 442.8 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.191e-05/0.6375, allocations: 8 kB / 442.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.6375, allocations: 0 / 442.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.6375, allocations: 3.984 kB / 442.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004268/0.6418, allocations: 1.358 MB / 444.2 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.084e-06/0.6418, allocations: 0 / 444.2 MB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000787/0.6426, allocations: 91.39 kB / 444.3 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001133/0.6438, allocations: 358.6 kB / 444.6 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.545e-05/0.6439, allocations: 26.28 kB / 444.7 MB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001643/0.6456, allocations: 1.298 MB / 446 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.6456, allocations: 80 / 446 MB, free: 9.68 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002776/0.6484, allocations: 1.01 MB / 447 MB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003652/0.6488, allocations: 161.7 kB / 447.1 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.6489, allocations: 18.94 kB / 447.1 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008308/0.6498, allocations: 82.3 kB / 447.2 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003452/0.6501, allocations: 113.8 kB / 447.3 MB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.485e-05/0.6502, allocations: 27.03 kB / 447.4 MB, free: 8.512 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003187/0.6506, allocations: 190.9 kB / 447.6 MB, free: 8.355 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6506, allocations: 0 / 447.6 MB, free: 8.355 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000836/0.6514, allocations: 142.3 kB / 447.7 MB, free: 8.23 MB / 362.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.003422/0.6549, allocations: 1.938 MB / 449.6 MB, free: 6.496 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001766/0.6567, allocations: 0.5526 MB / 450.2 MB, free: 6.086 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.6567, allocations: 3.938 kB / 450.2 MB, free: 6.082 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009756/0.6577, allocations: 287.1 kB / 450.5 MB, free: 5.891 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008281/0.6586, allocations: 73.48 kB / 450.5 MB, free: 5.836 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00688/0.6655, allocations: 1.472 MB / 452 MB, free: 4.414 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005563/0.6661, allocations: 0.8356 MB / 452.8 MB, free: 3.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003232/0.6664, allocations: 138.1 kB / 453 MB, free: 3.504 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6664, allocations: 0 / 453 MB, free: 3.504 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.97/3.637, allocations: 9.948 MB / 462.9 MB, free: 9.613 MB / 378.7 MB