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.08/2.08, allocations: 194.9 MB / 208 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.23e-05/4.243e-05, allocations: 8 kB / 255.4 MB, free: 2.629 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 44.51 MB / 300 MB, free: 6.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4402/0.5462, allocations: 75.93 MB / 375.9 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.5465, allocations: 69.23 kB / 376 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03099/0.5775, allocations: 6.511 MB / 382.5 MB, free: 11.72 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5776, allocations: 0 / 382.5 MB, free: 11.72 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.328e-05/0.5776, allocations: 11.92 kB / 382.5 MB, free: 11.72 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.001959/0.5796, allocations: 0.6541 MB / 383.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.5797, allocations: 10.25 kB / 383.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002013/0.5799, allocations: 77.75 kB / 383.2 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.58, allocations: 40.03 kB / 383.3 MB, free: 11.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005017/0.5805, allocations: 295.2 kB / 383.5 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.151e-05/0.5806, allocations: 29.81 kB / 383.6 MB, free: 10.97 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.5807, allocations: 43.14 kB / 383.6 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.5818, allocations: 399.4 kB / 384 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.871e-05/0.5818, allocations: 1.375 kB / 384 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.802e-05/0.5819, allocations: 15.44 kB / 384 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.587e-05/0.582, allocations: 9.625 kB / 384 MB, free: 10.92 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/0.583, allocations: 381.6 kB / 384.4 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004023/0.5871, allocations: 1.306 MB / 385.7 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001057/0.5882, allocations: 351.3 kB / 386.1 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000541/0.5887, allocations: 213.8 kB / 386.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.981e-05/0.5889, allocations: 17.45 kB / 386.3 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.5889, allocations: 37.59 kB / 386.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of pre-optimization done (n=47): time 3.667e-06/0.5889, allocations: 0 / 386.3 MB, free: 10.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.004553/0.5935, allocations: 1.581 MB / 387.9 MB, free: 9.773 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.5936, allocations: 56.19 kB / 388 MB, free: 9.711 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/0.5939, allocations: 198.7 kB / 388.1 MB, free: 9.613 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.577e-05/0.594, allocations: 45.73 kB / 388.2 MB, free: 9.582 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.5941, allocations: 172.6 kB / 388.4 MB, free: 9.461 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.5943, allocations: 170.8 kB / 388.5 MB, free: 9.363 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.112e-05/0.5943, allocations: 7.688 kB / 388.5 MB, free: 9.363 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.664e-05/0.5944, allocations: 346.6 kB / 388.9 MB, free: 9.047 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.5949, allocations: 188.3 kB / 389.1 MB, free: 9.047 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005363/0.5955, allocations: 255.3 kB / 389.3 MB, free: 8.996 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004068/0.5959, allocations: 156.5 kB / 389.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.5959, allocations: 0 / 389.5 MB, free: 8.984 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00229/0.5982, allocations: 0.6899 MB / 390.1 MB, free: 8.875 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.251e-05/0.5982, allocations: 7.797 kB / 390.2 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.287e-05/0.5983, allocations: 5.156 kB / 390.2 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.5997, allocations: 436.8 kB / 390.6 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000508/0.6002, allocations: 78.06 kB / 390.7 MB, free: 8.816 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00329/0.6035, allocations: 3.378 MB / 394 MB, free: 21.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009831/0.6046, allocations: 106.7 kB / 394.1 MB, free: 21.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.811e-05/0.6047, allocations: 22.64 kB / 394.2 MB, free: 21.75 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.0002326/0.6049, allocations: 143.9 kB / 394.3 MB, free: 21.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.605, allocations: 39.12 kB / 394.3 MB, free: 21.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002203/0.6072, allocations: 0.7076 MB / 395.1 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.6073, allocations: 3.844 kB / 395.1 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.6073, allocations: 0 / 395.1 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.6073, allocations: 2.953 kB / 395.1 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002571/0.6099, allocations: 1.157 MB / 396.2 MB, free: 21.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.6099, allocations: 0 / 396.2 MB, free: 21.15 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000532/0.6104, allocations: 59.95 kB / 396.3 MB, free: 21.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001293/0.6118, allocations: 428 kB / 396.7 MB, free: 21.1 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.525e-05/0.6118, allocations: 25.86 kB / 396.7 MB, free: 21.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003515/0.6154, allocations: 3.354 MB / 400.1 MB, free: 18.04 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.6154, allocations: 0 / 400.1 MB, free: 18.04 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.6176, allocations: 0.8871 MB / 401 MB, free: 17.84 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003517/0.618, allocations: 165.6 kB / 401.1 MB, free: 17.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.6182, allocations: 17.62 kB / 401.1 MB, free: 17.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008904/0.6191, allocations: 98.38 kB / 401.2 MB, free: 17.71 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003176/0.6194, allocations: 108.2 kB / 401.3 MB, free: 17.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.917e-05/0.6195, allocations: 23.75 kB / 401.4 MB, free: 17.71 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002375/0.6198, allocations: 167 kB / 401.5 MB, free: 17.63 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6198, allocations: 0 / 401.5 MB, free: 17.63 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007416/0.6205, allocations: 126.1 kB / 401.7 MB, free: 17.63 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.00289/0.6234, allocations: 1.469 MB / 403.1 MB, free: 16.89 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.6254, allocations: 0.7768 MB / 403.9 MB, free: 16.58 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.6254, allocations: 0 / 403.9 MB, free: 16.58 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001113/0.6265, allocations: 0.4945 MB / 404.4 MB, free: 16.35 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006582/0.6272, allocations: 50.5 kB / 404.4 MB, free: 16.35 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.6303, allocations: 0.9017 MB / 405.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004754/0.6308, allocations: 0.8086 MB / 406.2 MB, free: 15.22 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002284/0.6311, allocations: 29.73 kB / 406.2 MB, free: 15.21 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002222/0.6313, allocations: 108.7 kB / 406.3 MB, free: 15.21 MB / 330.7 MB Notification: Performance of SimCode: time 1.412e-06/0.6313, allocations: 0 / 406.3 MB, free: 15.21 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0464/0.6777, allocations: 11.52 MB / 417.8 MB, free: 11.33 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002851/0.6781, allocations: 187 kB / 418 MB, free: 11.11 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.996/3.675, allocations: 3.938 kB / 418 MB, free: 11.11 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