Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.272/2.272, allocations: 225.8 MB / 239.3 MB, free: 11.21 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.68e-05/3.698e-05, allocations: 4 kB / 292.2 MB, free: 8.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.114, allocations: 50.41 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4816/0.5957, allocations: 81.57 MB / 424.2 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.5961, allocations: 70.45 kB / 424.3 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03157/0.6276, allocations: 6.749 MB / 431 MB, free: 6.715 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.6277, allocations: 0 / 431 MB, free: 6.715 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.025e-05/0.6277, allocations: 8 kB / 431 MB, free: 6.707 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001982/0.6297, allocations: 0.6638 MB / 431.7 MB, free: 6.023 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.6298, allocations: 8.031 kB / 431.7 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000179/0.63, allocations: 76.34 kB / 431.8 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.6301, allocations: 51.53 kB / 431.8 MB, free: 5.902 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000523/0.6307, allocations: 286.9 kB / 432.1 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.954e-05/0.6307, allocations: 33.66 kB / 432.1 MB, free: 5.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/0.6309, allocations: 38.28 kB / 432.2 MB, free: 5.562 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.6319, allocations: 390.5 kB / 432.6 MB, free: 5.293 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.632, allocations: 0 / 432.6 MB, free: 5.293 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.486e-05/0.6321, allocations: 22.06 kB / 432.6 MB, free: 5.281 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.6321, allocations: 11.94 kB / 432.6 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.6332, allocations: 375.3 kB / 433 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004172/0.6374, allocations: 1.296 MB / 434.2 MB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.6384, allocations: 344.9 kB / 434.6 MB, free: 3.695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005545/0.639, allocations: 215.6 kB / 434.8 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.067e-05/0.6391, allocations: 7.5 kB / 434.8 MB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/0.6391, allocations: 38.5 kB / 434.8 MB, free: 3.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 4.428e-06/0.6392, allocations: 0 / 434.8 MB, free: 3.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.004908/0.6441, allocations: 1.588 MB / 436.4 MB, free: 2.164 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.6442, allocations: 59.84 kB / 436.5 MB, free: 2.094 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003307/0.6445, allocations: 201.1 kB / 436.7 MB, free: 1.926 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.6447, allocations: 40.39 kB / 436.7 MB, free: 1.891 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001619/0.6448, allocations: 230.7 kB / 436.9 MB, free: 1.68 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002423/0.6451, allocations: 174.1 kB / 437.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.221e-05/0.6452, allocations: 7 kB / 437.1 MB, free: 1.535 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.6453, allocations: 337.2 kB / 437.5 MB, free: 1.207 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005569/0.6459, allocations: 184.2 kB / 437.6 MB, free: 1.102 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006339/0.6465, allocations: 251.6 kB / 437.9 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004651/0.647, allocations: 159.8 kB / 438 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.647, allocations: 0 / 438 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002548/0.6496, allocations: 0.6808 MB / 438.7 MB, free: 308 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.779e-05/0.6497, allocations: 8 kB / 438.7 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/0.6497, allocations: 0 / 438.7 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/0.6513, allocations: 444.1 kB / 439.2 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005442/0.6518, allocations: 67.72 kB / 439.2 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00386/0.6557, allocations: 3.386 MB / 442.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.6568, allocations: 102.7 kB / 442.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.081e-05/0.6569, allocations: 23.05 kB / 442.7 MB, free: 12.31 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (46): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002206/0.6571, allocations: 131 kB / 442.9 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.6572, allocations: 31.62 kB / 442.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00457/0.6618, allocations: 0.7199 MB / 443.6 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.248e-05/0.6619, allocations: 4 kB / 443.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.662, allocations: 0 / 443.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.803e-05/0.662, allocations: 3.984 kB / 443.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005592/0.6676, allocations: 1.161 MB / 444.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/0.6677, allocations: 0 / 444.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000791/0.6685, allocations: 59.41 kB / 444.8 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00291/0.6715, allocations: 421.5 kB / 445.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/0.6717, allocations: 22.42 kB / 445.3 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007201/0.6789, allocations: 3.358 MB / 448.6 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.679, allocations: 7.938 kB / 448.6 MB, free: 6.816 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004742/0.6837, allocations: 0.8816 MB / 449.5 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005234/0.6843, allocations: 159.3 kB / 449.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002048/0.6846, allocations: 16.62 kB / 449.7 MB, free: 6.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/0.6863, allocations: 98.59 kB / 449.8 MB, free: 5.926 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000585/0.6869, allocations: 102 kB / 449.9 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/0.6871, allocations: 30.03 kB / 449.9 MB, free: 5.812 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004031/0.6875, allocations: 161.9 kB / 450.1 MB, free: 5.676 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.6875, allocations: 8 kB / 450.1 MB, free: 5.668 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001128/0.6887, allocations: 123.6 kB / 450.2 MB, free: 5.562 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.004293/0.693, allocations: 1.477 MB / 451.7 MB, free: 4.324 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002769/0.6958, allocations: 0.7528 MB / 452.4 MB, free: 3.707 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.6959, allocations: 0 / 452.4 MB, free: 3.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.6971, allocations: 492.4 kB / 452.9 MB, free: 3.297 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006672/0.6977, allocations: 57.16 kB / 453 MB, free: 3.258 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003377/0.7011, allocations: 0.9337 MB / 453.9 MB, free: 2.383 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004947/0.7017, allocations: 0.8075 MB / 454.7 MB, free: 1.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000248/0.7019, allocations: 108.6 kB / 454.8 MB, free: 1.516 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.7019, allocations: 0 / 454.8 MB, free: 1.516 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.092/3.794, allocations: 9.977 MB / 464.8 MB, free: 7.594 MB / 378.7 MB