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.819/1.819, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.487e-05/4.502e-05, allocations: 3.984 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3213, allocations: 38.77 MB / 263.9 MB, free: 9.703 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1334/0.4548, allocations: 70.6 MB / 334.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/0.4551, allocations: 71.95 kB / 334.5 MB, free: 2.934 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03205/0.4872, allocations: 6.439 MB / 341 MB, free: 12.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4873, allocations: 4 kB / 341 MB, free: 12.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.041e-05/0.4873, allocations: 8 kB / 341 MB, free: 12.46 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.002091/0.4894, allocations: 0.6698 MB / 341.7 MB, free: 11.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.413e-05/0.4895, allocations: 8.031 kB / 341.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002204/0.4897, allocations: 75.3 kB / 341.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.4899, allocations: 51.44 kB / 341.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.4905, allocations: 289.5 kB / 342.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.039e-05/0.4905, allocations: 24.78 kB / 342.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001203/0.4907, allocations: 39.95 kB / 342.1 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.4918, allocations: 410 kB / 342.5 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.4919, allocations: 11.91 kB / 342.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.301e-05/0.492, allocations: 12 kB / 342.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.492, allocations: 8 kB / 342.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.4932, allocations: 413.4 kB / 343 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004289/0.4975, allocations: 1.319 MB / 344.3 MB, free: 8.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.4987, allocations: 340 kB / 344.6 MB, free: 8.637 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006112/0.4994, allocations: 229.6 kB / 344.8 MB, free: 8.41 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.535e-05/0.4995, allocations: 8.359 kB / 344.9 MB, free: 8.402 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.4995, allocations: 38.94 kB / 344.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 3.596e-06/0.4995, allocations: 0 / 344.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005126/0.5046, allocations: 1.635 MB / 346.5 MB, free: 6.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.5047, allocations: 55.84 kB / 346.6 MB, free: 6.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.5051, allocations: 222.8 kB / 346.8 MB, free: 6.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001048/0.5053, allocations: 41.7 kB / 346.8 MB, free: 6.281 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.5054, allocations: 172.6 kB / 347 MB, free: 6.105 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.5057, allocations: 169.8 kB / 347.2 MB, free: 5.938 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.767e-05/0.5057, allocations: 16 kB / 347.2 MB, free: 5.922 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.5059, allocations: 342.7 kB / 347.5 MB, free: 5.578 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006443/0.5066, allocations: 213 kB / 347.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006824/0.5073, allocations: 270.2 kB / 348 MB, free: 5.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005138/0.5078, allocations: 171.2 kB / 348.2 MB, free: 4.922 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.5078, allocations: 0 / 348.2 MB, free: 4.922 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003095/0.5109, allocations: 0.8399 MB / 349 MB, free: 4.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.039e-05/0.511, allocations: 8 kB / 349 MB, free: 4.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.511, allocations: 8.047 kB / 349 MB, free: 4.055 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001905/0.5129, allocations: 0.5645 MB / 349.6 MB, free: 3.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006172/0.5136, allocations: 71.91 kB / 349.7 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004167/0.5178, allocations: 3.437 MB / 353.1 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.519, allocations: 112.1 kB / 353.2 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.5191, allocations: 24 kB / 353.2 MB, free: 15.55 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.0002296/0.5193, allocations: 136.9 kB / 353.4 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.5195, allocations: 39.61 kB / 353.4 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002649/0.5221, allocations: 0.748 MB / 354.1 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.5222, allocations: 8 kB / 354.2 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.5222, allocations: 0 / 354.2 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.368e-05/0.5222, allocations: 3.984 kB / 354.2 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00332/0.5256, allocations: 1.235 MB / 355.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.5256, allocations: 0 / 355.4 MB, free: 13.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006116/0.5263, allocations: 59.91 kB / 355.5 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001793/0.5281, allocations: 0.5509 MB / 356 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001065/0.5282, allocations: 19.97 kB / 356 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003971/0.5322, allocations: 3.418 MB / 359.4 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.5322, allocations: 0 / 359.4 MB, free: 8.949 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/0.5349, allocations: 0.9576 MB / 360.4 MB, free: 7.965 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003469/0.5353, allocations: 164.7 kB / 360.6 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.5355, allocations: 20 kB / 360.6 MB, free: 7.766 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009634/0.5365, allocations: 95.91 kB / 360.7 MB, free: 7.672 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/0.5368, allocations: 116 kB / 360.8 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.264e-05/0.5369, allocations: 27.97 kB / 360.8 MB, free: 7.531 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002705/0.5372, allocations: 167.1 kB / 361 MB, free: 7.367 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5372, allocations: 0 / 361 MB, free: 7.367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007804/0.538, allocations: 132 kB / 361.1 MB, free: 7.238 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.003012/0.541, allocations: 1.499 MB / 362.6 MB, free: 5.699 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002015/0.5431, allocations: 0.7201 MB / 363.3 MB, free: 4.961 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5432, allocations: 0 / 363.3 MB, free: 4.961 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.5444, allocations: 0.4957 MB / 363.8 MB, free: 4.449 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000666/0.5451, allocations: 52.42 kB / 363.9 MB, free: 4.398 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003375/0.5485, allocations: 0.9073 MB / 364.8 MB, free: 3.449 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.549, allocations: 0.8114 MB / 365.6 MB, free: 2.613 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002503/0.5492, allocations: 31.28 kB / 365.6 MB, free: 2.582 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.5495, allocations: 111.4 kB / 365.7 MB, free: 2.473 MB / 314.7 MB Notification: Performance of SimCode: time 1.493e-06/0.5495, allocations: 0 / 365.7 MB, free: 2.473 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.258/0.8076, allocations: 11.17 MB / 376.9 MB, free: 91.49 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000229/0.8079, allocations: 189.5 kB / 377.1 MB, free: 91.27 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.09/3.897, allocations: 0 / 377.1 MB, free: 91.27 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