Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.832/1.832, allocations: 171.2 MB / 183.8 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.221e-05/4.244e-05, allocations: 4 kB / 225.1 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.316, allocations: 38.77 MB / 263.8 MB, free: 9.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1487/0.4648, allocations: 70.59 MB / 334.4 MB, free: 3.164 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.4651, allocations: 75.95 kB / 334.5 MB, free: 3.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03109/0.4962, allocations: 6.43 MB / 340.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.795e-06/0.4963, allocations: 4 kB / 340.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.727e-05/0.4963, allocations: 8 kB / 340.9 MB, free: 12.63 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.001989/0.4983, allocations: 0.6621 MB / 341.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.4984, allocations: 12.03 kB / 341.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001937/0.4986, allocations: 79.3 kB / 341.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.4988, allocations: 47.44 kB / 341.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005309/0.4993, allocations: 297.4 kB / 342 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.271e-05/0.4994, allocations: 32.77 kB / 342 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.4995, allocations: 39.95 kB / 342.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001169/0.5007, allocations: 415.6 kB / 342.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.049e-05/0.5007, allocations: 3.906 kB / 342.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.762e-05/0.5008, allocations: 16 kB / 342.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.5008, allocations: 11.94 kB / 342.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.5021, allocations: 415 kB / 342.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004107/0.5062, allocations: 1.308 MB / 344.2 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.5073, allocations: 345.3 kB / 344.6 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006031/0.508, allocations: 229.6 kB / 344.8 MB, free: 8.566 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.328e-05/0.508, allocations: 12.36 kB / 344.8 MB, free: 8.555 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.5081, allocations: 34.94 kB / 344.8 MB, free: 8.512 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 3.687e-06/0.5081, allocations: 0 / 344.8 MB, free: 8.512 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005057/0.5132, allocations: 1.639 MB / 346.5 MB, free: 6.777 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.5133, allocations: 59.78 kB / 346.5 MB, free: 6.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.5137, allocations: 226.8 kB / 346.8 MB, free: 6.473 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.587e-05/0.5138, allocations: 37.7 kB / 346.8 MB, free: 6.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.514, allocations: 235 kB / 347 MB, free: 6.195 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.5142, allocations: 165.8 kB / 347.2 MB, free: 6.031 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-05/0.5143, allocations: 12 kB / 347.2 MB, free: 6.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.5144, allocations: 334.8 kB / 347.5 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006206/0.5151, allocations: 209.1 kB / 347.7 MB, free: 5.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006976/0.5158, allocations: 275.3 kB / 348 MB, free: 5.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005192/0.5163, allocations: 171.2 kB / 348.2 MB, free: 5.027 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.5163, allocations: 0 / 348.2 MB, free: 5.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002981/0.5193, allocations: 0.8445 MB / 349 MB, free: 4.168 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.5194, allocations: 4 kB / 349 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.5194, allocations: 4 kB / 349 MB, free: 4.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002445/0.5219, allocations: 0.5646 MB / 349.6 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007788/0.5227, allocations: 75.89 kB / 349.7 MB, free: 3.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005623/0.5283, allocations: 3.445 MB / 353.1 MB, free: 15.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001392/0.5298, allocations: 104 kB / 353.2 MB, free: 15.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/0.5299, allocations: 20 kB / 353.2 MB, free: 15.65 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.0002922/0.5302, allocations: 136.9 kB / 353.4 MB, free: 15.51 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.5304, allocations: 31.62 kB / 353.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003458/0.5339, allocations: 0.7608 MB / 354.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.529e-05/0.534, allocations: 4 kB / 354.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.534, allocations: 0 / 354.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.689e-05/0.534, allocations: 3.984 kB / 354.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004329/0.5384, allocations: 1.231 MB / 355.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.5384, allocations: 0 / 355.4 MB, free: 13.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007642/0.5392, allocations: 63.97 kB / 355.5 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01465/0.5539, allocations: 0.5508 MB / 356 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000152/0.5541, allocations: 19.97 kB / 356 MB, free: 12.76 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005493/0.5596, allocations: 3.418 MB / 359.4 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.5597, allocations: 7.922 kB / 359.4 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003781/0.5635, allocations: 0.9656 MB / 360.4 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008678/0.5722, allocations: 160.6 kB / 360.6 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/0.5724, allocations: 16 kB / 360.6 MB, free: 7.863 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.5736, allocations: 103.9 kB / 360.7 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003655/0.574, allocations: 112.1 kB / 360.8 MB, free: 7.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.603e-05/0.5741, allocations: 19.98 kB / 360.8 MB, free: 7.633 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002913/0.5744, allocations: 179.1 kB / 361 MB, free: 7.453 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5744, allocations: 0 / 361 MB, free: 7.453 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000725/0.5752, allocations: 120 kB / 361.1 MB, free: 7.336 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.00309/0.5783, allocations: 1.507 MB / 362.6 MB, free: 5.789 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.5803, allocations: 0.7395 MB / 363.4 MB, free: 5.027 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.5803, allocations: 0 / 363.4 MB, free: 5.027 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.5816, allocations: 0.498 MB / 363.9 MB, free: 4.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006402/0.5822, allocations: 56.55 kB / 363.9 MB, free: 4.445 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.5855, allocations: 0.9431 MB / 364.9 MB, free: 3.461 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.5861, allocations: 0.8075 MB / 365.7 MB, free: 2.629 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/0.5864, allocations: 115.4 kB / 365.8 MB, free: 2.516 MB / 314.7 MB Notification: Performance of SimCode: time 8.61e-07/0.5864, allocations: 0 / 365.8 MB, free: 2.516 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.238/3.825, allocations: 9.624 MB / 375.4 MB, free: 92.25 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat