Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.359/2.359, allocations: 195 MB / 202.9 MB, free: 6.719 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.657e-05/2.676e-05, allocations: 3.469 kB / 249.8 MB, free: 5.285 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.162/0.1621, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5129/0.6751, allocations: 75.34 MB / 369.6 MB, free: 7.223 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.6754, allocations: 71.78 kB / 369.7 MB, free: 7.223 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03831/0.7137, allocations: 7.393 MB / 377.1 MB, free: 22.24 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.7138, allocations: 0 / 377.1 MB, free: 22.24 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.641e-05/0.7138, allocations: 11.78 kB / 377.1 MB, free: 22.24 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.002348/0.7162, allocations: 0.695 MB / 377.8 MB, free: 21.7 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.733e-05/0.7163, allocations: 11.59 kB / 377.8 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002279/0.7165, allocations: 50.64 kB / 377.9 MB, free: 21.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006247/0.7172, allocations: 305.6 kB / 378.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.674e-05/0.7172, allocations: 14.38 kB / 378.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.7174, allocations: 23.41 kB / 378.2 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001175/0.7186, allocations: 374 kB / 378.6 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.7196, allocations: 377 kB / 378.9 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.719e-05/0.7197, allocations: 11.78 kB / 378.9 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.377e-05/0.7198, allocations: 0 / 378.9 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.7198, allocations: 11.81 kB / 379 MB, free: 21.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004182/0.724, allocations: 1.071 MB / 380 MB, free: 20.68 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.7251, allocations: 350.1 kB / 380.4 MB, free: 20.63 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006074/0.7258, allocations: 223.6 kB / 380.6 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001082/0.7259, allocations: 4.312 kB / 380.6 MB, free: 20.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.73e-05/0.7259, allocations: 45.11 kB / 380.6 MB, free: 20.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 4.058e-06/0.726, allocations: 0 / 380.6 MB, free: 20.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.005627/0.7316, allocations: 1.567 MB / 382.2 MB, free: 19.82 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.7317, allocations: 63.69 kB / 382.3 MB, free: 19.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002982/0.732, allocations: 204.7 kB / 382.5 MB, free: 19.64 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001039/0.7321, allocations: 33.36 kB / 382.5 MB, free: 19.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.7323, allocations: 174.2 kB / 382.7 MB, free: 19.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.7325, allocations: 196.2 kB / 382.9 MB, free: 19.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.965e-05/0.7325, allocations: 4 kB / 382.9 MB, free: 19.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.7327, allocations: 347.3 kB / 383.2 MB, free: 19.01 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005326/0.7333, allocations: 187.5 kB / 383.4 MB, free: 19.01 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005645/0.7338, allocations: 232.9 kB / 383.6 MB, free: 18.97 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006814/0.7345, allocations: 163.7 kB / 383.8 MB, free: 18.94 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.7345, allocations: 0 / 383.8 MB, free: 18.94 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002668/0.7372, allocations: 0.6496 MB / 384.4 MB, free: 18.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.7373, allocations: 3.75 kB / 384.4 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/0.7373, allocations: 3.844 kB / 384.4 MB, free: 18.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.7386, allocations: 378.1 kB / 384.8 MB, free: 18.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007818/0.7394, allocations: 93.64 kB / 384.9 MB, free: 18.66 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002068/0.7415, allocations: 1.373 MB / 386.3 MB, free: 17.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/0.7426, allocations: 94.28 kB / 386.4 MB, free: 17.53 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001015/0.7427, allocations: 26.64 kB / 386.4 MB, free: 17.53 MB / 314.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): 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.0003355/0.7431, allocations: 120.7 kB / 386.5 MB, free: 17.41 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002074/0.7452, allocations: 0.5565 MB / 387.1 MB, free: 17.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.7453, allocations: 39 kB / 387.1 MB, free: 17.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002436/0.7478, allocations: 0.6486 MB / 387.7 MB, free: 17.03 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.039e-05/0.7478, allocations: 7.562 kB / 387.7 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.7478, allocations: 0 / 387.7 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.7478, allocations: 3.984 kB / 387.8 MB, free: 17.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004378/0.7522, allocations: 1.269 MB / 389 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.326e-06/0.7523, allocations: 0 / 389 MB, free: 16.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008777/0.7532, allocations: 82.05 kB / 389.1 MB, free: 16.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001161/0.7544, allocations: 367.7 kB / 389.5 MB, free: 16.31 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.7545, allocations: 23.16 kB / 389.5 MB, free: 16.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002079/0.7566, allocations: 1.336 MB / 390.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/0.7566, allocations: 0 / 390.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002831/0.7595, allocations: 0.9672 MB / 391.8 MB, free: 14.81 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004219/0.76, allocations: 161.8 kB / 391.9 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/0.7601, allocations: 7.375 kB / 392 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008913/0.7611, allocations: 81.3 kB / 392 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000387/0.7615, allocations: 117.2 kB / 392.1 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.112e-05/0.7616, allocations: 30.62 kB / 392.2 MB, free: 14.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002582/0.7618, allocations: 162.1 kB / 392.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7618, allocations: 0 / 392.3 MB, free: 14.48 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008257/0.7627, allocations: 107.4 kB / 392.4 MB, free: 14.48 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.003609/0.7663, allocations: 1.899 MB / 394.3 MB, free: 13.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.768, allocations: 0.5346 MB / 394.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.7681, allocations: 4.062 kB / 394.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009663/0.769, allocations: 288.3 kB / 395.2 MB, free: 13.05 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008739/0.7699, allocations: 56.83 kB / 395.2 MB, free: 13.03 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007106/0.7771, allocations: 1.387 MB / 396.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005381/0.7777, allocations: 0.8324 MB / 397.4 MB, free: 11.46 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00032/0.778, allocations: 34.5 kB / 397.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003035/0.7783, allocations: 124.4 kB / 397.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7783, allocations: 0 / 397.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0748/0.8531, allocations: 11.09 MB / 408.7 MB, free: 5.941 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003313/0.8535, allocations: 142.7 kB / 408.8 MB, free: 5.746 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 3.606/4.459, allocations: 0 / 408.8 MB, free: 5.746 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat