Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Visualizers.Torus,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Visualizers_Torus",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.942/1.942, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.048e-05/4.098e-05, allocations: 7.938 kB / 273.2 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1003, allocations: 48.7 MB / 321.9 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4346/0.535, allocations: 82.81 MB / 404.7 MB, free: 7.012 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002754/0.5353, allocations: 75.95 kB / 404.7 MB, free: 6.938 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2882/0.8235, allocations: 67.82 MB / 472.6 MB, free: 2.469 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.8236, allocations: 0 / 472.6 MB, free: 2.469 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001525/0.8237, allocations: 67.94 kB / 472.6 MB, free: 2.402 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1440 * Number of variables: 1440 Notification: Performance of Generate backend data structure: time 0.01061/0.8344, allocations: 3.033 MB / 475.7 MB, free: 15.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.441e-05/0.8344, allocations: 8.031 kB / 475.7 MB, free: 15.3 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003367/0.8378, allocations: 0.7254 MB / 476.4 MB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02555/0.8634, allocations: 3.278 MB / 479.7 MB, free: 11.28 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007537/0.871, allocations: 2.063 MB / 481.7 MB, free: 9.172 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004358/0.8715, allocations: 279 kB / 482 MB, free: 8.898 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00237/0.8739, allocations: 351.9 kB / 482.3 MB, free: 8.555 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0283/0.9022, allocations: 8.933 MB / 491.3 MB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001541/0.9024, allocations: 19.81 kB / 491.3 MB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001815/0.9043, allocations: 163.9 kB / 491.5 MB, free: 15.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002474/0.9068, allocations: 1.049 MB / 492.5 MB, free: 14.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02634/0.9331, allocations: 8.409 MB / 0.4892 GB, free: 5.598 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3583/1.292, allocations: 29.1 MB / 0.5176 GB, free: 96.14 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01094/1.303, allocations: 3.021 MB / 0.5205 GB, free: 94.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003204/1.306, allocations: 0.9666 MB / 0.5215 GB, free: 94.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02161/1.327, allocations: 4.868 MB / 0.5262 GB, free: 93.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.512e-05/1.328, allocations: 48.64 kB / 0.5263 GB, free: 93.38 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 6.643e-06/1.328, allocations: 0 / 0.5263 GB, free: 93.38 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.01229/1.34, allocations: 2.097 MB / 0.5283 GB, free: 93.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.138e-05/1.34, allocations: 58.84 kB / 0.5284 GB, free: 93.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006602/1.347, allocations: 2.239 MB / 0.5306 GB, free: 92.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002518/1.347, allocations: 36.86 kB / 0.5306 GB, free: 92.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002671/1.35, allocations: 2.652 MB / 0.5332 GB, free: 91.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008728/1.351, allocations: 0.4908 MB / 0.5337 GB, free: 91.23 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004688/1.351, allocations: 85.56 kB / 0.5338 GB, free: 91.23 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003902/1.351, allocations: 0.4982 MB / 0.5343 GB, free: 90.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00398/1.355, allocations: 1.302 MB / 0.5355 GB, free: 90.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006211/1.362, allocations: 4.01 MB / 0.5394 GB, free: 87.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006471/1.368, allocations: 2.339 MB / 0.5417 GB, free: 86.46 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001089/1.368, allocations: 27.88 kB / 0.5418 GB, free: 86.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=583) (initialization): time 0.01652/1.385, allocations: 4.844 MB / 0.5465 GB, free: 84.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001099/1.385, allocations: 47.5 kB / 0.5465 GB, free: 84.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001675/1.385, allocations: 95.06 kB / 0.5466 GB, free: 84.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002497/1.386, allocations: 145.7 kB / 0.5468 GB, free: 84.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007101/1.393, allocations: 0.9728 MB / 0.5477 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002441/1.393, allocations: 187.4 kB / 0.5479 GB, free: 84.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006326/1.399, allocations: 0.6064 MB / 0.5485 GB, free: 84.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001022/1.4, allocations: 278 kB / 0.5487 GB, free: 84.37 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 443 * Number of states: 0 () * Number of discrete variables: 18 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (535): * Single equations (assignments): 529 * Array equations: 6 * 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.0009979/1.401, allocations: 439.5 kB / 0.5492 GB, free: 84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005858/1.402, allocations: 210.8 kB / 0.5494 GB, free: 83.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008229/1.403, allocations: 270.3 kB / 0.5496 GB, free: 83.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.019e-05/1.403, allocations: 18.23 kB / 0.5496 GB, free: 83.74 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/1.403, allocations: 4 kB / 0.5496 GB, free: 83.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/1.403, allocations: 3.797 kB / 0.5496 GB, free: 83.74 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01839/1.421, allocations: 5.593 MB / 0.5551 GB, free: 81.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.6e-05/1.421, allocations: 8.406 kB / 0.5551 GB, free: 81.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001419/1.423, allocations: 138.9 kB / 0.5552 GB, free: 81.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.2e-05/1.423, allocations: 11.47 kB / 0.5553 GB, free: 81.68 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001258/1.423, allocations: 21.72 kB / 0.5553 GB, free: 81.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-05/1.423, allocations: 6.906 kB / 0.5553 GB, free: 81.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.08e-05/1.423, allocations: 13.8 kB / 0.5553 GB, free: 81.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004242/1.427, allocations: 2.093 MB / 0.5573 GB, free: 80.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008337/1.428, allocations: 304 kB / 0.5576 GB, free: 80.16 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005317/1.429, allocations: 15.88 kB / 0.5576 GB, free: 80.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001517/1.43, allocations: 41.41 kB / 0.5577 GB, free: 80.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/1.431, allocations: 63.44 kB / 0.5577 GB, free: 80.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001546/1.431, allocations: 41.31 kB / 0.5578 GB, free: 80.12 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004276/1.435, allocations: 1.503 MB / 0.5593 GB, free: 79.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.435, allocations: 0 / 0.5593 GB, free: 79.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006613/1.442, allocations: 1.01 MB / 0.5602 GB, free: 79.24 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 72 * Array equations: 6 * 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.003687/1.445, allocations: 3.857 MB / 0.564 GB, free: 76.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00616/1.452, allocations: 2.931 MB / 0.5669 GB, free: 75.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/1.452, allocations: 0 / 0.5669 GB, free: 75.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001308/1.453, allocations: 0.7286 MB / 0.5676 GB, free: 75.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00148/1.455, allocations: 227.4 kB / 0.5678 GB, free: 75.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01945/1.474, allocations: 7.414 MB / 0.575 GB, free: 71.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004448/1.479, allocations: 3.043 MB / 0.578 GB, free: 69.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002886/1.481, allocations: 1.519 MB / 0.5795 GB, free: 67.91 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/1.482, allocations: 4 kB / 0.5795 GB, free: 67.91 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.538/5.019, allocations: 60.86 MB / 0.6389 GB, free: 11.62 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Visualizers.Torus_res.mat does not exist to compare? outputFormat=mat