Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 171.2 MB / 183.3 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.124e-05/4.14e-05, allocations: 4 kB / 225.1 MB, free: 2.207 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2588, allocations: 38.76 MB / 263.8 MB, free: 9.809 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1297/0.3885, allocations: 70.6 MB / 334.5 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.3889, allocations: 71.97 kB / 334.5 MB, free: 3.031 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03165/0.4205, allocations: 6.431 MB / 341 MB, free: 12.58 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.4206, allocations: 0 / 341 MB, free: 12.58 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.243e-05/0.4206, allocations: 8 kB / 341 MB, free: 12.57 MB / 298.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.002149/0.4228, allocations: 0.6699 MB / 341.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.4229, allocations: 8.031 kB / 341.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002354/0.4231, allocations: 75.31 kB / 341.7 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001446/0.4233, allocations: 43.44 kB / 341.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005904/0.4239, allocations: 297.4 kB / 342 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-05/0.424, allocations: 32.78 kB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.4241, allocations: 39.95 kB / 342.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001173/0.4253, allocations: 411.6 kB / 342.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.4253, allocations: 7.906 kB / 342.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.879e-05/0.4254, allocations: 16 kB / 342.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.4254, allocations: 11.94 kB / 342.6 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.4266, allocations: 411 kB / 343 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004174/0.4308, allocations: 1.315 MB / 344.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.4324, allocations: 340.6 kB / 344.6 MB, free: 8.738 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009845/0.4334, allocations: 229.6 kB / 344.8 MB, free: 8.512 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/0.4336, allocations: 8.359 kB / 344.8 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/0.4337, allocations: 38.94 kB / 344.9 MB, free: 8.457 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 5.36e-06/0.4337, allocations: 0 / 344.9 MB, free: 8.457 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005439/0.4391, allocations: 1.639 MB / 346.5 MB, free: 6.723 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.497e-05/0.4393, allocations: 63.78 kB / 346.6 MB, free: 6.648 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004162/0.4397, allocations: 222.8 kB / 346.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.4398, allocations: 41.7 kB / 346.8 MB, free: 6.371 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000159/0.44, allocations: 176.6 kB / 347 MB, free: 6.191 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002256/0.4402, allocations: 165.8 kB / 347.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.4403, allocations: 8 kB / 347.2 MB, free: 6.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.4404, allocations: 342.8 kB / 347.5 MB, free: 5.676 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006492/0.4411, allocations: 209.1 kB / 347.7 MB, free: 5.473 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008469/0.442, allocations: 279.3 kB / 348 MB, free: 5.184 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005267/0.4425, allocations: 167.2 kB / 348.1 MB, free: 5.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.4425, allocations: 0 / 348.1 MB, free: 5.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003/0.4456, allocations: 0.8553 MB / 349 MB, free: 4.152 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.4456, allocations: 4 kB / 349 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.4457, allocations: 0 / 349 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001877/0.4475, allocations: 0.5685 MB / 349.6 MB, free: 3.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/0.4482, allocations: 79.83 kB / 349.7 MB, free: 3.492 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004307/0.4525, allocations: 3.441 MB / 353.1 MB, free: 15.76 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.4537, allocations: 100 kB / 353.2 MB, free: 15.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001025/0.4538, allocations: 23.98 kB / 353.2 MB, free: 15.64 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): 43 * 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 prepare postOptimizeDAE: time 0.0002276/0.4541, allocations: 141 kB / 353.4 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.4542, allocations: 35.53 kB / 353.4 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002802/0.457, allocations: 0.7557 MB / 354.1 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.4571, allocations: 4 kB / 354.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.4571, allocations: 4 kB / 354.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.4571, allocations: 0 / 354.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003281/0.4604, allocations: 1.231 MB / 355.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.4604, allocations: 4 kB / 355.4 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007137/0.4612, allocations: 55.95 kB / 355.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001813/0.463, allocations: 0.5534 MB / 356 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4632, allocations: 19.98 kB / 356 MB, free: 12.74 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004226/0.4674, allocations: 3.428 MB / 359.4 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.4674, allocations: 3.938 kB / 359.4 MB, free: 9.023 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002762/0.4702, allocations: 0.9655 MB / 360.4 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003469/0.4706, allocations: 156.7 kB / 360.6 MB, free: 7.859 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/0.4708, allocations: 16 kB / 360.6 MB, free: 7.844 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009386/0.4717, allocations: 99.91 kB / 360.7 MB, free: 7.746 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003554/0.4721, allocations: 116.1 kB / 360.8 MB, free: 7.633 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.323e-05/0.4722, allocations: 23.97 kB / 360.8 MB, free: 7.609 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002674/0.4725, allocations: 171.1 kB / 361 MB, free: 7.438 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.4725, allocations: 0 / 361 MB, free: 7.438 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001035/0.4735, allocations: 124 kB / 361.1 MB, free: 7.316 MB / 314.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.003088/0.4766, allocations: 1.507 MB / 362.6 MB, free: 5.77 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002128/0.4788, allocations: 0.7397 MB / 363.3 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4789, allocations: 0 / 363.3 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001356/0.4802, allocations: 0.5057 MB / 363.9 MB, free: 4.473 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006787/0.481, allocations: 52.48 kB / 363.9 MB, free: 4.422 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.4844, allocations: 0.9041 MB / 364.8 MB, free: 3.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.4849, allocations: 0.8075 MB / 365.6 MB, free: 2.648 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003012/0.4852, allocations: 43.27 kB / 365.7 MB, free: 2.605 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002639/0.4855, allocations: 107.4 kB / 365.8 MB, free: 2.5 MB / 314.7 MB Notification: Performance of SimCode: time 1.352e-06/0.4855, allocations: 0 / 365.8 MB, free: 2.5 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2622/0.7477, allocations: 11.21 MB / 377 MB, free: 91.62 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000202/0.7479, allocations: 190.8 kB / 377.2 MB, free: 91.39 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.022/3.77, allocations: 0 / 377.2 MB, free: 91.39 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat