Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.942/1.942, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.861e-05/1.873e-05, allocations: 0 / 267.6 MB, free: 5.328 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.429/0.5347, allocations: 74.52 MB / 390.8 MB, free: 1.754 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002204/0.5349, allocations: 72 kB / 390.9 MB, free: 1.719 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009412/0.5444, allocations: 2.313 MB / 393.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5444, allocations: 0 / 393.2 MB, free: 15.8 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.233e-05/0.5444, allocations: 0 / 393.2 MB, free: 15.8 MB / 330.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.0006274/0.5451, allocations: 402 kB / 393.6 MB, free: 15.37 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.862e-05/0.5451, allocations: 12.03 kB / 393.6 MB, free: 15.36 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.52e-05/0.5452, allocations: 16.69 kB / 393.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002611/0.5455, allocations: 206.3 kB / 393.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.644e-05/0.5455, allocations: 4 kB / 393.8 MB, free: 15.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.867e-05/0.5456, allocations: 11.31 kB / 393.8 MB, free: 15.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002173/0.5458, allocations: 63.05 kB / 393.9 MB, free: 15.06 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002803/0.5461, allocations: 96.48 kB / 394 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.5461, allocations: 0 / 394 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.5461, allocations: 3.984 kB / 394 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.5462, allocations: 4 kB / 394 MB, free: 14.97 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008648/0.547, allocations: 438.8 kB / 394.4 MB, free: 14.56 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.5473, allocations: 100.9 kB / 394.5 MB, free: 14.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.5474, allocations: 52.05 kB / 394.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.5475, allocations: 1.094 kB / 394.6 MB, free: 14.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.82e-05/0.5475, allocations: 34.5 kB / 394.6 MB, free: 14.4 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.625e-06/0.5475, allocations: 0 / 394.6 MB, free: 14.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.001711/0.5492, allocations: 0.7139 MB / 395.3 MB, free: 13.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.5493, allocations: 51.41 kB / 395.4 MB, free: 13.62 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001377/0.5495, allocations: 115.2 kB / 395.5 MB, free: 13.51 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.52e-05/0.5495, allocations: 25.7 kB / 395.5 MB, free: 13.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.5496, allocations: 186.1 kB / 395.7 MB, free: 13.3 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.266e-05/0.5497, allocations: 62.47 kB / 395.8 MB, free: 13.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/0.5497, allocations: 0 / 395.8 MB, free: 13.25 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5499, allocations: 322.5 kB / 396.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.55, allocations: 31.94 kB / 396.1 MB, free: 12.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.5502, allocations: 67.11 kB / 396.2 MB, free: 12.85 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001357/0.5503, allocations: 43.48 kB / 396.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.5503, allocations: 0 / 396.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004792/0.5508, allocations: 176 kB / 396.4 MB, free: 12.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.5508, allocations: 8.031 kB / 396.4 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.06e-05/0.5509, allocations: 4 kB / 396.4 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/0.5511, allocations: 36.59 kB / 396.4 MB, free: 12.63 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.5514, allocations: 35.92 kB / 396.5 MB, free: 12.6 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001831/0.5533, allocations: 1.501 MB / 398 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001433/0.5534, allocations: 11.92 kB / 398 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.884e-05/0.5535, allocations: 4 kB / 398 MB, free: 11.09 MB / 330.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.0001206/0.5536, allocations: 105 kB / 398.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004495/0.5541, allocations: 160.7 kB / 398.2 MB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.614e-05/0.5541, allocations: 11.86 kB / 398.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.261e-05/0.5542, allocations: 16.38 kB / 398.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.5542, allocations: 3.938 kB / 398.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.5542, allocations: 4 kB / 398.3 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.5542, allocations: 3.984 kB / 398.3 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009836/0.5552, allocations: 0.4888 MB / 398.8 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.5553, allocations: 0 / 398.8 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.5556, allocations: 43.91 kB / 398.8 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001648/0.5558, allocations: 24.72 kB / 398.8 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.5558, allocations: 7.688 kB / 398.8 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/0.5572, allocations: 1.308 MB / 400.2 MB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.5573, allocations: 4.031 kB / 400.2 MB, free: 8.938 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005959/0.5579, allocations: 323.7 kB / 400.5 MB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/0.558, allocations: 100.7 kB / 400.6 MB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.992e-05/0.5581, allocations: 3.984 kB / 400.6 MB, free: 8.535 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.5582, allocations: 4 kB / 400.6 MB, free: 8.531 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.266e-05/0.5583, allocations: 16.05 kB / 400.6 MB, free: 8.516 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.5583, allocations: 11.88 kB / 400.6 MB, free: 8.508 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.474e-05/0.5584, allocations: 91.08 kB / 400.7 MB, free: 8.422 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.485e-06/0.5584, allocations: 0 / 400.7 MB, free: 8.422 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004811/0.5589, allocations: 43.88 kB / 400.7 MB, free: 8.379 MB / 330.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.0009949/0.5599, allocations: 0.9154 MB / 401.7 MB, free: 7.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005827/0.5605, allocations: 231.3 kB / 401.9 MB, free: 7.285 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.5606, allocations: 0 / 401.9 MB, free: 7.285 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003381/0.5609, allocations: 179.6 kB / 402.1 MB, free: 7.117 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.5613, allocations: 15.52 kB / 402.1 MB, free: 7.105 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.5624, allocations: 388.3 kB / 402.5 MB, free: 6.707 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.5628, allocations: 0.7321 MB / 403.2 MB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001064/0.5629, allocations: 39.48 kB / 403.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5629, allocations: 0 / 403.2 MB, free: 5.934 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.507/3.07, allocations: 2.935 MB / 406.2 MB, free: 3.023 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat