Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.056/2.056, allocations: 195 MB / 202.8 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.433e-05, allocations: 0 / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3562, allocations: 44.49 MB / 294.2 MB, free: 14.41 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1575/0.5138, allocations: 77.01 MB / 371.2 MB, free: 4.902 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.5142, allocations: 71.97 kB / 371.3 MB, free: 4.832 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05499/0.5692, allocations: 11.47 MB / 382.8 MB, free: 9.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.5692, allocations: 0 / 382.8 MB, free: 9.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.461e-05/0.5693, allocations: 12 kB / 382.8 MB, free: 9.328 MB / 330.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.00216/0.5714, allocations: 0.6971 MB / 383.5 MB, free: 8.586 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.357e-05/0.5715, allocations: 12.03 kB / 383.5 MB, free: 8.574 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000548/0.5721, allocations: 59.42 kB / 383.5 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007375/0.5728, allocations: 333.5 kB / 383.9 MB, free: 8.148 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.573, allocations: 84.17 kB / 384 MB, free: 8.055 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.5732, allocations: 27.91 kB / 384 MB, free: 8.027 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001477/0.5747, allocations: 0.5208 MB / 384.5 MB, free: 7.508 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001215/0.5759, allocations: 465.2 kB / 385 MB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.576, allocations: 0 / 385 MB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.119e-05/0.576, allocations: 0 / 385 MB, free: 7.039 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.747e-05/0.5761, allocations: 8 kB / 385 MB, free: 7.031 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003276/0.5794, allocations: 1.086 MB / 386.1 MB, free: 5.898 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.5806, allocations: 448.5 kB / 386.5 MB, free: 5.441 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00072/0.5813, allocations: 262.5 kB / 386.7 MB, free: 5.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.5814, allocations: 8.562 kB / 386.8 MB, free: 5.172 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.5815, allocations: 35.12 kB / 386.8 MB, free: 5.129 MB / 330.7 MB Notification: Performance of pre-optimization done (n=63): time 4.539e-06/0.5815, allocations: 4 kB / 386.8 MB, free: 5.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=71): time 0.006299/0.5878, allocations: 1.867 MB / 388.7 MB, free: 3.172 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/0.5879, allocations: 85.89 kB / 388.7 MB, free: 3.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004067/0.5884, allocations: 220.4 kB / 389 MB, free: 2.848 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001132/0.5885, allocations: 37.69 kB / 389 MB, free: 2.805 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.5887, allocations: 153.6 kB / 389.1 MB, free: 2.648 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003019/0.589, allocations: 224.7 kB / 389.4 MB, free: 2.426 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.282e-05/0.5891, allocations: 0 / 389.4 MB, free: 2.426 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.5892, allocations: 358.7 kB / 389.7 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006523/0.5899, allocations: 229.5 kB / 389.9 MB, free: 1.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006919/0.5906, allocations: 282.4 kB / 390.2 MB, free: 1.559 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008075/0.5914, allocations: 212.5 kB / 390.4 MB, free: 1.352 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.5915, allocations: 0 / 390.4 MB, free: 1.352 MB / 330.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002579/0.5941, allocations: 0.7513 MB / 391.2 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.5941, allocations: 4 kB / 391.2 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.5942, allocations: 4 kB / 391.2 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001637/0.5958, allocations: 426.7 kB / 391.6 MB, free: 168 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00079/0.5966, allocations: 83.88 kB / 391.7 MB, free: 84 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002115/0.5988, allocations: 1.06 MB / 392.7 MB, free: 15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/0.5997, allocations: 68.03 kB / 392.8 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.5999, allocations: 27.98 kB / 392.8 MB, free: 14.9 MB / 346.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): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0003051/0.6002, allocations: 124.6 kB / 393 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002393/0.6026, allocations: 0.6996 MB / 393.7 MB, free: 14.06 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.6028, allocations: 43.52 kB / 393.7 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002462/0.6053, allocations: 0.7667 MB / 394.5 MB, free: 13.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.018e-05/0.6053, allocations: 15.89 kB / 394.5 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.6053, allocations: 0 / 394.5 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.6054, allocations: 3.984 kB / 394.5 MB, free: 13.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004679/0.6101, allocations: 1.541 MB / 396 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.6101, allocations: 4 kB / 396 MB, free: 11.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000768/0.6109, allocations: 79.89 kB / 396.1 MB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001493/0.6124, allocations: 404.5 kB / 396.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.259e-05/0.6125, allocations: 11.98 kB / 396.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.6144, allocations: 1.013 MB / 397.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.6145, allocations: 0 / 397.5 MB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003332/0.6178, allocations: 1.147 MB / 398.7 MB, free: 8.898 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000409/0.6183, allocations: 180.6 kB / 398.8 MB, free: 8.703 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/0.6184, allocations: 8 kB / 398.9 MB, free: 8.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008086/0.6193, allocations: 60 kB / 398.9 MB, free: 8.637 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003408/0.6196, allocations: 104.3 kB / 399 MB, free: 8.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.801e-05/0.6197, allocations: 31.98 kB / 399 MB, free: 8.504 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002753/0.62, allocations: 176.5 kB / 399.2 MB, free: 8.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.62, allocations: 0 / 399.2 MB, free: 8.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008126/0.6209, allocations: 124 kB / 399.3 MB, free: 8.211 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (40): * Single equations (assignments): 39 * 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.003901/0.6248, allocations: 1.879 MB / 401.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001841/0.6267, allocations: 0.6091 MB / 401.8 MB, free: 5.68 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.6267, allocations: 0 / 401.8 MB, free: 5.68 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.6277, allocations: 329.9 kB / 402.2 MB, free: 5.355 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005966/0.6284, allocations: 28.12 kB / 402.2 MB, free: 5.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004375/0.6328, allocations: 1.032 MB / 403.2 MB, free: 4.258 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.6333, allocations: 0.8254 MB / 404 MB, free: 3.398 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0004249/0.6338, allocations: 63.27 kB / 404.1 MB, free: 3.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000399/0.6342, allocations: 131.4 kB / 404.2 MB, free: 3.211 MB / 346.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6342, allocations: 0 / 404.2 MB, free: 3.211 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06256/0.6968, allocations: 11.24 MB / 415.5 MB, free: 7.984 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003595/0.6972, allocations: 149.4 kB / 415.6 MB, free: 7.785 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.203/3.9, allocations: 0 / 415.6 MB, free: 7.785 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat