Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.179/2.179, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.27e-05/3.297e-05, allocations: 6.5 kB / 292.7 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 50.41 MB / 343.2 MB, free: 5.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4327/0.5412, allocations: 81.6 MB / 424.8 MB, free: 12.33 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002668/0.5415, allocations: 68.89 kB / 424.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.58, allocations: 7.796 MB / 432.6 MB, free: 5.566 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.58, allocations: 0 / 432.6 MB, free: 5.566 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.283e-05/0.5801, allocations: 12 kB / 432.6 MB, free: 5.555 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002175/0.5823, allocations: 0.6963 MB / 433.3 MB, free: 4.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.5823, allocations: 8.031 kB / 433.3 MB, free: 4.832 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002368/0.5826, allocations: 87.42 kB / 433.4 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.5827, allocations: 47.44 kB / 433.5 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005707/0.5833, allocations: 316.7 kB / 433.8 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/0.5834, allocations: 34.75 kB / 433.8 MB, free: 4.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/0.5835, allocations: 44.31 kB / 433.9 MB, free: 4.344 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.5846, allocations: 434.3 kB / 434.3 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.387e-05/0.5847, allocations: 7.859 kB / 434.3 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.182e-05/0.5848, allocations: 17.38 kB / 434.3 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.5848, allocations: 12 kB / 434.3 MB, free: 4.023 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001113/0.5859, allocations: 392.6 kB / 434.7 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003759/0.5897, allocations: 1.166 MB / 435.9 MB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.5909, allocations: 362 kB / 436.2 MB, free: 2.543 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007693/0.5918, allocations: 247.6 kB / 436.5 MB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.653e-05/0.5919, allocations: 4.438 kB / 436.5 MB, free: 2.387 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.413e-05/0.5919, allocations: 38 kB / 436.5 MB, free: 2.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.887e-06/0.5919, allocations: 0 / 436.5 MB, free: 2.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.004928/0.5969, allocations: 1.639 MB / 438.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.046e-05/0.597, allocations: 59.16 kB / 438.2 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.5974, allocations: 227.2 kB / 438.4 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001079/0.5975, allocations: 47.75 kB / 438.5 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000168/0.5977, allocations: 188.5 kB / 438.7 MB, free: 0.5 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002711/0.598, allocations: 200.3 kB / 438.8 MB, free: 340 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.533e-05/0.598, allocations: 8.938 kB / 438.9 MB, free: 340 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.5983, allocations: 353.7 kB / 439.2 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005777/0.5989, allocations: 201.4 kB / 439.4 MB, free: 15.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000615/0.5995, allocations: 239.5 kB / 439.6 MB, free: 15.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004965/0.6, allocations: 161.3 kB / 439.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6, allocations: 4 kB / 439.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002488/0.6025, allocations: 0.6839 MB / 440.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.792e-05/0.6026, allocations: 4 kB / 440.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-05/0.6026, allocations: 8.031 kB / 440.5 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00122/0.6039, allocations: 385.6 kB / 440.9 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007175/0.6046, allocations: 91.09 kB / 441 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.6063, allocations: 1.318 MB / 442.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.6074, allocations: 107.1 kB / 442.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.151e-05/0.6075, allocations: 23.92 kB / 442.4 MB, free: 13.33 MB / 362.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.0002353/0.6078, allocations: 142.2 kB / 442.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.6079, allocations: 43.52 kB / 442.6 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002235/0.6102, allocations: 0.6966 MB / 443.3 MB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.384e-05/0.6102, allocations: 8 kB / 443.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.6102, allocations: 0 / 443.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.6102, allocations: 3.984 kB / 443.3 MB, free: 12.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004197/0.6144, allocations: 1.351 MB / 444.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.746e-05/0.6145, allocations: 4 kB / 444.6 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007942/0.6153, allocations: 91.45 kB / 444.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00117/0.6165, allocations: 362.3 kB / 445.1 MB, free: 11.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001005/0.6166, allocations: 22.16 kB / 445.1 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001716/0.6184, allocations: 1.308 MB / 446.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.6184, allocations: 0 / 446.4 MB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.6211, allocations: 1.002 MB / 447.4 MB, free: 9.059 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003542/0.6215, allocations: 159 kB / 447.6 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.6217, allocations: 22.3 kB / 447.6 MB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000846/0.6225, allocations: 81.38 kB / 447.7 MB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003524/0.6229, allocations: 114.3 kB / 447.8 MB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.025e-05/0.623, allocations: 27.72 kB / 447.8 MB, free: 8.699 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003147/0.6233, allocations: 191.5 kB / 448 MB, free: 8.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6233, allocations: 0 / 448 MB, free: 8.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007844/0.6241, allocations: 138.9 kB / 448.1 MB, free: 8.422 MB / 362.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.003559/0.6277, allocations: 1.936 MB / 450.1 MB, free: 6.688 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.6297, allocations: 0.5606 MB / 450.6 MB, free: 6.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.6297, allocations: 0 / 450.6 MB, free: 6.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.6308, allocations: 293 kB / 450.9 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007976/0.6316, allocations: 66.33 kB / 451 MB, free: 6.027 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006812/0.6384, allocations: 1.445 MB / 452.4 MB, free: 4.637 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005555/0.639, allocations: 0.8396 MB / 453.3 MB, free: 3.77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002888/0.6393, allocations: 35.28 kB / 453.3 MB, free: 3.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002987/0.6396, allocations: 129.4 kB / 453.4 MB, free: 3.641 MB / 362.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6396, allocations: 0 / 453.4 MB, free: 3.641 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04795/0.6876, allocations: 11.92 MB / 465.3 MB, free: 7.84 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/0.688, allocations: 177.8 kB / 465.5 MB, free: 7.617 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.066/3.754, allocations: 4 kB / 465.5 MB, free: 7.613 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat