Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.952/1.952, allocations: 194.9 MB / 208 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.026e-05/4.043e-05, allocations: 4 kB / 255.4 MB, free: 2.621 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09709, allocations: 44.51 MB / 300 MB, free: 6.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4245/0.5216, allocations: 76.29 MB / 376.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.522, allocations: 70.77 kB / 376.3 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04964/0.5717, allocations: 9.893 MB / 386.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.5717, allocations: 4 kB / 386.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.665e-05/0.5718, allocations: 7.781 kB / 386.2 MB, free: 11.62 MB / 314.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.001726/0.5735, allocations: 0.6005 MB / 386.8 MB, free: 11.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.5736, allocations: 7.625 kB / 386.8 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00018/0.5738, allocations: 67.48 kB / 386.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005296/0.5743, allocations: 57.86 kB / 386.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006607/0.575, allocations: 286.8 kB / 387.2 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.5752, allocations: 90.69 kB / 387.3 MB, free: 10.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001243/0.5754, allocations: 37.94 kB / 387.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009684/0.5763, allocations: 382.1 kB / 387.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.863e-05/0.5764, allocations: 0 / 387.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.166e-05/0.5765, allocations: 16.67 kB / 387.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.5765, allocations: 3.875 kB / 387.7 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.5776, allocations: 423.8 kB / 388.2 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.5801, allocations: 0.8979 MB / 389.1 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.5812, allocations: 356.7 kB / 389.4 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005512/0.5818, allocations: 205.8 kB / 389.6 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.107e-05/0.5819, allocations: 8.203 kB / 389.6 MB, free: 10.35 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.166e-05/0.5819, allocations: 38.09 kB / 389.7 MB, free: 10.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.427e-06/0.582, allocations: 0 / 389.7 MB, free: 10.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.004512/0.5865, allocations: 1.542 MB / 391.2 MB, free: 9.738 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.5866, allocations: 85.2 kB / 391.3 MB, free: 9.645 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.587, allocations: 212.7 kB / 391.5 MB, free: 9.547 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001389/0.5872, allocations: 42.59 kB / 391.5 MB, free: 9.512 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.467e-05/0.5873, allocations: 135.6 kB / 391.7 MB, free: 9.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002235/0.5875, allocations: 181.2 kB / 391.8 MB, free: 9.297 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-05/0.5876, allocations: 6.875 kB / 391.8 MB, free: 9.297 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.445e-05/0.5877, allocations: 344.9 kB / 392.2 MB, free: 8.98 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004768/0.5881, allocations: 164.5 kB / 392.3 MB, free: 8.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005106/0.5887, allocations: 212.1 kB / 392.5 MB, free: 8.953 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004627/0.5892, allocations: 169.2 kB / 392.7 MB, free: 8.941 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.5892, allocations: 0 / 392.7 MB, free: 8.941 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00149/0.5907, allocations: 0.5501 MB / 393.3 MB, free: 8.871 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.92e-05/0.5908, allocations: 3.781 kB / 393.3 MB, free: 8.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/0.5908, allocations: 7.812 kB / 393.3 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001173/0.592, allocations: 245.5 kB / 393.5 MB, free: 8.848 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006568/0.5927, allocations: 67.72 kB / 393.6 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005584/0.5983, allocations: 2.675 MB / 396.3 MB, free: 7.434 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007036/0.5991, allocations: 40.61 kB / 396.3 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/0.5992, allocations: 18.55 kB / 396.3 MB, free: 7.43 MB / 314.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.0002078/0.5994, allocations: 124.9 kB / 396.4 MB, free: 7.324 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/0.5996, allocations: 34.97 kB / 396.5 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.5997, allocations: 51.89 kB / 396.5 MB, free: 7.297 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.5998, allocations: 11.75 kB / 396.5 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.5998, allocations: 2.766 kB / 396.5 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.5998, allocations: 6.859 kB / 396.5 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003028/0.6028, allocations: 1.187 MB / 397.7 MB, free: 6.941 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.6029, allocations: 3.875 kB / 397.7 MB, free: 6.941 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007209/0.6036, allocations: 73.72 kB / 397.8 MB, free: 6.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.6047, allocations: 227.7 kB / 398 MB, free: 6.914 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.6049, allocations: 15.55 kB / 398 MB, free: 6.914 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005331/0.6102, allocations: 2.581 MB / 400.6 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.6103, allocations: 0 / 400.6 MB, free: 21.5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.6125, allocations: 0.8623 MB / 401.5 MB, free: 21.3 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004241/0.613, allocations: 149.8 kB / 401.6 MB, free: 21.19 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001109/0.6131, allocations: 18 kB / 401.6 MB, free: 21.19 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006203/0.6137, allocations: 38.3 kB / 401.7 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002916/0.614, allocations: 80.38 kB / 401.8 MB, free: 21.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-05/0.6141, allocations: 21.58 kB / 401.8 MB, free: 21.18 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002796/0.6144, allocations: 166.5 kB / 401.9 MB, free: 21.1 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.6144, allocations: 3.938 kB / 401.9 MB, free: 21.1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001034/0.6155, allocations: 164 kB / 402.1 MB, free: 21.09 MB / 330.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.002966/0.6185, allocations: 1.557 MB / 403.7 MB, free: 20.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00177/0.6203, allocations: 0.6242 MB / 404.3 MB, free: 20.11 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.6204, allocations: 0 / 404.3 MB, free: 20.11 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001137/0.6215, allocations: 445.1 kB / 404.7 MB, free: 19.96 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005874/0.6221, allocations: 27.45 kB / 404.8 MB, free: 19.96 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.6248, allocations: 0.6992 MB / 405.5 MB, free: 19.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.6253, allocations: 0.7984 MB / 406.2 MB, free: 18.95 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004941/0.6258, allocations: 70.98 kB / 406.3 MB, free: 18.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003211/0.6261, allocations: 98.97 kB / 406.4 MB, free: 18.93 MB / 330.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6262, allocations: 0 / 406.4 MB, free: 18.93 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04873/0.6749, allocations: 9.686 MB / 416.1 MB, free: 15.41 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002582/0.6752, allocations: 182.8 kB / 416.3 MB, free: 15.19 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.091/3.766, allocations: 0 / 416.3 MB, free: 15.19 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat