Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.433/2.433, allocations: 235.1 MB / 242.2 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.476e-05/2.496e-05, allocations: 0 / 299.5 MB, free: 6.477 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4019, allocations: 54.85 MB / 354.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1524/0.5544, allocations: 80.64 MB / 435 MB, free: 1.566 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.5548, allocations: 67.95 kB / 435 MB, free: 1.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009643/0.5644, allocations: 2.312 MB / 437.4 MB, free: 15.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5645, allocations: 0 / 437.4 MB, free: 15.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.5645, allocations: 0 / 437.4 MB, free: 15.19 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0005989/0.5651, allocations: 415.7 kB / 437.8 MB, free: 14.74 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.5652, allocations: 8.031 kB / 437.8 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.463e-05/0.5652, allocations: 15.81 kB / 437.8 MB, free: 14.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.5655, allocations: 202.8 kB / 438 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.5655, allocations: 8 kB / 438 MB, free: 14.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.241e-05/0.5656, allocations: 8 kB / 438 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002503/0.5658, allocations: 60 kB / 438.1 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.5661, allocations: 105.6 kB / 438.2 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.5662, allocations: 0 / 438.2 MB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.5662, allocations: 3.953 kB / 438.2 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.5662, allocations: 4 kB / 438.2 MB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008435/0.5671, allocations: 424.8 kB / 438.6 MB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.5673, allocations: 98.56 kB / 438.7 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.5675, allocations: 48.84 kB / 438.7 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.5675, allocations: 4 kB / 438.7 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.5675, allocations: 42.5 kB / 438.8 MB, free: 13.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.014e-06/0.5675, allocations: 0 / 438.8 MB, free: 13.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001667/0.5692, allocations: 0.6958 MB / 439.5 MB, free: 12.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.5693, allocations: 55.41 kB / 439.5 MB, free: 12.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.5694, allocations: 118 kB / 439.6 MB, free: 12.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.5695, allocations: 25.7 kB / 439.7 MB, free: 12.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.36e-05/0.5695, allocations: 112.4 kB / 439.8 MB, free: 12.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.434e-05/0.5697, allocations: 66.95 kB / 439.8 MB, free: 12.44 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-06/0.5697, allocations: 0 / 439.8 MB, free: 12.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.5698, allocations: 318.8 kB / 440.1 MB, free: 12.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001092/0.57, allocations: 36.38 kB / 440.2 MB, free: 12.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/0.5701, allocations: 75.86 kB / 440.3 MB, free: 11.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.5703, allocations: 59.81 kB / 440.3 MB, free: 11.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.5703, allocations: 3.938 kB / 440.3 MB, free: 11.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004817/0.5708, allocations: 166.3 kB / 440.5 MB, free: 11.76 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.5708, allocations: 8 kB / 440.5 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.5708, allocations: 0 / 440.5 MB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002255/0.5711, allocations: 40.88 kB / 440.5 MB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.5714, allocations: 43.86 kB / 440.6 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001874/0.5733, allocations: 1.49 MB / 442.1 MB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.5735, allocations: 4.281 kB / 442.1 MB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.5735, allocations: 7.984 kB / 442.1 MB, free: 10.05 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001507/0.5737, allocations: 109 kB / 442.2 MB, free: 9.934 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004395/0.5741, allocations: 161 kB / 442.3 MB, free: 9.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.672e-05/0.5742, allocations: 15.97 kB / 442.4 MB, free: 9.754 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.372e-05/0.5742, allocations: 12.75 kB / 442.4 MB, free: 9.734 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.5743, allocations: 7.938 kB / 442.4 MB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.5743, allocations: 3.984 kB / 442.4 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.5743, allocations: 0 / 442.4 MB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.5753, allocations: 0.4978 MB / 442.9 MB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.5754, allocations: 3.984 kB / 442.9 MB, free: 9.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003114/0.5757, allocations: 35.92 kB / 442.9 MB, free: 9.137 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001734/0.5759, allocations: 28.84 kB / 442.9 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.5759, allocations: 0 / 442.9 MB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001502/0.5774, allocations: 1.315 MB / 444.3 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.5774, allocations: 0 / 444.3 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000659/0.5781, allocations: 327.1 kB / 444.6 MB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.862e-05/0.5782, allocations: 88.95 kB / 444.7 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.5782, allocations: 0 / 444.7 MB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.5784, allocations: 4 kB / 444.7 MB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.579e-05/0.5785, allocations: 15.97 kB / 444.7 MB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.5785, allocations: 8 kB / 444.7 MB, free: 7.195 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.505e-05/0.5786, allocations: 92.36 kB / 444.8 MB, free: 7.105 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5786, allocations: 8 kB / 444.8 MB, free: 7.098 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004965/0.5791, allocations: 32 kB / 444.8 MB, free: 7.066 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001034/0.5802, allocations: 0.9253 MB / 445.7 MB, free: 6.105 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006129/0.5808, allocations: 225.5 kB / 446 MB, free: 5.875 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.5808, allocations: 0 / 446 MB, free: 5.875 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003615/0.5812, allocations: 177.6 kB / 446.1 MB, free: 5.691 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000356/0.5815, allocations: 11.98 kB / 446.2 MB, free: 5.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001176/0.5827, allocations: 368.9 kB / 446.5 MB, free: 5.281 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003866/0.5831, allocations: 0.736 MB / 447.2 MB, free: 4.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.73e-05/0.5832, allocations: 9.203 kB / 447.3 MB, free: 4.512 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.5834, allocations: 43.42 kB / 447.3 MB, free: 4.469 MB / 378.7 MB Notification: Performance of SimCode: time 8.81e-07/0.5834, allocations: 0 / 447.3 MB, free: 4.469 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03992/0.6233, allocations: 2.47 MB / 449.8 MB, free: 2.008 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002636/0.6236, allocations: 147.1 kB / 449.9 MB, free: 1.816 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.515/3.138, allocations: 0 / 449.9 MB, free: 1.816 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat