Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.806/1.806, allocations: 171.3 MB / 178.4 MB, free: 156 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.247e-05/2.273e-05, allocations: 0 / 219.6 MB, free: 6.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2678, allocations: 38.76 MB / 258.3 MB, free: 12.3 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.3995, allocations: 71.87 MB / 330.2 MB, free: 5.996 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.3998, allocations: 67.97 kB / 330.3 MB, free: 5.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05831/0.4582, allocations: 11.8 MB / 342.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4582, allocations: 0 / 342.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.367e-05/0.4583, allocations: 8 kB / 342.1 MB, free: 10.09 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.002213/0.4605, allocations: 0.7323 MB / 342.8 MB, free: 9.312 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.508e-05/0.4606, allocations: 8.031 kB / 342.8 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005583/0.4611, allocations: 63.42 kB / 342.9 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007477/0.4619, allocations: 329.3 kB / 343.2 MB, free: 8.879 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.4621, allocations: 80.17 kB / 343.3 MB, free: 8.785 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.4622, allocations: 31.95 kB / 343.3 MB, free: 8.754 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001604/0.4639, allocations: 0.5715 MB / 343.9 MB, free: 8.184 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.4652, allocations: 481.2 kB / 344.4 MB, free: 7.699 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.589e-05/0.4652, allocations: 7.891 kB / 344.4 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.285e-05/0.4653, allocations: 0 / 344.4 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.4654, allocations: 12 kB / 344.4 MB, free: 7.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003597/0.469, allocations: 1.141 MB / 345.5 MB, free: 6.496 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001431/0.4705, allocations: 480.3 kB / 346 MB, free: 6.012 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007133/0.4712, allocations: 275.6 kB / 346.3 MB, free: 5.738 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.325e-05/0.4713, allocations: 12.5 kB / 346.3 MB, free: 5.727 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.4714, allocations: 43.08 kB / 346.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.126e-06/0.4714, allocations: 0 / 346.3 MB, free: 5.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.005993/0.4774, allocations: 1.912 MB / 348.2 MB, free: 3.676 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.4775, allocations: 85.67 kB / 348.3 MB, free: 3.574 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004022/0.4779, allocations: 234 kB / 348.5 MB, free: 3.332 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.949e-05/0.478, allocations: 37.69 kB / 348.6 MB, free: 3.289 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.4782, allocations: 161.5 kB / 348.7 MB, free: 3.125 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002662/0.4784, allocations: 220.8 kB / 349 MB, free: 2.906 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.877e-05/0.4785, allocations: 0 / 349 MB, free: 2.906 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.4787, allocations: 346.8 kB / 349.3 MB, free: 2.559 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/0.4794, allocations: 253.5 kB / 349.5 MB, free: 2.312 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000713/0.4801, allocations: 306.3 kB / 349.8 MB, free: 2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008172/0.4809, allocations: 236.5 kB / 350.1 MB, free: 1.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.481, allocations: 0 / 350.1 MB, free: 1.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002346/0.4833, allocations: 0.7786 MB / 350.8 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.4834, allocations: 11.59 kB / 350.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.4834, allocations: 0 / 350.9 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001825/0.4852, allocations: 0.526 MB / 351.4 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007851/0.486, allocations: 87.88 kB / 351.5 MB, free: 368 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002351/0.4884, allocations: 1.138 MB / 352.6 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009859/0.4894, allocations: 68.03 kB / 352.7 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.4896, allocations: 31.98 kB / 352.7 MB, free: 15.1 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003268/0.4899, allocations: 124 kB / 352.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002686/0.4926, allocations: 0.7639 MB / 353.6 MB, free: 14.21 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001833/0.4929, allocations: 43.53 kB / 353.6 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002143/0.4931, allocations: 52.05 kB / 353.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.4931, allocations: 8 kB / 353.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4931, allocations: 0 / 353.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.4931, allocations: 4.047 kB / 353.7 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005086/0.4982, allocations: 1.645 MB / 355.3 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.4983, allocations: 0 / 355.3 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008227/0.4991, allocations: 91.86 kB / 355.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001832/0.501, allocations: 0.5048 MB / 355.9 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001254/0.5011, allocations: 11.92 kB / 355.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/0.5033, allocations: 1.083 MB / 357 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.254e-06/0.5034, allocations: 0 / 357 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003669/0.507, allocations: 1.238 MB / 358.3 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004906/0.5076, allocations: 184.6 kB / 358.4 MB, free: 9.219 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.5078, allocations: 11.95 kB / 358.5 MB, free: 9.207 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008281/0.5086, allocations: 64 kB / 358.5 MB, free: 9.145 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003447/0.509, allocations: 100.4 kB / 358.6 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.834e-05/0.5091, allocations: 31.91 kB / 358.7 MB, free: 9.012 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003076/0.5094, allocations: 186 kB / 358.8 MB, free: 8.832 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.5094, allocations: 0 / 358.8 MB, free: 8.832 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001321/0.5107, allocations: 144 kB / 359 MB, free: 8.691 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.005132/0.5159, allocations: 1.945 MB / 360.9 MB, free: 6.711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001874/0.5178, allocations: 0.588 MB / 361.5 MB, free: 6.121 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5179, allocations: 0 / 361.5 MB, free: 6.121 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.519, allocations: 338.1 kB / 361.8 MB, free: 5.793 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005895/0.5196, allocations: 32.48 kB / 361.9 MB, free: 5.762 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004474/0.5241, allocations: 1.028 MB / 362.9 MB, free: 4.691 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000497/0.5246, allocations: 0.8288 MB / 363.7 MB, free: 3.836 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004487/0.5251, allocations: 59.27 kB / 363.8 MB, free: 3.777 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000415/0.5255, allocations: 139.4 kB / 363.9 MB, free: 3.641 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.5255, allocations: 0 / 363.9 MB, free: 3.641 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2803/0.8058, allocations: 11.16 MB / 375.1 MB, free: 94.82 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002815/0.8062, allocations: 139.2 kB / 375.2 MB, free: 94.63 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.037/3.844, allocations: 4 kB / 375.2 MB, free: 94.63 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat