Running command: "" <> buildModelFMU(ModelicaTest.Rotational.InitializationConversion.Inertia,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Rotational_InitializationConversion_Inertia",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.933/1.933, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.702e-05/3.722e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1004, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3873/0.4877, allocations: 74.61 MB / 396.4 MB, free: 15.23 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.488, allocations: 62.78 kB / 396.5 MB, free: 15.17 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03747/0.5255, allocations: 6.873 MB / 403.4 MB, free: 8.297 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5256, allocations: 0 / 403.4 MB, free: 8.297 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.079e-05/0.5256, allocations: 12 kB / 403.4 MB, free: 8.285 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001628/0.5273, allocations: 0.6036 MB / 404 MB, free: 7.637 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.029e-05/0.5274, allocations: 12.03 kB / 404 MB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001797/0.5276, allocations: 86.52 kB / 404.1 MB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.5278, allocations: 51.44 kB / 404.1 MB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003071/0.5281, allocations: 222.7 kB / 404.3 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.969e-05/0.5282, allocations: 37 kB / 404.4 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.5283, allocations: 53.77 kB / 404.4 MB, free: 7.137 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.5297, allocations: 442.2 kB / 404.9 MB, free: 6.672 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.365e-05/0.5298, allocations: 11.91 kB / 404.9 MB, free: 6.66 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.653e-05/0.5299, allocations: 20 kB / 404.9 MB, free: 6.641 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.53, allocations: 12 kB / 404.9 MB, free: 6.629 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009666/0.5309, allocations: 251.8 kB / 405.2 MB, free: 6.383 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.5356, allocations: 1.699 MB / 406.9 MB, free: 4.602 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.5368, allocations: 411.3 kB / 407.3 MB, free: 4.117 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004339/0.5372, allocations: 144.3 kB / 407.4 MB, free: 3.949 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.213e-05/0.5373, allocations: 8 kB / 407.4 MB, free: 3.941 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.02e-05/0.5374, allocations: 58.42 kB / 407.5 MB, free: 3.875 MB / 330.7 MB Notification: Performance of pre-optimization done (n=42): time 7.785e-06/0.5374, allocations: 3.984 kB / 407.5 MB, free: 3.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=42): time 0.001275/0.5387, allocations: 273 kB / 407.7 MB, free: 3.598 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001994/0.5389, allocations: 265 kB / 408 MB, free: 3.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004871/0.5394, allocations: 227.1 kB / 408.2 MB, free: 3.055 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.5395, allocations: 29.7 kB / 408.2 MB, free: 3.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002809/0.5398, allocations: 302 kB / 408.5 MB, free: 2.723 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.54, allocations: 185.5 kB / 408.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.041e-05/0.5401, allocations: 12 kB / 408.7 MB, free: 2.527 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.5403, allocations: 334.8 kB / 409.1 MB, free: 2.191 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004547/0.5408, allocations: 113.6 kB / 409.2 MB, free: 2.082 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007951/0.5416, allocations: 411.4 kB / 409.6 MB, free: 1.543 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006444/0.5423, allocations: 188.2 kB / 409.8 MB, free: 1.359 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.446e-05/0.5423, allocations: 4 kB / 409.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001805/0.5441, allocations: 0.5366 MB / 410.3 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.5442, allocations: 8 kB / 410.3 MB, free: 0.8047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.98e-05/0.5442, allocations: 15.95 kB / 410.3 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.01e-05/0.5443, allocations: 16 kB / 410.3 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/0.5457, allocations: 179.7 kB / 410.5 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.246e-05/0.5458, allocations: 19.94 kB / 410.5 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006855/0.5465, allocations: 59.38 kB / 410.6 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.561e-05/0.5466, allocations: 32 kB / 410.6 MB, free: 500 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000239/0.5468, allocations: 156.7 kB / 410.8 MB, free: 336 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003843/0.5472, allocations: 43.52 kB / 410.8 MB, free: 292 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001869/0.5474, allocations: 41.83 kB / 410.9 MB, free: 248 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/0.5475, allocations: 7.953 kB / 410.9 MB, free: 240 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.5475, allocations: 4 kB / 410.9 MB, free: 236 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.5475, allocations: 4 kB / 410.9 MB, free: 232 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00227/0.5498, allocations: 409.2 kB / 411.3 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.5498, allocations: 7.938 kB / 411.3 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/0.5515, allocations: 123.9 kB / 411.4 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.732e-05/0.5516, allocations: 4 kB / 411.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.235e-05/0.5516, allocations: 16 kB / 411.4 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.591e-05/0.5517, allocations: 7.984 kB / 411.4 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.156e-05/0.5517, allocations: 7.953 kB / 411.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.5535, allocations: 1.158 MB / 412.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.5537, allocations: 116.6 kB / 412.7 MB, free: 14.24 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001105/0.5538, allocations: 16 kB / 412.7 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009813/0.5548, allocations: 4.125 kB / 412.7 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.634e-05/0.5549, allocations: 39.83 kB / 412.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.663e-05/0.555, allocations: 19.94 kB / 412.8 MB, free: 14.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003161/0.5553, allocations: 167.1 kB / 412.9 MB, free: 14 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5553, allocations: 4 kB / 413 MB, free: 14 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001869/0.5572, allocations: 143.7 kB / 413.1 MB, free: 13.86 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 24 (inertia1.phi,inertia1.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,inertia7.phi,inertia7.w,inertia7a.phi,inertia7a.w,inertia6.phi,inertia6.w,inertia8.phi,inertia8.w,inertia8a.phi,inertia8a.w,inertia9.phi,inertia9.w,inertia9a.phi,inertia9a.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 42 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002293/0.5595, allocations: 2.265 MB / 415.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001202/0.5608, allocations: 329.9 kB / 415.7 MB, free: 11.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/0.5608, allocations: 0 / 415.7 MB, free: 11.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003798/0.5612, allocations: 127.8 kB / 415.8 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/0.563, allocations: 82.41 kB / 415.9 MB, free: 11.01 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007455/0.5704, allocations: 2.165 MB / 418.1 MB, free: 8.766 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007812/0.5713, allocations: 0.8395 MB / 418.9 MB, free: 7.902 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004364/0.5717, allocations: 139.4 kB / 419 MB, free: 7.766 MB / 346.7 MB Notification: Performance of SimCode: time 1.763e-06/0.5718, allocations: 8 kB / 419 MB, free: 7.758 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.675/3.247, allocations: 6.762 MB / 425.8 MB, free: 0.9844 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.InitializationConversion.Inertia_res.mat does not exist to compare? outputFormat=mat