Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.033/2.033, allocations: 194.9 MB / 208 MB, free: 3.266 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.196e-05/4.2e-05, allocations: 4 kB / 255.5 MB, free: 2.625 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.09738, allocations: 44.5 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4356/0.533, allocations: 75.94 MB / 375.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.5333, allocations: 70.27 kB / 376 MB, free: 12.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03676/0.5701, allocations: 6.51 MB / 382.5 MB, free: 11.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.5701, allocations: 0 / 382.5 MB, free: 11.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.669e-05/0.5702, allocations: 10.81 kB / 382.5 MB, free: 11.78 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.002031/0.5722, allocations: 0.6554 MB / 383.2 MB, free: 11.34 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.031e-05/0.5723, allocations: 9.625 kB / 383.2 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002303/0.5725, allocations: 78.7 kB / 383.2 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.5727, allocations: 40.66 kB / 383.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.5732, allocations: 293.8 kB / 383.6 MB, free: 11.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.024e-05/0.5733, allocations: 31.09 kB / 383.6 MB, free: 11.03 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.5734, allocations: 42.09 kB / 383.6 MB, free: 11.02 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.5745, allocations: 395.1 kB / 384 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.106e-05/0.5745, allocations: 4.906 kB / 384 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.841e-05/0.5746, allocations: 13.44 kB / 384 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.5746, allocations: 9.094 kB / 384.1 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001048/0.5757, allocations: 368.9 kB / 384.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004144/0.5799, allocations: 1.31 MB / 385.7 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.581, allocations: 340.3 kB / 386.1 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005394/0.5816, allocations: 224 kB / 386.3 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.089e-05/0.5817, allocations: 10.38 kB / 386.3 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.5817, allocations: 42.64 kB / 386.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 3.156e-06/0.5817, allocations: 0 / 386.3 MB, free: 10.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.004745/0.5865, allocations: 1.579 MB / 387.9 MB, free: 9.855 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.5865, allocations: 55.72 kB / 388 MB, free: 9.789 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.5868, allocations: 198.6 kB / 388.2 MB, free: 9.691 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.606e-05/0.5869, allocations: 52.47 kB / 388.2 MB, free: 9.656 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.587, allocations: 165.2 kB / 388.4 MB, free: 9.539 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.5872, allocations: 164.5 kB / 388.5 MB, free: 9.441 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.427e-05/0.5873, allocations: 13.44 kB / 388.5 MB, free: 9.441 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.659e-05/0.5874, allocations: 347 kB / 388.9 MB, free: 9.125 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005278/0.5879, allocations: 185.1 kB / 389.1 MB, free: 9.125 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005339/0.5885, allocations: 253.4 kB / 389.3 MB, free: 9.074 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004135/0.5889, allocations: 152.4 kB / 389.5 MB, free: 9.062 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.5889, allocations: 0 / 389.5 MB, free: 9.062 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002293/0.5912, allocations: 0.6873 MB / 390.1 MB, free: 8.957 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.5913, allocations: 12.33 kB / 390.2 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/0.5913, allocations: 3.875 kB / 390.2 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/0.5927, allocations: 446.2 kB / 390.6 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005354/0.5933, allocations: 79.08 kB / 390.7 MB, free: 8.887 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00338/0.5967, allocations: 3.374 MB / 394 MB, free: 21.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.5979, allocations: 103 kB / 394.1 MB, free: 21.83 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.598, allocations: 29.78 kB / 394.2 MB, free: 21.82 MB / 330.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.0002597/0.5983, allocations: 139.1 kB / 394.3 MB, free: 21.71 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.5984, allocations: 38.95 kB / 394.4 MB, free: 21.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.6007, allocations: 0.7078 MB / 395.1 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.6008, allocations: 7.312 kB / 395.1 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.6008, allocations: 3.938 kB / 395.1 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.6008, allocations: 0 / 395.1 MB, free: 21.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/0.6036, allocations: 1.16 MB / 396.2 MB, free: 21.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.6036, allocations: 0 / 396.2 MB, free: 21.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005801/0.6042, allocations: 63.59 kB / 396.3 MB, free: 21.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001298/0.6056, allocations: 422.1 kB / 396.7 MB, free: 21.16 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.908e-05/0.6057, allocations: 19.19 kB / 396.7 MB, free: 21.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003576/0.6092, allocations: 3.351 MB / 400.1 MB, free: 18.11 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.6093, allocations: 3.812 kB / 400.1 MB, free: 18.11 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002256/0.6116, allocations: 0.8786 MB / 401 MB, free: 17.92 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004074/0.612, allocations: 153 kB / 401.1 MB, free: 17.81 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.6121, allocations: 26.98 kB / 401.1 MB, free: 17.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009239/0.6131, allocations: 104.9 kB / 401.2 MB, free: 17.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003125/0.6134, allocations: 103.8 kB / 401.3 MB, free: 17.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.858e-05/0.6135, allocations: 24.77 kB / 401.4 MB, free: 17.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002304/0.6137, allocations: 166 kB / 401.5 MB, free: 17.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6138, allocations: 0 / 401.5 MB, free: 17.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007523/0.6145, allocations: 124 kB / 401.6 MB, free: 17.71 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.002811/0.6173, allocations: 1.486 MB / 403.1 MB, free: 16.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001928/0.6193, allocations: 0.7402 MB / 403.9 MB, free: 16.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.6194, allocations: 0 / 403.9 MB, free: 16.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.6206, allocations: 0.4941 MB / 404.4 MB, free: 16.46 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007481/0.6214, allocations: 49.25 kB / 404.4 MB, free: 16.45 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.6248, allocations: 0.8893 MB / 405.3 MB, free: 16.04 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004455/0.6253, allocations: 0.8126 MB / 406.1 MB, free: 15.33 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002325/0.6255, allocations: 28.58 kB / 406.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002176/0.6257, allocations: 109.3 kB / 406.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6258, allocations: 0 / 406.2 MB, free: 15.32 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04942/0.6752, allocations: 11.48 MB / 417.7 MB, free: 11.47 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001647/0.6754, allocations: 185.9 kB / 417.9 MB, free: 11.25 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.071/3.747, allocations: 4 kB / 417.9 MB, free: 11.25 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat