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.938/1.938, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.795e-05/4.805e-05, allocations: 4 kB / 225.1 MB, free: 2.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2787, allocations: 38.77 MB / 263.8 MB, free: 9.766 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1318/0.4105, allocations: 70.6 MB / 334.4 MB, free: 3.059 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/0.4109, allocations: 75.95 kB / 334.5 MB, free: 2.984 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03265/0.4435, allocations: 6.426 MB / 340.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4436, allocations: 0 / 340.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.118e-05/0.4436, allocations: 8 kB / 341 MB, free: 12.54 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.002142/0.4458, allocations: 0.6698 MB / 341.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.4459, allocations: 16.03 kB / 341.6 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002337/0.4461, allocations: 79.3 kB / 341.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.4463, allocations: 43.44 kB / 341.8 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005648/0.4468, allocations: 293.5 kB / 342 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.341e-05/0.4469, allocations: 24.78 kB / 342.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001287/0.447, allocations: 39.95 kB / 342.1 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001135/0.4482, allocations: 414 kB / 342.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.853e-05/0.4482, allocations: 3.906 kB / 342.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.559e-05/0.4483, allocations: 16 kB / 342.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.4483, allocations: 8 kB / 342.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.4496, allocations: 417.3 kB / 343 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00431/0.4539, allocations: 1.319 MB / 344.3 MB, free: 9.039 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001118/0.4551, allocations: 336.1 kB / 344.6 MB, free: 8.699 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006129/0.4557, allocations: 225.6 kB / 344.8 MB, free: 8.477 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.354e-05/0.4558, allocations: 8.359 kB / 344.8 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.4559, allocations: 38.94 kB / 344.9 MB, free: 8.422 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 4.018e-06/0.4559, allocations: 0 / 344.9 MB, free: 8.422 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005423/0.4613, allocations: 1.635 MB / 346.5 MB, free: 6.691 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.4614, allocations: 59.84 kB / 346.6 MB, free: 6.621 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003972/0.4618, allocations: 222.8 kB / 346.8 MB, free: 6.391 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.528e-05/0.4619, allocations: 41.7 kB / 346.8 MB, free: 6.344 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001747/0.4621, allocations: 231 kB / 347 MB, free: 6.113 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.4624, allocations: 169.7 kB / 347.2 MB, free: 5.945 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.069e-05/0.4624, allocations: 8 kB / 347.2 MB, free: 5.938 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.4627, allocations: 338.8 kB / 347.5 MB, free: 5.598 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006537/0.4633, allocations: 213.1 kB / 347.8 MB, free: 5.391 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006801/0.464, allocations: 266.2 kB / 348 MB, free: 5.113 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005293/0.4646, allocations: 175.2 kB / 348.2 MB, free: 4.941 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.4646, allocations: 4 kB / 348.2 MB, free: 4.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.003017/0.4676, allocations: 0.8328 MB / 349 MB, free: 4.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.4677, allocations: 5.719 kB / 349 MB, free: 4.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.533e-05/0.4677, allocations: 11.92 kB / 349 MB, free: 4.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001955/0.4697, allocations: 0.5607 MB / 349.6 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006204/0.4703, allocations: 75.89 kB / 349.7 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004513/0.4749, allocations: 3.444 MB / 353.1 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001121/0.476, allocations: 104.1 kB / 353.2 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.417e-05/0.4762, allocations: 20 kB / 353.2 MB, free: 15.57 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.0002403/0.4764, allocations: 140.8 kB / 353.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.4765, allocations: 31.62 kB / 353.4 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/0.4791, allocations: 0.7491 MB / 354.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.4792, allocations: 8 kB / 354.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.774e-06/0.4792, allocations: 4 kB / 354.2 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.4792, allocations: 3.984 kB / 354.2 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003267/0.4825, allocations: 1.227 MB / 355.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.4825, allocations: 0 / 355.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005917/0.4832, allocations: 67.91 kB / 355.5 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001857/0.485, allocations: 0.546 MB / 356 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.4852, allocations: 27.91 kB / 356 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004258/0.4895, allocations: 3.415 MB / 359.5 MB, free: 8.973 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.4895, allocations: 7.969 kB / 359.5 MB, free: 8.965 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002788/0.4923, allocations: 0.9537 MB / 360.4 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003794/0.4928, allocations: 156.7 kB / 360.6 MB, free: 7.812 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001335/0.4929, allocations: 20 kB / 360.6 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009992/0.4939, allocations: 100 kB / 360.7 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003599/0.4943, allocations: 112.1 kB / 360.8 MB, free: 7.586 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.273e-05/0.4944, allocations: 23.98 kB / 360.8 MB, free: 7.562 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002838/0.4947, allocations: 175.1 kB / 361 MB, free: 7.391 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4947, allocations: 0 / 361 MB, free: 7.391 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007608/0.4955, allocations: 124 kB / 361.1 MB, free: 7.27 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.003071/0.4986, allocations: 1.507 MB / 362.6 MB, free: 5.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001969/0.5006, allocations: 0.7202 MB / 363.3 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.5006, allocations: 0 / 363.3 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.5018, allocations: 0.4917 MB / 363.8 MB, free: 4.477 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006649/0.5025, allocations: 52.48 kB / 363.9 MB, free: 4.426 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003361/0.5059, allocations: 0.9384 MB / 364.8 MB, free: 3.441 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005045/0.5064, allocations: 0.8114 MB / 365.6 MB, free: 2.605 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002903/0.5067, allocations: 111.4 kB / 365.7 MB, free: 2.496 MB / 314.7 MB Notification: Performance of SimCode: time 1.253e-06/0.5067, allocations: 4 kB / 365.7 MB, free: 2.492 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.235/3.742, allocations: 9.609 MB / 375.4 MB, free: 92.1 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