Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.128/2.128, allocations: 205.8 MB / 218.9 MB, free: 9.281 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.357e-05/3.362e-05, allocations: 0 / 269.4 MB, free: 6.312 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 47.57 MB / 317 MB, free: 6.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4341/0.5408, allocations: 80.39 MB / 397.4 MB, free: 7.32 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002962/0.5411, allocations: 73.14 kB / 397.5 MB, free: 7.281 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03315/0.5743, allocations: 6.66 MB / 404.1 MB, free: 1.496 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.448e-06/0.5744, allocations: 3.984 kB / 404.1 MB, free: 1.492 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.077e-05/0.5744, allocations: 15.94 kB / 404.2 MB, free: 1.477 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.002107/0.5765, allocations: 0.6528 MB / 404.8 MB, free: 0.8008 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.319e-05/0.5766, allocations: 12.03 kB / 404.8 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000209/0.5768, allocations: 77.16 kB / 404.9 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.577, allocations: 39.53 kB / 404.9 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005372/0.5775, allocations: 294.6 kB / 405.2 MB, free: 400 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.173e-05/0.5776, allocations: 35.3 kB / 405.3 MB, free: 376 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.5777, allocations: 38.73 kB / 405.3 MB, free: 348 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.5789, allocations: 394.5 kB / 405.7 MB, free: 68 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.871e-05/0.579, allocations: 3.984 kB / 405.7 MB, free: 64 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-05/0.5791, allocations: 14.19 kB / 405.7 MB, free: 60 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.5792, allocations: 8 kB / 405.7 MB, free: 52 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.5803, allocations: 370.5 kB / 406.1 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004423/0.5847, allocations: 1.303 MB / 407.4 MB, free: 14.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.5859, allocations: 341 kB / 407.7 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005744/0.5865, allocations: 217 kB / 407.9 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.513e-05/0.5866, allocations: 16.42 kB / 407.9 MB, free: 14.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.5866, allocations: 38.19 kB / 408 MB, free: 14.29 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 3.667e-06/0.5866, allocations: 0 / 408 MB, free: 14.29 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.005091/0.5917, allocations: 1.583 MB / 409.6 MB, free: 12.94 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.5918, allocations: 55.84 kB / 409.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003197/0.5922, allocations: 205.2 kB / 409.8 MB, free: 12.7 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001009/0.5923, allocations: 41.27 kB / 409.8 MB, free: 12.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.5924, allocations: 167.3 kB / 410 MB, free: 12.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.5927, allocations: 180 kB / 410.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-05/0.5927, allocations: 15.38 kB / 410.2 MB, free: 12.37 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5929, allocations: 334.6 kB / 410.5 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006949/0.5936, allocations: 193.3 kB / 410.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006088/0.5942, allocations: 246.8 kB / 411 MB, free: 11.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004713/0.5947, allocations: 160.6 kB / 411.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.5947, allocations: 0 / 411.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002682/0.5974, allocations: 0.6879 MB / 411.8 MB, free: 11.12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.315e-05/0.5975, allocations: 11.98 kB / 411.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.5975, allocations: 0 / 411.8 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001684/0.5992, allocations: 445.5 kB / 412.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006032/0.5999, allocations: 75.16 kB / 412.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004453/0.6044, allocations: 3.375 MB / 415.7 MB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/0.606, allocations: 105.5 kB / 415.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000175/0.6062, allocations: 18.88 kB / 415.8 MB, free: 7.133 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.0003629/0.6066, allocations: 148.2 kB / 416 MB, free: 7 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000226/0.6069, allocations: 31.62 kB / 416 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003916/0.6108, allocations: 0.7144 MB / 416.7 MB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.203e-05/0.6109, allocations: 7.938 kB / 416.7 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.115e-05/0.6109, allocations: 0 / 416.7 MB, free: 6.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-05/0.6109, allocations: 7.984 kB / 416.7 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004644/0.6156, allocations: 1.145 MB / 417.9 MB, free: 5.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.119e-05/0.6157, allocations: 3.984 kB / 417.9 MB, free: 5.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009012/0.6166, allocations: 55.91 kB / 417.9 MB, free: 5.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00246/0.6191, allocations: 426.2 kB / 418.3 MB, free: 5.105 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001811/0.6194, allocations: 16.73 kB / 418.4 MB, free: 5.098 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00609/0.6255, allocations: 3.355 MB / 421.7 MB, free: 1.645 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.6255, allocations: 3.984 kB / 421.7 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004001/0.6295, allocations: 0.883 MB / 422.6 MB, free: 1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005523/0.6302, allocations: 150.7 kB / 422.8 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000218/0.6304, allocations: 22.34 kB / 422.8 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.6319, allocations: 98.22 kB / 422.9 MB, free: 0.75 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005755/0.6325, allocations: 112.9 kB / 423 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001397/0.6327, allocations: 23.59 kB / 423 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00042/0.6331, allocations: 166.9 kB / 423.2 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.6332, allocations: 0 / 423.2 MB, free: 0.4922 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001526/0.6347, allocations: 136 kB / 423.3 MB, free: 384 kB / 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.004651/0.6394, allocations: 1.468 MB / 424.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003036/0.6425, allocations: 0.7471 MB / 425.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.6426, allocations: 0 / 425.5 MB, free: 14.53 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001891/0.6445, allocations: 499.6 kB / 426 MB, free: 14.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.6456, allocations: 43.75 kB / 426 MB, free: 14.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005048/0.6507, allocations: 0.9 MB / 426.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007548/0.6515, allocations: 0.8153 MB / 427.8 MB, free: 12.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003713/0.6519, allocations: 27.3 kB / 427.8 MB, free: 12.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000319/0.6522, allocations: 106.9 kB / 427.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of SimCode: time 1.433e-06/0.6523, allocations: 0 / 427.9 MB, free: 12.35 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0527/0.705, allocations: 11.49 MB / 439.4 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003152/0.7054, allocations: 189.9 kB / 439.6 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.243/3.949, allocations: 4 kB / 439.6 MB, free: 0.7188 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat