Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.187/2.187, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.192e-05/3.205e-05, allocations: 4 kB / 292.2 MB, free: 8.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 50.41 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4524/0.5586, allocations: 82.05 MB / 424.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.5589, allocations: 74.27 kB / 424.8 MB, free: 11.76 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04968/0.6086, allocations: 10.3 MB / 435.1 MB, free: 3.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.6087, allocations: 0 / 435.1 MB, free: 3.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.465e-05/0.6087, allocations: 8 kB / 435.1 MB, free: 3.02 MB / 346.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.001629/0.6104, allocations: 0.5858 MB / 435.7 MB, free: 2.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.718e-05/0.6105, allocations: 12.03 kB / 435.7 MB, free: 2.398 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001264/0.6106, allocations: 70.41 kB / 435.7 MB, free: 2.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004769/0.6111, allocations: 59.5 kB / 435.8 MB, free: 2.281 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005567/0.6117, allocations: 286 kB / 436.1 MB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.6119, allocations: 90.05 kB / 436.2 MB, free: 1.902 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.612, allocations: 30 kB / 436.2 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.613, allocations: 379.2 kB / 436.6 MB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.613, allocations: 4 kB / 436.6 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.836e-05/0.6131, allocations: 11.25 kB / 436.6 MB, free: 1.605 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.6131, allocations: 8 kB / 436.6 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001121/0.6143, allocations: 418.1 kB / 437 MB, free: 1.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002225/0.6165, allocations: 0.91 MB / 437.9 MB, free: 0.5195 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.6176, allocations: 341.1 kB / 438.2 MB, free: 296 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005277/0.6182, allocations: 199.2 kB / 438.4 MB, free: 172 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.212e-05/0.6183, allocations: 12.36 kB / 438.4 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.6183, allocations: 42 kB / 438.5 MB, free: 112 kB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.757e-06/0.6183, allocations: 0 / 438.5 MB, free: 112 kB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.004491/0.6228, allocations: 1.535 MB / 440 MB, free: 14.83 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.086e-05/0.6229, allocations: 89.62 kB / 440.1 MB, free: 14.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003578/0.6233, allocations: 211.3 kB / 440.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.426e-05/0.6234, allocations: 36.95 kB / 440.3 MB, free: 14.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.6235, allocations: 133.1 kB / 440.5 MB, free: 14.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.6237, allocations: 180.1 kB / 440.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.401e-05/0.6238, allocations: 6.688 kB / 440.7 MB, free: 14.24 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.624, allocations: 344.6 kB / 441 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004822/0.6245, allocations: 165.4 kB / 441.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005162/0.625, allocations: 209.7 kB / 441.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004744/0.6255, allocations: 167.5 kB / 441.5 MB, free: 13.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.6255, allocations: 4 kB / 441.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001478/0.627, allocations: 0.5429 MB / 442.1 MB, free: 13.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.627, allocations: 11.94 kB / 442.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.627, allocations: 0 / 442.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/0.6282, allocations: 246.5 kB / 442.3 MB, free: 12.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005999/0.6288, allocations: 67.19 kB / 442.4 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00564/0.6344, allocations: 2.676 MB / 445.1 MB, free: 10.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006257/0.6351, allocations: 38.16 kB / 445.1 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.465e-05/0.6352, allocations: 19.11 kB / 445.1 MB, free: 10.6 MB / 362.7 MB 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.0001964/0.6354, allocations: 135.5 kB / 445.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.6356, allocations: 35.58 kB / 445.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001343/0.6357, allocations: 50.77 kB / 445.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.6357, allocations: 4 kB / 445.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6357, allocations: 4 kB / 445.3 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.6358, allocations: 7.984 kB / 445.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002982/0.6387, allocations: 1.183 MB / 446.5 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.497e-06/0.6388, allocations: 0 / 446.5 MB, free: 9.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006547/0.6395, allocations: 79.42 kB / 446.6 MB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001027/0.6405, allocations: 218.3 kB / 446.8 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.8e-05/0.6406, allocations: 15.48 kB / 446.8 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005265/0.6458, allocations: 2.597 MB / 449.4 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6459, allocations: 0 / 449.4 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002214/0.6481, allocations: 0.8628 MB / 450.3 MB, free: 6.254 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002895/0.6484, allocations: 156.7 kB / 450.5 MB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.405e-05/0.6485, allocations: 12 kB / 450.5 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005906/0.6491, allocations: 40.03 kB / 450.5 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000267/0.6494, allocations: 76.48 kB / 450.6 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.054e-05/0.6495, allocations: 19.98 kB / 450.6 MB, free: 5.934 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002726/0.6498, allocations: 172.6 kB / 450.8 MB, free: 5.766 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6498, allocations: 0 / 450.8 MB, free: 5.766 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009429/0.6507, allocations: 160 kB / 450.9 MB, free: 5.609 MB / 362.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.003027/0.6538, allocations: 1.553 MB / 452.5 MB, free: 4.023 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001684/0.6555, allocations: 0.6157 MB / 453.1 MB, free: 3.398 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.6555, allocations: 0 / 453.1 MB, free: 3.398 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.6566, allocations: 429.6 kB / 453.5 MB, free: 2.965 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004529/0.657, allocations: 35.95 kB / 453.5 MB, free: 2.934 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002263/0.6593, allocations: 0.6936 MB / 454.2 MB, free: 2.203 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005074/0.6598, allocations: 0.8049 MB / 455 MB, free: 1.367 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003938/0.6602, allocations: 66.94 kB / 455.1 MB, free: 1.301 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003089/0.6606, allocations: 99.39 kB / 455.2 MB, free: 1.203 MB / 362.7 MB Notification: Performance of SimCode: time 1.103e-06/0.6606, allocations: 0 / 455.2 MB, free: 1.203 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04343/0.704, allocations: 9.65 MB / 464.9 MB, free: 7.66 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003072/0.7044, allocations: 182 kB / 465 MB, free: 7.438 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.011/3.715, allocations: 4.062 kB / 465 MB, free: 7.434 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat