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.876/1.876, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.077e-05/4.092e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09989/0.09996, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3946/0.4946, allocations: 74.93 MB / 396.8 MB, free: 14.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.495, allocations: 71.95 kB / 396.8 MB, free: 14.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01324/0.5082, allocations: 2.325 MB / 399.2 MB, free: 12.51 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.886e-06/0.5083, allocations: 0 / 399.2 MB, free: 12.51 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.5083, allocations: 5.094 kB / 399.2 MB, free: 12.5 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.0007868/0.5091, allocations: 407.2 kB / 399.6 MB, free: 12.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.033e-05/0.5092, allocations: 12.03 kB / 399.6 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.907e-05/0.5093, allocations: 46.55 kB / 399.6 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.014e-05/0.5094, allocations: 15.81 kB / 399.6 MB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.5097, allocations: 202.7 kB / 399.8 MB, free: 11.74 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.67e-05/0.5098, allocations: 12 kB / 399.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.166e-05/0.5099, allocations: 12 kB / 399.9 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004697/0.5104, allocations: 113.7 kB / 400 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.5104, allocations: 0 / 400 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.76e-05/0.5105, allocations: 9.859 kB / 400 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.5105, allocations: 4 kB / 400 MB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003212/0.5108, allocations: 75.98 kB / 400.1 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.5121, allocations: 476.1 kB / 400.5 MB, free: 11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003961/0.5126, allocations: 110.6 kB / 400.6 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001964/0.5128, allocations: 52.84 kB / 400.7 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.5128, allocations: 4 kB / 400.7 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.5129, allocations: 38.5 kB / 400.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 4.027e-06/0.5129, allocations: 0 / 400.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.00257/0.5155, allocations: 0.748 MB / 401.5 MB, free: 9.934 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.5156, allocations: 51.41 kB / 401.5 MB, free: 9.871 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.5158, allocations: 128.2 kB / 401.6 MB, free: 9.742 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.5159, allocations: 29.7 kB / 401.7 MB, free: 9.707 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.516, allocations: 178.7 kB / 401.8 MB, free: 9.531 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.67e-05/0.5161, allocations: 66.95 kB / 401.9 MB, free: 9.465 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.007e-05/0.5162, allocations: 15.94 kB / 401.9 MB, free: 9.449 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.5164, allocations: 314.8 kB / 402.2 MB, free: 9.133 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.5166, allocations: 44.31 kB / 402.3 MB, free: 9.086 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.5168, allocations: 71.17 kB / 402.3 MB, free: 9.008 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002069/0.517, allocations: 47.92 kB / 402.4 MB, free: 8.961 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.517, allocations: 3.953 kB / 402.4 MB, free: 8.957 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0007407/0.5178, allocations: 190.3 kB / 402.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.5178, allocations: 4 kB / 402.6 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.5179, allocations: 0 / 402.6 MB, free: 8.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003323/0.5182, allocations: 44.83 kB / 402.6 MB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003784/0.5186, allocations: 35.98 kB / 402.7 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.5212, allocations: 1.561 MB / 404.2 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.5214, allocations: 4 kB / 404.2 MB, free: 6.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.639e-05/0.5215, allocations: 8 kB / 404.2 MB, free: 6.973 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.0001456/0.5217, allocations: 124.9 kB / 404.4 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.179e-05/0.5217, allocations: 11.86 kB / 404.4 MB, free: 6.832 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.358e-05/0.5218, allocations: 20.75 kB / 404.4 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.5219, allocations: 0 / 404.4 MB, free: 6.812 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.5219, allocations: 4 kB / 404.4 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.5219, allocations: 0 / 404.4 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.5235, allocations: 0.5389 MB / 404.9 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.5235, allocations: 0 / 404.9 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004338/0.524, allocations: 43.91 kB / 405 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002354/0.5242, allocations: 28.84 kB / 405 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.361e-05/0.5243, allocations: 0 / 405 MB, free: 6.133 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002062/0.5263, allocations: 1.378 MB / 406.4 MB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.5264, allocations: 144 / 406.4 MB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009648/0.5274, allocations: 343.1 kB / 406.7 MB, free: 4.254 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001486/0.5276, allocations: 100.9 kB / 406.8 MB, free: 4.137 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.5276, allocations: 8 kB / 406.8 MB, free: 4.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.5279, allocations: 8 kB / 406.8 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.686e-05/0.528, allocations: 12.05 kB / 406.8 MB, free: 4.109 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.528, allocations: 8 kB / 406.9 MB, free: 4.102 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001642/0.5282, allocations: 113.7 kB / 407 MB, free: 3.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5282, allocations: 0 / 407 MB, free: 3.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007665/0.529, allocations: 40 kB / 407 MB, free: 3.953 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.001485/0.5305, allocations: 0.9438 MB / 407.9 MB, free: 2.977 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000848/0.5314, allocations: 246.9 kB / 408.2 MB, free: 2.723 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.5314, allocations: 0 / 408.2 MB, free: 2.723 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005017/0.5319, allocations: 190.8 kB / 408.4 MB, free: 2.523 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004792/0.5324, allocations: 19.92 kB / 408.4 MB, free: 2.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001664/0.5341, allocations: 415.4 kB / 408.8 MB, free: 2.051 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.5346, allocations: 0.7246 MB / 409.5 MB, free: 1.297 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001497/0.5348, allocations: 43.42 kB / 409.6 MB, free: 1.254 MB / 330.7 MB Notification: Performance of SimCode: time 1.483e-06/0.5348, allocations: 0 / 409.6 MB, free: 1.254 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.796/3.331, allocations: 3.006 MB / 412.6 MB, free: 14.25 MB / 346.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