Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.874/1.874, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.554e-05/3.564e-05, allocations: 0 / 255.5 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09387, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4248/0.5187, allocations: 75.94 MB / 375.9 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.5191, allocations: 69.59 kB / 376 MB, free: 12.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03202/0.5511, allocations: 6.502 MB / 382.5 MB, free: 12.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5511, allocations: 3.938 kB / 382.5 MB, free: 12.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.019e-05/0.5512, allocations: 7.75 kB / 382.5 MB, free: 12.14 MB / 314.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.001975/0.5532, allocations: 0.6564 MB / 383.1 MB, free: 11.69 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.5532, allocations: 9.156 kB / 383.1 MB, free: 11.69 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002102/0.5535, allocations: 81.58 kB / 383.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.5536, allocations: 41.25 kB / 383.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004925/0.5541, allocations: 296.9 kB / 383.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.931e-05/0.5542, allocations: 27.03 kB / 383.6 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.5543, allocations: 37.16 kB / 383.6 MB, free: 11.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.5554, allocations: 393.7 kB / 384 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.313e-05/0.5554, allocations: 7.984 kB / 384 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.805e-05/0.5555, allocations: 15.88 kB / 384 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.5555, allocations: 8.25 kB / 384 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001085/0.5566, allocations: 366.8 kB / 384.4 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004165/0.5608, allocations: 1.31 MB / 385.7 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.5619, allocations: 346.7 kB / 386 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005691/0.5625, allocations: 213.7 kB / 386.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.323e-05/0.5626, allocations: 6.844 kB / 386.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.629e-05/0.5626, allocations: 47.67 kB / 386.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 3.747e-06/0.5627, allocations: 3.938 kB / 386.3 MB, free: 10.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.004776/0.5674, allocations: 1.578 MB / 387.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.5675, allocations: 57.09 kB / 387.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003063/0.5679, allocations: 201.6 kB / 388.1 MB, free: 10.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000139/0.568, allocations: 42.48 kB / 388.2 MB, free: 10.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.5681, allocations: 236.4 kB / 388.4 MB, free: 9.824 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.5683, allocations: 164.5 kB / 388.6 MB, free: 9.727 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.205e-05/0.5684, allocations: 10.19 kB / 388.6 MB, free: 9.727 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.49e-05/0.5685, allocations: 338.1 kB / 388.9 MB, free: 9.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005158/0.569, allocations: 187.1 kB / 389.1 MB, free: 9.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000539/0.5695, allocations: 248.3 kB / 389.3 MB, free: 9.363 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004218/0.57, allocations: 154.6 kB / 389.5 MB, free: 9.352 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.57, allocations: 0 / 389.5 MB, free: 9.352 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002354/0.5724, allocations: 0.6802 MB / 390.2 MB, free: 9.246 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.5724, allocations: 13.14 kB / 390.2 MB, free: 9.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.566e-05/0.5725, allocations: 2.062 kB / 390.2 MB, free: 9.242 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001473/0.5739, allocations: 433.6 kB / 390.6 MB, free: 9.199 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005498/0.5745, allocations: 75.19 kB / 390.7 MB, free: 9.191 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00311/0.5777, allocations: 3.387 MB / 394.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.5788, allocations: 99.86 kB / 394.2 MB, free: 6.129 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.974e-05/0.5789, allocations: 29.39 kB / 394.2 MB, free: 6.125 MB / 314.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.0005296/0.5795, allocations: 142.4 kB / 394.3 MB, free: 22 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.5796, allocations: 30.88 kB / 394.4 MB, free: 21.99 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00226/0.5819, allocations: 0.7099 MB / 395.1 MB, free: 21.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/0.5819, allocations: 3.906 kB / 395.1 MB, free: 21.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.5819, allocations: 3.938 kB / 395.1 MB, free: 21.87 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.582, allocations: 3.094 kB / 395.1 MB, free: 21.87 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002731/0.5847, allocations: 1.154 MB / 396.2 MB, free: 21.53 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.5848, allocations: 0 / 396.2 MB, free: 21.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005555/0.5853, allocations: 63.22 kB / 396.3 MB, free: 21.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/0.5866, allocations: 425.8 kB / 396.7 MB, free: 21.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.809e-05/0.5867, allocations: 22.98 kB / 396.7 MB, free: 21.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00369/0.5904, allocations: 3.338 MB / 400.1 MB, free: 18.42 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.5905, allocations: 7.906 kB / 400.1 MB, free: 18.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.5928, allocations: 0.8793 MB / 401 MB, free: 18.22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003301/0.5932, allocations: 155.6 kB / 401.1 MB, free: 18.11 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.5933, allocations: 25.7 kB / 401.1 MB, free: 18.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009141/0.5942, allocations: 99.28 kB / 401.2 MB, free: 18.1 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003179/0.5946, allocations: 112.8 kB / 401.3 MB, free: 18.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.694e-05/0.5947, allocations: 21.06 kB / 401.4 MB, free: 18.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002344/0.5949, allocations: 167.8 kB / 401.5 MB, free: 18.02 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5949, allocations: 0 / 401.5 MB, free: 18.02 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007711/0.5957, allocations: 128.6 kB / 401.6 MB, free: 18.01 MB / 330.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.002822/0.5985, allocations: 1.474 MB / 403.1 MB, free: 17.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.6005, allocations: 0.7592 MB / 403.9 MB, free: 16.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.6005, allocations: 0 / 403.9 MB, free: 16.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.6016, allocations: 489 kB / 404.4 MB, free: 16.76 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006932/0.6024, allocations: 56.16 kB / 404.4 MB, free: 16.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003298/0.6057, allocations: 0.9112 MB / 405.3 MB, free: 16.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.6062, allocations: 0.8182 MB / 406.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/0.6065, allocations: 107.8 kB / 406.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6065, allocations: 3.938 kB / 406.2 MB, free: 15.59 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.925/3.531, allocations: 9.985 MB / 416.2 MB, free: 12.61 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat