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.9/1.9, allocations: 171.3 MB / 178.4 MB, free: 164 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.884e-05/2.897e-05, allocations: 0 / 219.6 MB, free: 6.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2881, allocations: 38.76 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1301/0.4183, allocations: 70.02 MB / 328.4 MB, free: 7.762 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004484/0.4188, allocations: 71.97 kB / 328.4 MB, free: 7.691 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05581/0.4746, allocations: 7.336 MB / 335.8 MB, free: 336 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4747, allocations: 0 / 335.8 MB, free: 336 kB / 282.7 MB Notification: Performance of Transformations before backend: time 4.254e-05/0.4748, allocations: 8 kB / 335.8 MB, free: 328 kB / 282.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.003187/0.478, allocations: 0.7013 MB / 336.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.849e-05/0.4781, allocations: 11.97 kB / 336.5 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003004/0.4784, allocations: 47.44 kB / 336.5 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000936/0.4793, allocations: 306.2 kB / 336.8 MB, free: 15.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.246e-05/0.4794, allocations: 24 kB / 336.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001792/0.4796, allocations: 27.95 kB / 336.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001873/0.4815, allocations: 417.4 kB / 337.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/0.4832, allocations: 390 kB / 337.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.413e-05/0.4833, allocations: 0 / 337.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.666e-05/0.4834, allocations: 7.938 kB / 337.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.447e-05/0.4834, allocations: 11.94 kB / 337.7 MB, free: 14.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005724/0.4892, allocations: 1.08 MB / 338.8 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/0.4908, allocations: 344 kB / 339.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/0.492, allocations: 237.3 kB / 339.3 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001088/0.4921, allocations: 8.438 kB / 339.4 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.373e-05/0.4922, allocations: 38.98 kB / 339.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 5.681e-06/0.4922, allocations: 0 / 339.4 MB, free: 12.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.008775/0.501, allocations: 1.658 MB / 341 MB, free: 10.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/0.5011, allocations: 55.97 kB / 341.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005287/0.5017, allocations: 218.3 kB / 341.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001916/0.5019, allocations: 33.7 kB / 341.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.5022, allocations: 189.2 kB / 341.5 MB, free: 10.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003858/0.5026, allocations: 185.4 kB / 341.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.605e-05/0.5027, allocations: 0 / 341.7 MB, free: 10.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002429/0.503, allocations: 350.8 kB / 342.1 MB, free: 9.762 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009035/0.5039, allocations: 209.5 kB / 342.3 MB, free: 9.555 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009506/0.5049, allocations: 252.7 kB / 342.5 MB, free: 9.305 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009999/0.5059, allocations: 180.4 kB / 342.7 MB, free: 9.133 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.5059, allocations: 0 / 342.7 MB, free: 9.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004268/0.5102, allocations: 0.8058 MB / 343.5 MB, free: 8.309 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.5103, allocations: 8 kB / 343.5 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.5103, allocations: 0 / 343.5 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002186/0.5125, allocations: 0.5052 MB / 344 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.5137, allocations: 103.8 kB / 344.1 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003189/0.5169, allocations: 1.436 MB / 345.5 MB, free: 6.199 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/0.5186, allocations: 88.03 kB / 345.6 MB, free: 6.113 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001977/0.5188, allocations: 27.98 kB / 345.7 MB, free: 6.086 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: 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: 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.0004738/0.5193, allocations: 123.1 kB / 345.8 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003788/0.5231, allocations: 0.6329 MB / 346.4 MB, free: 5.312 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000355/0.5236, allocations: 43.52 kB / 346.4 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002633/0.5238, allocations: 51.42 kB / 346.5 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.5239, allocations: 4 kB / 346.5 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/0.5239, allocations: 4 kB / 346.5 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.5239, allocations: 3.984 kB / 346.5 MB, free: 5.203 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007225/0.5312, allocations: 1.435 MB / 347.9 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/0.5313, allocations: 0 / 347.9 MB, free: 3.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001185/0.5325, allocations: 87.89 kB / 348 MB, free: 3.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00222/0.5347, allocations: 497.4 kB / 348.5 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001597/0.5349, allocations: 15.97 kB / 348.5 MB, free: 3.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003071/0.538, allocations: 1.394 MB / 349.9 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/0.5381, allocations: 0 / 349.9 MB, free: 1.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005014/0.5431, allocations: 1.092 MB / 351 MB, free: 0.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004164/0.5436, allocations: 156.7 kB / 351.2 MB, free: 336 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.5438, allocations: 20.11 kB / 351.2 MB, free: 316 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007979/0.5446, allocations: 71.94 kB / 351.3 MB, free: 244 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003611/0.5449, allocations: 116.1 kB / 351.4 MB, free: 128 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.268e-05/0.545, allocations: 27.97 kB / 351.4 MB, free: 100 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002739/0.5453, allocations: 170 kB / 351.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5453, allocations: 0 / 351.6 MB, free: 15.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007446/0.5461, allocations: 108 kB / 351.7 MB, free: 15.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.004186/0.5503, allocations: 2.016 MB / 353.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002708/0.5531, allocations: 0.5093 MB / 354.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.5532, allocations: 0 / 354.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001672/0.5548, allocations: 289.5 kB / 354.5 MB, free: 12.95 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001324/0.5562, allocations: 66.7 kB / 354.5 MB, free: 12.89 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008798/0.5651, allocations: 1.39 MB / 355.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005266/0.5656, allocations: 0.8286 MB / 356.8 MB, free: 10.59 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002948/0.566, allocations: 43.27 kB / 356.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003325/0.5663, allocations: 131.4 kB / 356.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5663, allocations: 0 / 356.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3722/0.9385, allocations: 10.74 MB / 367.7 MB, free: 94.85 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000216/0.9388, allocations: 135.2 kB / 367.8 MB, free: 94.66 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.897/3.836, allocations: 0 / 367.8 MB, free: 94.66 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