Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.245/2.245, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.714e-05/3.722e-05, allocations: 4 kB / 292.2 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1256, allocations: 50.4 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4878/0.6134, allocations: 83.53 MB / 426.2 MB, free: 10.38 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.6138, allocations: 71.23 kB / 426.2 MB, free: 10.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06536/0.6792, allocations: 12.02 MB / 438.3 MB, free: 72 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6792, allocations: 0 / 438.3 MB, free: 72 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.623e-05/0.6793, allocations: 15.98 kB / 438.3 MB, free: 56 kB / 346.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.002318/0.6816, allocations: 0.696 MB / 439 MB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.517e-05/0.6817, allocations: 12.03 kB / 439 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002045/0.6819, allocations: 81.78 kB / 439.1 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005362/0.6824, allocations: 63.42 kB / 439.1 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007328/0.6832, allocations: 326.9 kB / 439.4 MB, free: 14.88 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001749/0.6834, allocations: 93.86 kB / 439.5 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.6835, allocations: 45.66 kB / 439.6 MB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.6849, allocations: 0.5034 MB / 440.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.915e-05/0.6849, allocations: 3.953 kB / 440.1 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000132/0.6851, allocations: 18.05 kB / 440.1 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.6851, allocations: 12 kB / 440.1 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.6866, allocations: 0.5349 MB / 440.6 MB, free: 14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003568/0.6902, allocations: 1.154 MB / 441.8 MB, free: 13.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.6917, allocations: 464.2 kB / 442.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008363/0.6926, allocations: 283.6 kB / 442.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.154e-05/0.6927, allocations: 12.55 kB / 442.5 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.6928, allocations: 34.81 kB / 442.6 MB, free: 12.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=63): time 3.887e-06/0.6928, allocations: 4 kB / 442.6 MB, free: 12.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=71): time 0.006131/0.6989, allocations: 1.984 MB / 444.6 MB, free: 10.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.946e-05/0.699, allocations: 89.89 kB / 444.7 MB, free: 10.79 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004979/0.6996, allocations: 249.8 kB / 444.9 MB, free: 10.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001771/0.6998, allocations: 44.33 kB / 444.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.6999, allocations: 157.3 kB / 445.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003006/0.7002, allocations: 232.6 kB / 445.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.557e-05/0.7003, allocations: 10.75 kB / 445.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.7005, allocations: 351.5 kB / 445.7 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007787/0.7013, allocations: 233.8 kB / 445.9 MB, free: 9.742 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008087/0.7021, allocations: 305.6 kB / 446.2 MB, free: 9.531 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006758/0.7028, allocations: 212.8 kB / 446.4 MB, free: 9.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.7028, allocations: 0 / 446.4 MB, free: 9.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002566/0.7054, allocations: 0.7934 MB / 447.2 MB, free: 8.816 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/0.7055, allocations: 12.05 kB / 447.2 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/0.7055, allocations: 4 kB / 447.2 MB, free: 8.801 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001729/0.7073, allocations: 427.5 kB / 447.6 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008057/0.7081, allocations: 87.12 kB / 447.7 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.7101, allocations: 1.01 MB / 448.7 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.7113, allocations: 78.28 kB / 448.8 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000135/0.7114, allocations: 35.11 kB / 448.8 MB, free: 7.453 MB / 362.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): 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.0002618/0.7117, allocations: 142.5 kB / 449 MB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.7119, allocations: 47.38 kB / 449 MB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002533/0.7144, allocations: 0.817 MB / 449.8 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.478e-05/0.7145, allocations: 11.95 kB / 449.9 MB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.7145, allocations: 0 / 449.9 MB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.186e-05/0.7145, allocations: 3.984 kB / 449.9 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004769/0.7193, allocations: 1.637 MB / 451.5 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.7194, allocations: 0 / 451.5 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007846/0.7202, allocations: 91.83 kB / 451.6 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001693/0.7219, allocations: 405.1 kB / 452 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.722, allocations: 23.97 kB / 452 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00178/0.7238, allocations: 0.9626 MB / 453 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.7238, allocations: 0 / 453 MB, free: 3.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003615/0.7274, allocations: 1.209 MB / 454.2 MB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/0.7279, allocations: 188.6 kB / 454.4 MB, free: 2.371 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001475/0.7281, allocations: 16 kB / 454.4 MB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009369/0.729, allocations: 71.94 kB / 454.4 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003284/0.7294, allocations: 100.4 kB / 454.5 MB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.7295, allocations: 31.97 kB / 454.6 MB, free: 2.156 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003581/0.7299, allocations: 207.1 kB / 454.8 MB, free: 1.953 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7299, allocations: 0 / 454.8 MB, free: 1.953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008078/0.7307, allocations: 147.9 kB / 454.9 MB, free: 1.809 MB / 362.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.004254/0.735, allocations: 1.939 MB / 456.9 MB, free: 15.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002188/0.7372, allocations: 0.6249 MB / 457.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.01e-06/0.7373, allocations: 0 / 457.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00119/0.7385, allocations: 349.8 kB / 457.8 MB, free: 14.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006123/0.7391, allocations: 45.11 kB / 457.9 MB, free: 14.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004678/0.7438, allocations: 1.075 MB / 459 MB, free: 13.69 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.7443, allocations: 0.829 MB / 459.8 MB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004607/0.7448, allocations: 63.28 kB / 459.8 MB, free: 12.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004236/0.7453, allocations: 131.4 kB / 460 MB, free: 12.64 MB / 378.7 MB Notification: Performance of SimCode: time 1.523e-06/0.7453, allocations: 0 / 460 MB, free: 12.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05908/0.8044, allocations: 12.14 MB / 472.1 MB, free: 0.6211 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003185/0.8048, allocations: 178.8 kB / 472.3 MB, free: 412 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.097/3.902, allocations: 0 / 472.3 MB, free: 412 kB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat