Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.186/2.186, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.411e-05, allocations: 4 kB / 292.2 MB, free: 8.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1123, allocations: 50.41 MB / 342.6 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4822/0.5945, allocations: 81.34 MB / 424 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003671/0.595, allocations: 71.27 kB / 424 MB, free: 12.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06085/0.6559, allocations: 9.495 MB / 433.5 MB, free: 4.441 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.6559, allocations: 4 kB / 433.5 MB, free: 4.438 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.654e-05/0.656, allocations: 8 kB / 433.6 MB, free: 4.43 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.002093/0.6581, allocations: 0.565 MB / 434.1 MB, free: 3.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.277e-05/0.6582, allocations: 8.031 kB / 434.1 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002/0.6584, allocations: 64.03 kB / 434.2 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007072/0.6591, allocations: 51.42 kB / 434.2 MB, free: 3.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008112/0.66, allocations: 277.7 kB / 434.5 MB, free: 3.441 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002278/0.6602, allocations: 86.95 kB / 434.6 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001327/0.6604, allocations: 23.12 kB / 434.6 MB, free: 3.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.6615, allocations: 356.1 kB / 435 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.6616, allocations: 3.906 kB / 435 MB, free: 3.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.677e-05/0.6617, allocations: 14.58 kB / 435 MB, free: 3.062 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.6617, allocations: 8 kB / 435 MB, free: 3.055 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.6627, allocations: 375.2 kB / 435.4 MB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003194/0.666, allocations: 1.153 MB / 436.5 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009065/0.6669, allocations: 323.5 kB / 436.8 MB, free: 1.555 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004472/0.6674, allocations: 157.7 kB / 437 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.197e-05/0.6675, allocations: 4 kB / 437 MB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.6675, allocations: 41.61 kB / 437 MB, free: 1.406 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 3.477e-06/0.6676, allocations: 0 / 437 MB, free: 1.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.003974/0.6715, allocations: 1.315 MB / 438.3 MB, free: 280 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.478e-05/0.6717, allocations: 92.61 kB / 438.4 MB, free: 172 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003673/0.672, allocations: 186.5 kB / 438.6 MB, free: 4 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001226/0.6722, allocations: 37.27 kB / 438.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.6723, allocations: 138.1 kB / 438.8 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001969/0.6725, allocations: 144.4 kB / 438.9 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.159e-05/0.6726, allocations: 10.75 kB / 438.9 MB, free: 15.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.6728, allocations: 338.8 kB / 439.3 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004433/0.6732, allocations: 147.2 kB / 439.4 MB, free: 15.3 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004791/0.6737, allocations: 203.4 kB / 439.6 MB, free: 15.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004235/0.6742, allocations: 148.6 kB / 439.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.6742, allocations: 0 / 439.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001517/0.6757, allocations: 0.5008 MB / 440.3 MB, free: 14.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.124e-05/0.6758, allocations: 12 kB / 440.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.6758, allocations: 3.984 kB / 440.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.677, allocations: 235.1 kB / 440.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/0.6775, allocations: 58.95 kB / 440.6 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005944/0.6835, allocations: 2.623 MB / 443.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000559/0.6841, allocations: 38.94 kB / 443.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.453e-05/0.6842, allocations: 15.94 kB / 443.2 MB, free: 12.16 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001906/0.6844, allocations: 125.5 kB / 443.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.6845, allocations: 27.67 kB / 443.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001337/0.6847, allocations: 41.83 kB / 443.4 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.6847, allocations: 8 kB / 443.4 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.6847, allocations: 0 / 443.4 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.6847, allocations: 7.922 kB / 443.4 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002732/0.6875, allocations: 1.034 MB / 444.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.6876, allocations: 0 / 444.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004936/0.6881, allocations: 51.28 kB / 444.5 MB, free: 11.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.6891, allocations: 219.4 kB / 444.7 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-05/0.6893, allocations: 14.73 kB / 444.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007219/0.6965, allocations: 2.591 MB / 447.3 MB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/0.6966, allocations: 3.984 kB / 447.4 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002919/0.6995, allocations: 0.7291 MB / 448.1 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005457/0.7001, allocations: 142.5 kB / 448.2 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.7003, allocations: 11.06 kB / 448.2 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007235/0.7011, allocations: 27.16 kB / 448.3 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003613/0.7015, allocations: 70.89 kB / 448.3 MB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.699e-05/0.7016, allocations: 19.23 kB / 448.3 MB, free: 7.965 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003641/0.7019, allocations: 153.6 kB / 448.5 MB, free: 7.836 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.702, allocations: 4 kB / 448.5 MB, free: 7.832 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001637/0.7036, allocations: 154.2 kB / 448.6 MB, free: 7.699 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.003951/0.7076, allocations: 1.33 MB / 450 MB, free: 6.543 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00236/0.7101, allocations: 0.5496 MB / 450.5 MB, free: 5.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/0.7101, allocations: 0 / 450.5 MB, free: 5.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001539/0.7117, allocations: 392.2 kB / 450.9 MB, free: 5.586 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008622/0.7126, allocations: 34.67 kB / 450.9 MB, free: 5.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003494/0.7162, allocations: 0.6049 MB / 451.6 MB, free: 4.918 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007352/0.717, allocations: 0.7803 MB / 452.3 MB, free: 4.109 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005485/0.7175, allocations: 62.95 kB / 452.4 MB, free: 4.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003409/0.7179, allocations: 87.39 kB / 452.5 MB, free: 3.961 MB / 362.7 MB Notification: Performance of SimCode: time 1.743e-06/0.7179, allocations: 4 kB / 452.5 MB, free: 3.957 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04502/0.7629, allocations: 8.699 MB / 461.2 MB, free: 11.36 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002789/0.7633, allocations: 186.8 kB / 461.4 MB, free: 11.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.921/3.684, allocations: 0 / 461.4 MB, free: 11.14 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat