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.852/1.852, allocations: 171.2 MB / 178.8 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 4.107e-05/4.123e-05, allocations: 4 kB / 219.6 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2824, allocations: 38.76 MB / 258.3 MB, free: 12.14 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1462/0.4287, allocations: 69.93 MB / 328.2 MB, free: 7.965 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000369/0.4291, allocations: 75.95 kB / 328.3 MB, free: 7.891 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03474/0.4639, allocations: 6.387 MB / 334.7 MB, free: 1.484 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4639, allocations: 0 / 334.7 MB, free: 1.484 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.306e-05/0.464, allocations: 11.98 kB / 334.7 MB, free: 1.473 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.002107/0.4661, allocations: 0.6621 MB / 335.4 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4662, allocations: 8.031 kB / 335.4 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001588/0.4663, allocations: 43.53 kB / 335.4 MB, free: 0.7109 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005685/0.4669, allocations: 289.5 kB / 335.7 MB, free: 396 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.467, allocations: 12 kB / 335.7 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.4671, allocations: 27.91 kB / 335.8 MB, free: 356 kB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001152/0.4683, allocations: 405.3 kB / 336.1 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.4693, allocations: 362 kB / 336.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.067e-05/0.4694, allocations: 4 kB / 336.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.4694, allocations: 4 kB / 336.5 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.4694, allocations: 8 kB / 336.5 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004094/0.4736, allocations: 1.228 MB / 337.7 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001017/0.4746, allocations: 324.1 kB / 338.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005247/0.4752, allocations: 209.6 kB / 338.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.971e-05/0.4753, allocations: 12.36 kB / 338.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.291e-05/0.4753, allocations: 42.88 kB / 338.3 MB, free: 13.69 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 3.787e-06/0.4753, allocations: 0 / 338.3 MB, free: 13.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.005356/0.4807, allocations: 1.538 MB / 339.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.4808, allocations: 63.83 kB / 339.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003764/0.4812, allocations: 202.1 kB / 340.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.783e-05/0.4813, allocations: 33.7 kB / 340.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.4815, allocations: 231 kB / 340.4 MB, free: 11.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/0.4817, allocations: 161.8 kB / 340.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.4818, allocations: 0 / 340.5 MB, free: 11.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.482, allocations: 334.8 kB / 340.9 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005344/0.4825, allocations: 197.1 kB / 341.1 MB, free: 10.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006128/0.4831, allocations: 258.2 kB / 341.3 MB, free: 10.55 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006357/0.4838, allocations: 174 kB / 341.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.4838, allocations: 0 / 341.5 MB, free: 10.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002986/0.4868, allocations: 0.8068 MB / 342.3 MB, free: 9.562 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.027e-05/0.4869, allocations: 12 kB / 342.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.4869, allocations: 0 / 342.3 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/0.4888, allocations: 0.5529 MB / 342.8 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006331/0.4894, allocations: 79.89 kB / 342.9 MB, free: 8.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004417/0.4939, allocations: 3.412 MB / 346.3 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.495, allocations: 92 kB / 346.4 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.822e-05/0.4951, allocations: 20 kB / 346.4 MB, free: 5.137 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.0003135/0.4954, allocations: 147.1 kB / 346.6 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001932/0.4974, allocations: 0.5645 MB / 347.2 MB, free: 4.406 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.4975, allocations: 31.62 kB / 347.2 MB, free: 4.375 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002517/0.5001, allocations: 0.7096 MB / 347.9 MB, free: 3.656 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.309e-05/0.5001, allocations: 4 kB / 347.9 MB, free: 3.652 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.5001, allocations: 7.984 kB / 347.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.5002, allocations: 0 / 347.9 MB, free: 3.645 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003131/0.5033, allocations: 1.134 MB / 349 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.5034, allocations: 4 kB / 349 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005701/0.504, allocations: 55.91 kB / 349.1 MB, free: 2.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001722/0.5057, allocations: 0.545 MB / 349.6 MB, free: 1.84 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.842e-05/0.5058, allocations: 11.94 kB / 349.7 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004069/0.5099, allocations: 3.377 MB / 353 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.51, allocations: 4.062 kB / 353 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.5125, allocations: 0.9263 MB / 354 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003468/0.5129, allocations: 156.7 kB / 354.1 MB, free: 13.06 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000146/0.5131, allocations: 8 kB / 354.1 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009063/0.514, allocations: 95.91 kB / 354.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003592/0.5144, allocations: 108.2 kB / 354.3 MB, free: 12.85 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.242e-05/0.5145, allocations: 23.97 kB / 354.3 MB, free: 12.83 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002288/0.5147, allocations: 161.9 kB / 354.5 MB, free: 12.67 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5147, allocations: 0 / 354.5 MB, free: 12.67 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007588/0.5155, allocations: 108 kB / 354.6 MB, free: 12.56 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.00287/0.5184, allocations: 1.47 MB / 356.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.5203, allocations: 0.6969 MB / 356.8 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5203, allocations: 4 kB / 356.8 MB, free: 10.34 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.5215, allocations: 487.3 kB / 357.3 MB, free: 9.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006723/0.5222, allocations: 44.59 kB / 357.3 MB, free: 9.801 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003316/0.5255, allocations: 0.8828 MB / 358.2 MB, free: 8.875 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00048/0.526, allocations: 0.8114 MB / 359 MB, free: 8.031 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002895/0.5263, allocations: 111.4 kB / 359.1 MB, free: 7.922 MB / 314.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5264, allocations: 0 / 359.1 MB, free: 7.922 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.333/3.86, allocations: 9.489 MB / 368.6 MB, free: 95.48 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