Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.844/1.844, allocations: 171.2 MB / 178.4 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.786e-05/2.803e-05, allocations: 4 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3402, allocations: 38.77 MB / 258.3 MB, free: 12.19 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1283/0.4685, allocations: 70.3 MB / 328.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002863/0.4689, allocations: 75.97 kB / 328.7 MB, free: 7.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0486/0.5175, allocations: 9.825 MB / 338.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.528e-06/0.5176, allocations: 4 kB / 338.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.581e-05/0.5176, allocations: 7.938 kB / 338.6 MB, free: 13.55 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001736/0.5194, allocations: 0.5919 MB / 339.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/0.5194, allocations: 8.031 kB / 339.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005626/0.52, allocations: 59.5 kB / 339.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006885/0.5207, allocations: 282.5 kB / 339.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001798/0.5209, allocations: 84.12 kB / 339.6 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.754e-05/0.521, allocations: 20 kB / 339.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001177/0.5222, allocations: 405.3 kB / 340 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009356/0.5232, allocations: 345.3 kB / 340.3 MB, free: 11.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.413e-05/0.5233, allocations: 7.844 kB / 340.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.587e-05/0.5234, allocations: 4 kB / 340.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.5234, allocations: 4 kB / 340.3 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002393/0.5258, allocations: 0.8288 MB / 341.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009096/0.5268, allocations: 330.2 kB / 341.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000465/0.5272, allocations: 186.2 kB / 341.7 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.418e-05/0.5273, allocations: 8.438 kB / 341.7 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/0.5274, allocations: 39 kB / 341.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.948e-06/0.5274, allocations: 0 / 341.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004452/0.5319, allocations: 1.44 MB / 343.2 MB, free: 8.676 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.982e-05/0.532, allocations: 85.67 kB / 343.2 MB, free: 8.574 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.5323, allocations: 185.8 kB / 343.4 MB, free: 8.383 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.511e-05/0.5324, allocations: 29.7 kB / 343.5 MB, free: 8.348 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.5325, allocations: 140.9 kB / 343.6 MB, free: 8.203 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002474/0.5328, allocations: 173.5 kB / 343.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.094e-05/0.5329, allocations: 0 / 343.8 MB, free: 8.031 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.5331, allocations: 338.8 kB / 344.1 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004532/0.5335, allocations: 157 kB / 344.2 MB, free: 7.535 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000483/0.534, allocations: 199.6 kB / 344.4 MB, free: 7.336 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005671/0.5346, allocations: 162 kB / 344.6 MB, free: 7.176 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.5346, allocations: 0 / 344.6 MB, free: 7.176 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001532/0.5362, allocations: 0.5119 MB / 345.1 MB, free: 6.652 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.5363, allocations: 7.594 kB / 345.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.5363, allocations: 0 / 345.1 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/0.5375, allocations: 242.8 kB / 345.4 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006567/0.5382, allocations: 71.94 kB / 345.4 MB, free: 6.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00567/0.5438, allocations: 2.6 MB / 348 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005944/0.5445, allocations: 32.06 kB / 348.1 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.27e-05/0.5446, allocations: 19.98 kB / 348.1 MB, free: 3.57 MB / 298.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" 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: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002502/0.5449, allocations: 108.9 kB / 348.2 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001681/0.5466, allocations: 0.5111 MB / 348.7 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000118/0.5467, allocations: 31.61 kB / 348.7 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.5469, allocations: 35.41 kB / 348.8 MB, free: 2.875 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.121e-05/0.5469, allocations: 8 kB / 348.8 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.5469, allocations: 0 / 348.8 MB, free: 2.867 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.5469, allocations: 3.984 kB / 348.8 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.5498, allocations: 1.101 MB / 349.9 MB, free: 1.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.5499, allocations: 0 / 349.9 MB, free: 1.715 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006642/0.5506, allocations: 75.83 kB / 349.9 MB, free: 1.641 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001028/0.5516, allocations: 224.7 kB / 350.2 MB, free: 1.418 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.06e-05/0.5517, allocations: 11.98 kB / 350.2 MB, free: 1.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005168/0.5569, allocations: 2.497 MB / 352.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.557, allocations: 0 / 352.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002116/0.5591, allocations: 0.8222 MB / 353.5 MB, free: 13.94 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/0.5594, allocations: 156.7 kB / 353.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.5596, allocations: 4 kB / 353.7 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005699/0.5601, allocations: 27.97 kB / 353.7 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000286/0.5604, allocations: 72.48 kB / 353.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.609e-05/0.5605, allocations: 19.98 kB / 353.8 MB, free: 13.65 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002197/0.5608, allocations: 156.3 kB / 353.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5608, allocations: 0 / 353.9 MB, free: 13.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009744/0.5617, allocations: 131.9 kB / 354.1 MB, free: 13.37 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002935/0.5647, allocations: 1.49 MB / 355.5 MB, free: 11.84 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.5664, allocations: 0.5957 MB / 356.1 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.5665, allocations: 4.062 kB / 356.1 MB, free: 11.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00103/0.5675, allocations: 417.6 kB / 356.6 MB, free: 10.8 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005006/0.568, allocations: 18.91 kB / 356.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002336/0.5704, allocations: 0.6556 MB / 357.2 MB, free: 10.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004862/0.5709, allocations: 0.8047 MB / 358 MB, free: 9.262 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000448/0.5714, allocations: 71.19 kB / 358.1 MB, free: 9.195 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003163/0.5717, allocations: 95.39 kB / 358.2 MB, free: 9.102 MB / 314.7 MB Notification: Performance of SimCode: time 1.183e-06/0.5717, allocations: 4 kB / 358.2 MB, free: 9.098 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06686/0.6386, allocations: 8.907 MB / 367.1 MB, free: 200 kB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.2169/0.8556, allocations: 148.9 kB / 367.2 MB, free: 100.9 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.914/3.769, allocations: 2.625 kB / 367.3 MB, free: 100.9 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat