Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.099/2.099, allocations: 194.9 MB / 208 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.247e-05/3.271e-05, allocations: 4 kB / 255.4 MB, free: 2.637 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09134, allocations: 44.51 MB / 300 MB, free: 6.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4151/0.5065, allocations: 76 MB / 376 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.5068, allocations: 73.03 kB / 376 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0389/0.5457, allocations: 7.444 MB / 383.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.5458, allocations: 0 / 383.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.812e-05/0.5458, allocations: 8.25 kB / 383.5 MB, free: 12.03 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00323/0.5491, allocations: 0.6939 MB / 384.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.575e-05/0.5492, allocations: 9.062 kB / 384.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003791/0.5496, allocations: 88.97 kB / 384.3 MB, free: 11.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000254/0.5498, allocations: 53 kB / 384.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008067/0.5507, allocations: 310.4 kB / 384.6 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.928e-05/0.5508, allocations: 32 kB / 384.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.551, allocations: 39.94 kB / 384.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001799/0.5528, allocations: 439.1 kB / 385.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.746e-05/0.5529, allocations: 5.906 kB / 385.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/0.553, allocations: 19.02 kB / 385.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.5531, allocations: 10.12 kB / 385.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.555, allocations: 401.6 kB / 385.6 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005298/0.5603, allocations: 1.175 MB / 386.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001754/0.5622, allocations: 382.4 kB / 387.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001031/0.5633, allocations: 246.8 kB / 387.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000119/0.5634, allocations: 4.312 kB / 387.3 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.5635, allocations: 49.02 kB / 387.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 4.849e-06/0.5635, allocations: 0 / 387.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.006545/0.57, allocations: 1.639 MB / 389 MB, free: 10.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.5701, allocations: 55.91 kB / 389.1 MB, free: 10.06 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00047/0.5706, allocations: 233.9 kB / 389.3 MB, free: 9.961 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001952/0.5708, allocations: 44.95 kB / 389.4 MB, free: 9.93 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001631/0.571, allocations: 186.4 kB / 389.5 MB, free: 9.805 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002716/0.5713, allocations: 198.7 kB / 389.7 MB, free: 9.688 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.664e-05/0.5714, allocations: 11.47 kB / 389.7 MB, free: 9.688 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5715, allocations: 345.1 kB / 390.1 MB, free: 9.375 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007984/0.5724, allocations: 198.3 kB / 390.3 MB, free: 9.375 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008435/0.5732, allocations: 245.3 kB / 390.5 MB, free: 9.352 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006473/0.5739, allocations: 167.3 kB / 390.7 MB, free: 9.344 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.5739, allocations: 0 / 390.7 MB, free: 9.344 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003334/0.5773, allocations: 0.6847 MB / 391.4 MB, free: 9.238 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.52e-05/0.5774, allocations: 3.906 kB / 391.4 MB, free: 9.238 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.62e-05/0.5774, allocations: 7.969 kB / 391.4 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001666/0.5791, allocations: 388 kB / 391.8 MB, free: 9.195 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.5802, allocations: 93.66 kB / 391.8 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002095/0.5823, allocations: 1.322 MB / 393.2 MB, free: 8.141 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.5838, allocations: 103.3 kB / 393.3 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001348/0.5839, allocations: 25.16 kB / 393.3 MB, free: 8.133 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (58): * Single equations (assignments): 54 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002908/0.5842, allocations: 135.6 kB / 393.4 MB, free: 8.023 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001868/0.5845, allocations: 43.05 kB / 393.5 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002938/0.5874, allocations: 0.6867 MB / 394.2 MB, free: 7.902 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.987e-05/0.5875, allocations: 11.7 kB / 394.2 MB, free: 7.898 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.5875, allocations: 3.953 kB / 394.2 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/0.5875, allocations: 7.453 kB / 394.2 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005953/0.5935, allocations: 1.366 MB / 395.5 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/0.5936, allocations: 3.906 kB / 395.5 MB, free: 7.477 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001107/0.5947, allocations: 85.73 kB / 395.6 MB, free: 7.473 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0016/0.5963, allocations: 360.2 kB / 396 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001488/0.5965, allocations: 22.8 kB / 396 MB, free: 7.438 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001997/0.5985, allocations: 1.303 MB / 397.3 MB, free: 6.383 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.809e-06/0.5986, allocations: 3.938 kB / 397.3 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004091/0.6027, allocations: 1.006 MB / 398.3 MB, free: 6.055 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005973/0.6034, allocations: 162.8 kB / 398.5 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002115/0.6036, allocations: 18.44 kB / 398.5 MB, free: 5.941 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.6048, allocations: 80.5 kB / 398.6 MB, free: 5.938 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004877/0.6053, allocations: 114.6 kB / 398.7 MB, free: 5.934 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/0.6055, allocations: 36.62 kB / 398.7 MB, free: 5.926 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003481/0.6059, allocations: 193.2 kB / 398.9 MB, free: 5.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.31e-07/0.6059, allocations: 0 / 398.9 MB, free: 5.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001217/0.6071, allocations: 131.5 kB / 399 MB, free: 5.836 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004635/0.6118, allocations: 1.937 MB / 401 MB, free: 20.64 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002226/0.6141, allocations: 0.5742 MB / 401.5 MB, free: 20.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.6141, allocations: 0 / 401.5 MB, free: 20.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.6154, allocations: 303.5 kB / 401.8 MB, free: 20.53 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00105/0.6165, allocations: 55.69 kB / 401.9 MB, free: 20.53 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00887/0.6254, allocations: 1.442 MB / 403.3 MB, free: 19.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006228/0.6261, allocations: 0.8318 MB / 404.2 MB, free: 19.23 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000426/0.6266, allocations: 33.91 kB / 404.2 MB, free: 19.23 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004022/0.627, allocations: 135.9 kB / 404.3 MB, free: 19.22 MB / 330.7 MB Notification: Performance of SimCode: time 1.513e-06/0.627, allocations: 0 / 404.3 MB, free: 19.22 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04909/0.6761, allocations: 11.92 MB / 416.3 MB, free: 14.86 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002833/0.6765, allocations: 176.4 kB / 416.4 MB, free: 14.64 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.995/3.671, allocations: 7.938 kB / 416.4 MB, free: 14.63 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat