Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.386/2.386, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.621e-05/3.637e-05, allocations: 0 / 305 MB, free: 5.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.393/0.393, allocations: 54.86 MB / 359.9 MB, free: 2.328 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1488/0.5419, allocations: 81.3 MB / 441.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.5422, allocations: 75.95 kB / 441.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00986/0.5521, allocations: 2.322 MB / 443.6 MB, free: 13.2 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5522, allocations: 4 kB / 443.6 MB, free: 13.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.312e-05/0.5522, allocations: 0 / 443.6 MB, free: 13.2 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.000626/0.5528, allocations: 410.2 kB / 444 MB, free: 12.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.5529, allocations: 8.031 kB / 444 MB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.937e-05/0.553, allocations: 46.55 kB / 444 MB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.221e-05/0.553, allocations: 19.81 kB / 444 MB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.5533, allocations: 198.8 kB / 444.2 MB, free: 12.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.5533, allocations: 17.27 kB / 444.2 MB, free: 12.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.5534, allocations: 12 kB / 444.3 MB, free: 12.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003225/0.5537, allocations: 121.6 kB / 444.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.5538, allocations: 0 / 444.4 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.5538, allocations: 11.95 kB / 444.4 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.5538, allocations: 0 / 444.4 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002202/0.554, allocations: 64 kB / 444.5 MB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009405/0.555, allocations: 468.2 kB / 444.9 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000286/0.5553, allocations: 117.1 kB / 445 MB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001527/0.5555, allocations: 52.86 kB / 445.1 MB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.5555, allocations: 0 / 445.1 MB, free: 11.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.5555, allocations: 30.56 kB / 445.1 MB, free: 11.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 2.044e-06/0.5556, allocations: 8 kB / 445.1 MB, free: 11.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001837/0.5574, allocations: 0.7384 MB / 445.8 MB, free: 10.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.5575, allocations: 55.34 kB / 445.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.5576, allocations: 128.5 kB / 446 MB, free: 10.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.5577, allocations: 33.7 kB / 446.1 MB, free: 10.41 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.5578, allocations: 178.7 kB / 446.2 MB, free: 10.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.653e-05/0.5579, allocations: 67 kB / 446.3 MB, free: 10.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.482e-05/0.5579, allocations: 8 kB / 446.3 MB, free: 10.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.5581, allocations: 314.8 kB / 446.6 MB, free: 9.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.5582, allocations: 36.38 kB / 446.7 MB, free: 9.805 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001458/0.5583, allocations: 67.98 kB / 446.7 MB, free: 9.727 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.5585, allocations: 56.03 kB / 446.8 MB, free: 9.676 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.5585, allocations: 0 / 446.8 MB, free: 9.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005157/0.559, allocations: 186.2 kB / 447 MB, free: 9.484 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.5591, allocations: 9.719 kB / 447 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.5591, allocations: 0.875 kB / 447 MB, free: 9.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002561/0.5594, allocations: 36.84 kB / 447 MB, free: 9.438 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003021/0.5597, allocations: 44.48 kB / 447 MB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.5617, allocations: 1.552 MB / 448.6 MB, free: 7.707 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001474/0.5618, allocations: 12.02 kB / 448.6 MB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.977e-05/0.5619, allocations: 5.781 kB / 448.6 MB, free: 7.691 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.0001271/0.562, allocations: 124.8 kB / 448.7 MB, free: 7.562 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.241e-05/0.5621, allocations: 19.75 kB / 448.8 MB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.999e-05/0.5621, allocations: 12.75 kB / 448.8 MB, free: 7.531 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.5621, allocations: 4 kB / 448.8 MB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.5622, allocations: 4.062 kB / 448.8 MB, free: 7.523 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.5622, allocations: 3.984 kB / 448.8 MB, free: 7.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001086/0.5633, allocations: 0.5428 MB / 449.3 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.5633, allocations: 256 / 449.3 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003312/0.5636, allocations: 40.02 kB / 449.4 MB, free: 6.875 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001719/0.5638, allocations: 32.84 kB / 449.4 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.5639, allocations: 8.656 kB / 449.4 MB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001482/0.5654, allocations: 1.371 MB / 450.8 MB, free: 5.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.5654, allocations: 1.172 kB / 450.8 MB, free: 5.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006661/0.5661, allocations: 341.4 kB / 451.1 MB, free: 4.961 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.641e-05/0.5661, allocations: 89.05 kB / 451.2 MB, free: 4.855 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.5662, allocations: 4.125 kB / 451.2 MB, free: 4.852 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001569/0.5664, allocations: 8 kB / 451.2 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.309e-05/0.5664, allocations: 20.95 kB / 451.2 MB, free: 4.824 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.5665, allocations: 8 kB / 451.2 MB, free: 4.816 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001073/0.5666, allocations: 106.9 kB / 451.3 MB, free: 4.715 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5666, allocations: 0 / 451.3 MB, free: 4.715 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004907/0.5671, allocations: 40 kB / 451.4 MB, free: 4.676 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.00106/0.5682, allocations: 0.9457 MB / 452.3 MB, free: 3.695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006073/0.5688, allocations: 239.7 kB / 452.6 MB, free: 3.453 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5688, allocations: 0 / 452.6 MB, free: 3.453 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003505/0.5692, allocations: 173.7 kB / 452.7 MB, free: 3.273 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.5695, allocations: 17.39 kB / 452.7 MB, free: 3.258 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001183/0.5707, allocations: 403.6 kB / 453.1 MB, free: 2.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.5711, allocations: 0.7246 MB / 453.9 MB, free: 2.066 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.5713, allocations: 47.42 kB / 453.9 MB, free: 2.02 MB / 378.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5713, allocations: 0 / 453.9 MB, free: 2.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.617/3.189, allocations: 3.011 MB / 456.9 MB, free: 15.02 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat does not exist to compare? outputFormat=mat