Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.177/2.177, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/2.988e-05, allocations: 4 kB / 292.8 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1225, allocations: 50.4 MB / 343.2 MB, free: 5.832 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4788/0.6014, allocations: 81.54 MB / 424.7 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/0.6018, allocations: 68.97 kB / 424.8 MB, free: 12.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04201/0.6438, allocations: 6.752 MB / 431.5 MB, free: 6.461 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6439, allocations: 4 kB / 431.5 MB, free: 6.457 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.355e-05/0.6439, allocations: 4 kB / 431.5 MB, free: 6.453 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.002657/0.6466, allocations: 0.6637 MB / 432.2 MB, free: 5.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.005e-05/0.6467, allocations: 8.031 kB / 432.2 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002471/0.6469, allocations: 77.09 kB / 432.3 MB, free: 5.695 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000193/0.6471, allocations: 43.53 kB / 432.3 MB, free: 5.652 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006961/0.6478, allocations: 289.3 kB / 432.6 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.743e-05/0.6479, allocations: 37.78 kB / 432.6 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001625/0.6481, allocations: 34.09 kB / 432.7 MB, free: 5.312 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001485/0.6496, allocations: 393.8 kB / 433 MB, free: 5.039 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.353e-05/0.6497, allocations: 3.938 kB / 433.1 MB, free: 5.035 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.93e-05/0.6498, allocations: 18.89 kB / 433.1 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.6498, allocations: 8 kB / 433.1 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.6514, allocations: 369.7 kB / 433.4 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005585/0.657, allocations: 1.308 MB / 434.7 MB, free: 3.668 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/0.6584, allocations: 345.6 kB / 435.1 MB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008042/0.6593, allocations: 224.8 kB / 435.3 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.6594, allocations: 8.5 kB / 435.3 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.6595, allocations: 34.94 kB / 435.3 MB, free: 3.254 MB / 346.7 MB Notification: Performance of pre-optimization done (n=47): time 5.05e-06/0.6595, allocations: 4 kB / 435.4 MB, free: 3.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=51): time 0.006793/0.6663, allocations: 1.579 MB / 436.9 MB, free: 1.906 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.545e-05/0.6664, allocations: 59.83 kB / 437 MB, free: 1.836 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004176/0.6668, allocations: 206.9 kB / 437.2 MB, free: 1.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001287/0.667, allocations: 40.39 kB / 437.2 MB, free: 1.625 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001849/0.6672, allocations: 169.5 kB / 437.4 MB, free: 1.477 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002862/0.6675, allocations: 176.4 kB / 437.6 MB, free: 1.328 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.535e-05/0.6676, allocations: 9.438 kB / 437.6 MB, free: 1.328 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002058/0.6678, allocations: 339 kB / 437.9 MB, free: 1 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008064/0.6686, allocations: 186.6 kB / 438.1 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008972/0.6695, allocations: 255.7 kB / 438.3 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006663/0.6702, allocations: 151.7 kB / 438.5 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.6702, allocations: 0 / 438.5 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002784/0.673, allocations: 0.6926 MB / 439.2 MB, free: 88 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.6731, allocations: 4 kB / 439.2 MB, free: 84 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.162e-05/0.6732, allocations: 11.97 kB / 439.2 MB, free: 72 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001692/0.6749, allocations: 442.4 kB / 439.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005611/0.6754, allocations: 71.89 kB / 439.7 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003906/0.6794, allocations: 3.371 MB / 443.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/0.6804, allocations: 105.6 kB / 443.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.39e-05/0.6806, allocations: 23.61 kB / 443.2 MB, free: 12.09 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.0002367/0.6808, allocations: 138.7 kB / 443.3 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.6809, allocations: 31.62 kB / 443.4 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002391/0.6833, allocations: 0.7158 MB / 444.1 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.912e-05/0.6834, allocations: 8 kB / 444.1 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.6834, allocations: 0 / 444.1 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/0.6834, allocations: 3.984 kB / 444.1 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002846/0.6863, allocations: 1.15 MB / 445.2 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.6863, allocations: 0 / 445.2 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005673/0.6869, allocations: 67.64 kB / 445.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001435/0.6883, allocations: 415 kB / 445.7 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.91e-05/0.6884, allocations: 25.72 kB / 445.7 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003739/0.6922, allocations: 3.356 MB / 449.1 MB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.6922, allocations: 0 / 449.1 MB, free: 6.613 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/0.6946, allocations: 0.889 MB / 450 MB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003048/0.695, allocations: 155.4 kB / 450.1 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.6951, allocations: 26.22 kB / 450.2 MB, free: 5.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009463/0.6961, allocations: 98.59 kB / 450.3 MB, free: 5.707 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003353/0.6964, allocations: 105.3 kB / 450.4 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.234e-05/0.6965, allocations: 27.34 kB / 450.4 MB, free: 5.594 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002452/0.6968, allocations: 165.8 kB / 450.5 MB, free: 5.453 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6968, allocations: 0 / 450.5 MB, free: 5.453 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007474/0.6975, allocations: 128.1 kB / 450.7 MB, free: 5.344 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.004134/0.7017, allocations: 1.47 MB / 452.1 MB, free: 4.109 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00298/0.7047, allocations: 0.7491 MB / 452.9 MB, free: 3.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.7048, allocations: 0 / 452.9 MB, free: 3.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.7066, allocations: 0.4927 MB / 453.4 MB, free: 3.074 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009745/0.7076, allocations: 53.09 kB / 453.4 MB, free: 3.039 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005029/0.7127, allocations: 0.8917 MB / 454.3 MB, free: 2.211 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006657/0.7134, allocations: 0.8075 MB / 455.1 MB, free: 1.379 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003484/0.7138, allocations: 35.27 kB / 455.2 MB, free: 1.344 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003487/0.7141, allocations: 108.5 kB / 455.3 MB, free: 1.309 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/0.7142, allocations: 0 / 455.3 MB, free: 1.309 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06025/0.7744, allocations: 11.48 MB / 466.8 MB, free: 5.945 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003442/0.7748, allocations: 200.8 kB / 467 MB, free: 5.715 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.009/3.784, allocations: 4.062 kB / 467 MB, free: 5.711 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat