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.877/1.877, allocations: 171.2 MB / 178.4 MB, free: 124 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 3.602e-05/3.604e-05, allocations: 4 kB / 219.6 MB, free: 6.898 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3345, allocations: 38.77 MB / 258.3 MB, free: 12.29 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1346/0.4692, allocations: 69.93 MB / 328.3 MB, free: 7.922 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000301/0.4695, allocations: 67.95 kB / 328.3 MB, free: 7.855 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03045/0.5, allocations: 6.392 MB / 334.7 MB, free: 1.445 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5001, allocations: 0 / 334.7 MB, free: 1.445 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.514e-05/0.5001, allocations: 7.938 kB / 334.7 MB, free: 1.438 MB / 282.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.001968/0.5021, allocations: 0.666 MB / 335.4 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.5022, allocations: 12.03 kB / 335.4 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.5023, allocations: 39.53 kB / 335.5 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005718/0.5029, allocations: 293.5 kB / 335.7 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.26e-05/0.503, allocations: 12 kB / 335.8 MB, free: 340 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.5031, allocations: 23.91 kB / 335.8 MB, free: 316 kB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001179/0.5043, allocations: 405.3 kB / 336.2 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009769/0.5053, allocations: 362 kB / 336.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.029e-05/0.5053, allocations: 3.984 kB / 336.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.743e-05/0.5054, allocations: 0 / 336.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.5054, allocations: 8 kB / 336.5 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003881/0.5093, allocations: 1.232 MB / 337.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009707/0.5103, allocations: 324.1 kB / 338.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005232/0.5109, allocations: 205.6 kB / 338.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.55e-05/0.511, allocations: 8.359 kB / 338.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.373e-05/0.511, allocations: 46.88 kB / 338.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 4.068e-06/0.511, allocations: 0 / 338.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005242/0.5163, allocations: 1.546 MB / 339.9 MB, free: 12.01 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.399e-05/0.5164, allocations: 55.84 kB / 339.9 MB, free: 11.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003195/0.5167, allocations: 202.1 kB / 340.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.85e-05/0.5168, allocations: 33.7 kB / 340.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.517, allocations: 172.6 kB / 340.3 MB, free: 11.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002062/0.5172, allocations: 161.8 kB / 340.5 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.686e-05/0.5173, allocations: 0 / 340.5 MB, free: 11.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.5174, allocations: 342.8 kB / 340.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005242/0.518, allocations: 193.1 kB / 341 MB, free: 10.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006112/0.5186, allocations: 270.1 kB / 341.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006075/0.5192, allocations: 170.1 kB / 341.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.5192, allocations: 0 / 341.5 MB, free: 10.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002985/0.5222, allocations: 0.8181 MB / 342.3 MB, free: 9.562 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.5223, allocations: 7.594 kB / 342.3 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.5223, allocations: 4.062 kB / 342.3 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001835/0.5242, allocations: 0.5567 MB / 342.8 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005749/0.5248, allocations: 79.89 kB / 342.9 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004129/0.5289, allocations: 3.408 MB / 346.3 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009934/0.5299, allocations: 92.12 kB / 346.4 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.532e-05/0.53, allocations: 31.98 kB / 346.4 MB, free: 5.125 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002952/0.5304, allocations: 123.1 kB / 346.6 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00191/0.5323, allocations: 0.5762 MB / 347.1 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.5325, allocations: 35.53 kB / 347.2 MB, free: 4.371 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00256/0.535, allocations: 0.7088 MB / 347.9 MB, free: 3.652 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.136e-05/0.5351, allocations: 4 kB / 347.9 MB, free: 3.648 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.5351, allocations: 4 kB / 347.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.261e-05/0.5351, allocations: 7.984 kB / 347.9 MB, free: 3.637 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003149/0.5383, allocations: 1.13 MB / 349 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.5383, allocations: 0 / 349 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005722/0.5389, allocations: 59.97 kB / 349.1 MB, free: 2.391 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001693/0.5406, allocations: 0.5411 MB / 349.6 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.731e-05/0.5407, allocations: 19.92 kB / 349.7 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004121/0.5449, allocations: 3.369 MB / 353 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.5449, allocations: 4.031 kB / 353 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002539/0.5475, allocations: 0.9226 MB / 353.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003505/0.5479, allocations: 160.6 kB / 354.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000134/0.548, allocations: 8 kB / 354.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008945/0.5489, allocations: 95.91 kB / 354.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003528/0.5493, allocations: 104.2 kB / 354.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.882e-05/0.5494, allocations: 35.91 kB / 354.3 MB, free: 12.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002087/0.5496, allocations: 150 kB / 354.5 MB, free: 12.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5496, allocations: 0 / 354.5 MB, free: 12.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000734/0.5504, allocations: 116 kB / 354.6 MB, free: 12.55 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.002853/0.5532, allocations: 1.459 MB / 356.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001838/0.5551, allocations: 0.7126 MB / 356.8 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.5551, allocations: 0 / 356.8 MB, free: 10.33 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/0.5563, allocations: 483.4 kB / 357.2 MB, free: 9.844 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006454/0.5569, allocations: 48.72 kB / 357.3 MB, free: 9.793 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00323/0.5602, allocations: 0.8534 MB / 358.1 MB, free: 8.902 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.5608, allocations: 0.7997 MB / 358.9 MB, free: 8.07 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000238/0.561, allocations: 35.28 kB / 359 MB, free: 8.035 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002618/0.5613, allocations: 107.4 kB / 359.1 MB, free: 7.93 MB / 314.7 MB Notification: Performance of SimCode: time 1.232e-06/0.5613, allocations: 0 / 359.1 MB, free: 7.93 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2777/0.839, allocations: 10.43 MB / 369.5 MB, free: 96.23 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002457/0.8393, allocations: 145.9 kB / 369.7 MB, free: 96.04 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.788/3.627, allocations: 3.938 kB / 369.7 MB, free: 96.04 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