Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.205e-05/3.215e-05, allocations: 4 kB / 292.2 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1352, allocations: 50.41 MB / 342.6 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5031/0.6383, allocations: 81.53 MB / 424.2 MB, free: 12.37 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003724/0.6388, allocations: 81 kB / 424.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04771/0.6865, allocations: 6.745 MB / 431 MB, free: 6.465 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.6866, allocations: 0 / 431 MB, free: 6.465 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.185e-05/0.6866, allocations: 8 kB / 431 MB, free: 6.457 MB / 346.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.00319/0.6898, allocations: 0.6576 MB / 431.7 MB, free: 5.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.016e-05/0.6899, allocations: 12.02 kB / 431.7 MB, free: 5.766 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002744/0.6902, allocations: 78.22 kB / 431.8 MB, free: 5.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002048/0.6904, allocations: 39.53 kB / 431.8 MB, free: 5.664 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000807/0.6913, allocations: 297 kB / 432.1 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.395e-05/0.6914, allocations: 26.53 kB / 432.1 MB, free: 5.348 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/0.6916, allocations: 44.03 kB / 432.1 MB, free: 5.316 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/0.6933, allocations: 389.2 kB / 432.5 MB, free: 5.051 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.616e-05/0.6934, allocations: 11.17 kB / 432.5 MB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.666e-05/0.6935, allocations: 23.64 kB / 432.6 MB, free: 5.031 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.6935, allocations: 8 kB / 432.6 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001579/0.6951, allocations: 372.4 kB / 432.9 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005955/0.7011, allocations: 1.301 MB / 434.2 MB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001513/0.7027, allocations: 341.8 kB / 434.6 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008477/0.7036, allocations: 217.6 kB / 434.8 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001249/0.7037, allocations: 12.42 kB / 434.8 MB, free: 3.305 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.961e-05/0.7038, allocations: 34.12 kB / 434.8 MB, free: 3.266 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 7.764e-06/0.7038, allocations: 3.984 kB / 434.8 MB, free: 3.262 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.005208/0.709, allocations: 1.582 MB / 436.4 MB, free: 1.914 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.67e-05/0.7091, allocations: 63.34 kB / 436.5 MB, free: 1.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.7095, allocations: 196.1 kB / 436.7 MB, free: 1.676 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001021/0.7096, allocations: 51.44 kB / 436.7 MB, free: 1.629 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001434/0.7097, allocations: 169 kB / 436.9 MB, free: 1.484 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002143/0.71, allocations: 169.7 kB / 437 MB, free: 1.344 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.587e-05/0.71, allocations: 10.75 kB / 437.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.7102, allocations: 345.2 kB / 437.4 MB, free: 1.008 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005535/0.7108, allocations: 183.7 kB / 437.6 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006119/0.7114, allocations: 259.9 kB / 437.8 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004942/0.7119, allocations: 146.3 kB / 438 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.7119, allocations: 0 / 438 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002542/0.7145, allocations: 0.6935 MB / 438.7 MB, free: 96 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.685e-05/0.7145, allocations: 4 kB / 438.7 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.397e-05/0.7146, allocations: 4 kB / 438.7 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.7162, allocations: 442.2 kB / 439.1 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005691/0.7168, allocations: 79.08 kB / 439.2 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003939/0.7207, allocations: 3.373 MB / 442.6 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.7219, allocations: 99.59 kB / 442.7 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.722, allocations: 27.23 kB / 442.7 MB, free: 12.1 MB / 362.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.000235/0.7222, allocations: 140.2 kB / 442.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.7224, allocations: 35.56 kB / 442.9 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00247/0.7249, allocations: 0.7097 MB / 443.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.7249, allocations: 4 kB / 443.6 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.7249, allocations: 4 kB / 443.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.725, allocations: 0 / 443.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00391/0.7289, allocations: 1.16 MB / 444.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.174e-06/0.7289, allocations: 0 / 444.7 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007158/0.7297, allocations: 59.34 kB / 444.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001877/0.7315, allocations: 425.7 kB / 445.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.7317, allocations: 18.84 kB / 445.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004993/0.7367, allocations: 3.362 MB / 448.6 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.7368, allocations: 0 / 448.6 MB, free: 6.617 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00371/0.7405, allocations: 0.8834 MB / 449.5 MB, free: 5.973 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004675/0.741, allocations: 157.2 kB / 449.6 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001831/0.7412, allocations: 20.69 kB / 449.6 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00134/0.7426, allocations: 98.5 kB / 449.7 MB, free: 5.719 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004726/0.7431, allocations: 109.5 kB / 449.8 MB, free: 5.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.7432, allocations: 19.36 kB / 449.9 MB, free: 5.609 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003345/0.7436, allocations: 171.6 kB / 450 MB, free: 5.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.02e-07/0.7436, allocations: 0 / 450 MB, free: 5.465 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001113/0.7447, allocations: 123.2 kB / 450.1 MB, free: 5.359 MB / 362.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.003912/0.7486, allocations: 1.476 MB / 451.6 MB, free: 4.121 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002689/0.7514, allocations: 0.7518 MB / 452.4 MB, free: 3.504 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.7514, allocations: 0 / 452.4 MB, free: 3.504 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.7531, allocations: 0.4907 MB / 452.9 MB, free: 3.086 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008945/0.754, allocations: 48.2 kB / 452.9 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004781/0.7588, allocations: 0.9018 MB / 453.8 MB, free: 2.215 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005945/0.7595, allocations: 0.8075 MB / 454.6 MB, free: 1.379 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000335/0.7598, allocations: 31.28 kB / 454.7 MB, free: 1.348 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.7601, allocations: 108.8 kB / 454.8 MB, free: 1.312 MB / 362.7 MB Notification: Performance of SimCode: time 1.363e-06/0.7601, allocations: 0 / 454.8 MB, free: 1.312 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07499/0.8351, allocations: 11.49 MB / 466.3 MB, free: 5.949 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002915/0.8355, allocations: 197.7 kB / 466.4 MB, free: 5.719 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.003/3.838, allocations: 3.938 kB / 466.4 MB, free: 5.715 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat