Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.77/1.77, allocations: 171.2 MB / 183.3 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.659e-05/4.679e-05, allocations: 4 kB / 225.1 MB, free: 2.129 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2691, allocations: 38.77 MB / 263.9 MB, free: 9.781 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1326/0.4018, allocations: 70.69 MB / 334.5 MB, free: 2.988 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003593/0.4022, allocations: 63.97 kB / 334.6 MB, free: 2.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04376/0.446, allocations: 7.399 MB / 342 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.446, allocations: 0 / 342 MB, free: 11.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.843e-05/0.4461, allocations: 8 kB / 342 MB, free: 11.5 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002063/0.4481, allocations: 0.7051 MB / 342.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.361e-05/0.4482, allocations: 8.031 kB / 342.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003224/0.4486, allocations: 91.44 kB / 342.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002893/0.4489, allocations: 51.34 kB / 342.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006073/0.4495, allocations: 302.3 kB / 343.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.354e-05/0.4496, allocations: 40.95 kB / 343.2 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/0.4497, allocations: 43.91 kB / 343.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.451, allocations: 458.3 kB / 343.7 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.681e-05/0.4511, allocations: 8 kB / 343.7 MB, free: 9.703 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.262e-05/0.4512, allocations: 19.94 kB / 343.7 MB, free: 9.684 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.4512, allocations: 8 kB / 343.7 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00125/0.4524, allocations: 439.8 kB / 344.2 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003585/0.456, allocations: 1.184 MB / 345.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.4572, allocations: 373.7 kB / 345.7 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000679/0.4579, allocations: 246.1 kB / 345.9 MB, free: 7.395 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.182e-05/0.458, allocations: 4.438 kB / 345.9 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.458, allocations: 39 kB / 346 MB, free: 7.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.116e-06/0.458, allocations: 0 / 346 MB, free: 7.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.005009/0.4631, allocations: 1.767 MB / 347.7 MB, free: 5.484 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.4631, allocations: 59.97 kB / 347.8 MB, free: 5.414 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004068/0.4636, allocations: 251.4 kB / 348.1 MB, free: 5.16 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.513e-05/0.4637, allocations: 41.7 kB / 348.1 MB, free: 5.113 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.4638, allocations: 181.3 kB / 348.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002352/0.4641, allocations: 197.3 kB / 348.5 MB, free: 4.734 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.4642, allocations: 12 kB / 348.5 MB, free: 4.723 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.4643, allocations: 354.7 kB / 348.8 MB, free: 4.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006446/0.465, allocations: 225.5 kB / 349 MB, free: 4.145 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006754/0.4657, allocations: 262.3 kB / 349.3 MB, free: 3.879 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/0.4662, allocations: 186.1 kB / 349.5 MB, free: 3.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4662, allocations: 0 / 349.5 MB, free: 3.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002859/0.4691, allocations: 0.8488 MB / 350.3 MB, free: 2.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.4692, allocations: 8 kB / 350.3 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.4692, allocations: 0 / 350.3 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.4707, allocations: 0.5169 MB / 350.9 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007188/0.4714, allocations: 95.89 kB / 350.9 MB, free: 2.215 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001836/0.4733, allocations: 1.382 MB / 352.3 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009736/0.4743, allocations: 108.1 kB / 352.4 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.719e-05/0.4744, allocations: 27.98 kB / 352.5 MB, free: 0.6484 MB / 298.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): 56 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.000211/0.4746, allocations: 136.9 kB / 352.6 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.4747, allocations: 39.53 kB / 352.6 MB, free: 480 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.4749, allocations: 55.52 kB / 352.7 MB, free: 428 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.475, allocations: 4 kB / 352.7 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.475, allocations: 3.953 kB / 352.7 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.202e-05/0.475, allocations: 11.98 kB / 352.7 MB, free: 408 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004648/0.4797, allocations: 1.524 MB / 354.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.4797, allocations: 0 / 354.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000743/0.4805, allocations: 83.89 kB / 354.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001375/0.4818, allocations: 0.4936 MB / 354.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.63e-05/0.4819, allocations: 19.98 kB / 354.8 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001612/0.4836, allocations: 1.354 MB / 356.2 MB, free: 12.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/0.4836, allocations: 8.031 kB / 356.2 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00292/0.4865, allocations: 1.131 MB / 357.3 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003354/0.4869, allocations: 164.6 kB / 357.5 MB, free: 11.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.487, allocations: 31.92 kB / 357.5 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00079/0.4878, allocations: 71.94 kB / 357.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000368/0.4882, allocations: 124.1 kB / 357.7 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.061e-05/0.4883, allocations: 23.97 kB / 357.7 MB, free: 11.15 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002914/0.4886, allocations: 195.1 kB / 357.9 MB, free: 10.96 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4886, allocations: 0 / 357.9 MB, free: 10.96 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006905/0.4893, allocations: 139.9 kB / 358.1 MB, free: 10.82 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.003532/0.4929, allocations: 2.048 MB / 360.1 MB, free: 8.707 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.4946, allocations: 0.5351 MB / 360.6 MB, free: 8.172 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.892e-06/0.4946, allocations: 4 kB / 360.6 MB, free: 8.168 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009696/0.4956, allocations: 306.3 kB / 360.9 MB, free: 7.867 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007447/0.4963, allocations: 69.23 kB / 361 MB, free: 7.805 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006463/0.5028, allocations: 1.451 MB / 362.5 MB, free: 6.293 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004663/0.5033, allocations: 0.8366 MB / 363.3 MB, free: 5.434 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002698/0.5036, allocations: 43.25 kB / 363.3 MB, free: 5.395 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.5039, allocations: 131.4 kB / 363.5 MB, free: 5.266 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5039, allocations: 0 / 363.5 MB, free: 5.266 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2791/0.783, allocations: 11.63 MB / 375.1 MB, free: 93.17 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001844/0.7833, allocations: 179.2 kB / 375.3 MB, free: 92.95 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.957/3.74, allocations: 0 / 375.3 MB, free: 92.95 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat