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.67/1.67, allocations: 171.2 MB / 183.3 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.544e-05/3.552e-05, allocations: 4 kB / 225.1 MB, free: 2.242 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2678/0.2679, allocations: 38.77 MB / 263.9 MB, free: 9.695 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.182/0.45, allocations: 72.53 MB / 336.4 MB, free: 1.055 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.4503, allocations: 67.97 kB / 336.5 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05913/0.5094, allocations: 11.88 MB / 348.4 MB, free: 5.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5095, allocations: 0 / 348.4 MB, free: 5.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.277e-05/0.5095, allocations: 16 kB / 348.4 MB, free: 5.055 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.002272/0.5118, allocations: 0.7166 MB / 349.1 MB, free: 4.289 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.5119, allocations: 12.03 kB / 349.1 MB, free: 4.277 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001767/0.5121, allocations: 78.52 kB / 349.2 MB, free: 4.191 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005146/0.5126, allocations: 63.42 kB / 349.2 MB, free: 4.129 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007308/0.5134, allocations: 337.5 kB / 349.6 MB, free: 3.758 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.5136, allocations: 100.1 kB / 349.7 MB, free: 3.648 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.5137, allocations: 40 kB / 349.7 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.5151, allocations: 0.5246 MB / 350.2 MB, free: 3.074 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.5152, allocations: 3.906 kB / 350.2 MB, free: 3.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-05/0.5153, allocations: 20 kB / 350.3 MB, free: 3.051 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.5153, allocations: 12 kB / 350.3 MB, free: 3.039 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001603/0.5169, allocations: 0.5754 MB / 350.8 MB, free: 2.461 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00379/0.5207, allocations: 1.227 MB / 352.1 MB, free: 1.176 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/0.5224, allocations: 0.4885 MB / 352.6 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008305/0.5232, allocations: 297.3 kB / 352.8 MB, free: 388 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.363e-05/0.5233, allocations: 8.562 kB / 352.9 MB, free: 380 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.5234, allocations: 43.12 kB / 352.9 MB, free: 328 kB / 298.7 MB Notification: Performance of pre-optimization done (n=61): time 3.296e-06/0.5234, allocations: 0 / 352.9 MB, free: 328 kB / 298.7 MB Notification: Performance of matching and sorting (n=69): time 0.006097/0.5295, allocations: 2.03 MB / 354.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.017e-05/0.5296, allocations: 85.61 kB / 355 MB, free: 14.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005293/0.5302, allocations: 275.4 kB / 355.3 MB, free: 13.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001325/0.5303, allocations: 45.69 kB / 355.3 MB, free: 13.77 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.5305, allocations: 153.6 kB / 355.5 MB, free: 13.61 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.5308, allocations: 236.7 kB / 355.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.818e-05/0.5309, allocations: 15.83 kB / 355.7 MB, free: 13.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.5311, allocations: 350.8 kB / 356.1 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007567/0.5318, allocations: 261.5 kB / 356.3 MB, free: 12.76 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000813/0.5327, allocations: 314.4 kB / 356.6 MB, free: 12.44 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007123/0.5334, allocations: 234 kB / 356.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.5334, allocations: 0 / 356.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002406/0.5358, allocations: 0.8373 MB / 357.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/0.5359, allocations: 8 kB / 357.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.5359, allocations: 0 / 357.7 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/0.5378, allocations: 0.5337 MB / 358.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007722/0.5386, allocations: 91.81 kB / 358.3 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.5407, allocations: 1.068 MB / 359.4 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001061/0.5418, allocations: 79.95 kB / 359.5 MB, free: 9.559 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.5419, allocations: 31.98 kB / 359.5 MB, free: 9.527 MB / 314.7 MB 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.0002511/0.5422, allocations: 137.6 kB / 359.6 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.5424, allocations: 43.44 kB / 359.7 MB, free: 9.344 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002042/0.5426, allocations: 63.77 kB / 359.7 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.59e-05/0.5426, allocations: 8 kB / 359.7 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.5426, allocations: 4 kB / 359.7 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.5426, allocations: 3.984 kB / 359.8 MB, free: 9.266 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005231/0.5479, allocations: 1.753 MB / 361.5 MB, free: 7.449 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.5479, allocations: 3.984 kB / 361.5 MB, free: 7.445 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007496/0.5487, allocations: 83.83 kB / 361.6 MB, free: 7.363 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/0.5506, allocations: 0.5087 MB / 362.1 MB, free: 6.852 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000134/0.5508, allocations: 31.97 kB / 362.1 MB, free: 6.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001968/0.5527, allocations: 1.025 MB / 363.2 MB, free: 5.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.5528, allocations: 0 / 363.2 MB, free: 5.77 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003739/0.5566, allocations: 1.257 MB / 364.4 MB, free: 4.484 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005139/0.5572, allocations: 188.6 kB / 364.6 MB, free: 4.281 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.5573, allocations: 23.89 kB / 364.6 MB, free: 4.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009266/0.5583, allocations: 72 kB / 364.7 MB, free: 4.188 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003644/0.5587, allocations: 108.3 kB / 364.8 MB, free: 4.082 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.5588, allocations: 31.98 kB / 364.8 MB, free: 4.051 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004063/0.5592, allocations: 215.1 kB / 365 MB, free: 3.844 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5592, allocations: 0 / 365 MB, free: 3.844 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009418/0.5602, allocations: 167.9 kB / 365.2 MB, free: 3.68 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.004228/0.5644, allocations: 1.992 MB / 367.2 MB, free: 1.645 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001932/0.5664, allocations: 0.6115 MB / 367.8 MB, free: 1.035 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5664, allocations: 4.125 kB / 367.8 MB, free: 1.031 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.5676, allocations: 345.9 kB / 368.1 MB, free: 0.6914 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005835/0.5682, allocations: 44.81 kB / 368.2 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2155/0.7837, allocations: 1.073 MB / 369.3 MB, free: 93.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.7842, allocations: 0.8297 MB / 370.1 MB, free: 92.77 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004801/0.7846, allocations: 64.25 kB / 370.2 MB, free: 92.77 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004436/0.7851, allocations: 130.5 kB / 370.3 MB, free: 92.76 MB / 314.7 MB Notification: Performance of SimCode: time 1.132e-06/0.7851, allocations: 0 / 370.3 MB, free: 92.76 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04751/0.8326, allocations: 12.04 MB / 382.3 MB, free: 88.58 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002789/0.833, allocations: 193.1 kB / 382.5 MB, free: 88.34 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.077/3.91, allocations: 3.938 kB / 382.5 MB, free: 88.34 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