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.857/1.857, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.244e-05/3.272e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1052, allocations: 48.71 MB / 321.8 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4255/0.5308, allocations: 74.94 MB / 396.8 MB, free: 14.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.5311, allocations: 70.81 kB / 396.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009696/0.5408, allocations: 2.329 MB / 399.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5408, allocations: 1.203 kB / 399.2 MB, free: 12.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.47e-05/0.5409, allocations: 4 kB / 399.2 MB, free: 12.45 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.0006151/0.5415, allocations: 403.2 kB / 399.6 MB, free: 12.02 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.5415, allocations: 12.03 kB / 399.6 MB, free: 12 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.196e-05/0.5416, allocations: 46.55 kB / 399.6 MB, free: 11.95 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.722e-05/0.5417, allocations: 15.81 kB / 399.7 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.5419, allocations: 206.7 kB / 399.9 MB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.542, allocations: 8 kB / 399.9 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.968e-05/0.542, allocations: 16 kB / 399.9 MB, free: 11.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/0.5424, allocations: 113.7 kB / 400 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.5424, allocations: 3.938 kB / 400 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.158e-05/0.5424, allocations: 5.75 kB / 400 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.5424, allocations: 7.984 kB / 400 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002142/0.5427, allocations: 75.98 kB / 400.1 MB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009039/0.5436, allocations: 472.1 kB / 400.5 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.5439, allocations: 110.6 kB / 400.7 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001329/0.544, allocations: 48.86 kB / 400.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.5441, allocations: 4 kB / 400.7 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.122e-05/0.5441, allocations: 34.5 kB / 400.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.004e-06/0.5441, allocations: 0 / 400.7 MB, free: 10.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.001766/0.5459, allocations: 0.748 MB / 401.5 MB, free: 9.891 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.533e-05/0.546, allocations: 59.39 kB / 401.5 MB, free: 9.82 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.5461, allocations: 128.2 kB / 401.7 MB, free: 9.691 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.5461, allocations: 25.7 kB / 401.7 MB, free: 9.66 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.694e-05/0.5463, allocations: 174.8 kB / 401.9 MB, free: 9.488 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.031e-05/0.5464, allocations: 78.92 kB / 401.9 MB, free: 9.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.157e-05/0.5464, allocations: 0 / 401.9 MB, free: 9.41 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.5465, allocations: 326.7 kB / 402.3 MB, free: 9.086 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.5467, allocations: 40.38 kB / 402.3 MB, free: 9.043 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001467/0.5468, allocations: 67.98 kB / 402.4 MB, free: 8.965 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001476/0.547, allocations: 43.98 kB / 402.4 MB, free: 8.922 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.547, allocations: 7.891 kB / 402.4 MB, free: 8.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005093/0.5475, allocations: 186.3 kB / 402.6 MB, free: 8.723 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.5476, allocations: 8 kB / 402.6 MB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.5476, allocations: 0 / 402.6 MB, free: 8.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002243/0.5478, allocations: 36.84 kB / 402.6 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.5481, allocations: 39.91 kB / 402.7 MB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001879/0.55, allocations: 1.558 MB / 404.2 MB, free: 6.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.5502, allocations: 11.97 kB / 404.2 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.792e-05/0.5502, allocations: 4 kB / 404.3 MB, free: 6.934 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.0001235/0.5503, allocations: 113 kB / 404.4 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.313e-05/0.5504, allocations: 19.77 kB / 404.4 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.572e-05/0.5505, allocations: 20.73 kB / 404.4 MB, free: 6.777 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.5505, allocations: 4 kB / 404.4 MB, free: 6.773 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.5505, allocations: 3.938 kB / 404.4 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.5505, allocations: 0 / 404.4 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.5516, allocations: 0.5389 MB / 405 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.676e-06/0.5516, allocations: 0 / 405 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003173/0.5519, allocations: 39.92 kB / 405 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001677/0.5521, allocations: 28.84 kB / 405 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.5522, allocations: 11.98 kB / 405 MB, free: 6.086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001454/0.5536, allocations: 1.363 MB / 406.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5536, allocations: 0 / 406.4 MB, free: 4.586 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006673/0.5543, allocations: 347.1 kB / 406.7 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.979e-05/0.5544, allocations: 96.94 kB / 406.8 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.068e-05/0.5545, allocations: 8 kB / 406.8 MB, free: 4.098 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.5546, allocations: 8 kB / 406.8 MB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.5547, allocations: 11.97 kB / 406.9 MB, free: 4.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.5547, allocations: 8.062 kB / 406.9 MB, free: 4.07 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001051/0.5549, allocations: 117.6 kB / 407 MB, free: 3.957 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5549, allocations: 0 / 407 MB, free: 3.957 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000489/0.5554, allocations: 40 kB / 407 MB, free: 3.918 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.0009989/0.5564, allocations: 0.9429 MB / 408 MB, free: 2.945 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000578/0.557, allocations: 245.5 kB / 408.2 MB, free: 2.695 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.557, allocations: 0 / 408.2 MB, free: 2.695 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003474/0.5573, allocations: 181.6 kB / 408.4 MB, free: 2.508 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003151/0.5577, allocations: 12.73 kB / 408.4 MB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.5588, allocations: 407.6 kB / 408.8 MB, free: 2.051 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003542/0.5592, allocations: 0.7285 MB / 409.5 MB, free: 1.293 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.5593, allocations: 43.42 kB / 409.6 MB, free: 1.25 MB / 330.7 MB Notification: Performance of SimCode: time 6.71e-07/0.5593, allocations: 0 / 409.6 MB, free: 1.25 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.608/3.168, allocations: 3.002 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