Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.214/2.214, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.199e-05/4.217e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 48.71 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4473/0.5539, allocations: 92.39 MB / 414.2 MB, free: 13.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/0.5543, allocations: 71.97 kB / 414.3 MB, free: 13.36 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8442/1.398, allocations: 128.5 MB / 0.5301 GB, free: 94.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.399, allocations: 3.969 kB / 0.5301 GB, free: 94.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003805/1.399, allocations: 110.9 kB / 0.5302 GB, free: 94.55 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.02627/1.425, allocations: 6.236 MB / 0.5363 GB, free: 92.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.503e-05/1.425, allocations: 10.31 kB / 0.5363 GB, free: 92.12 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005586/1.431, allocations: 1.097 MB / 0.5374 GB, free: 92.03 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05225/1.483, allocations: 6.452 MB / 0.5437 GB, free: 91.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04326/1.526, allocations: 8.567 MB / 0.5521 GB, free: 90.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008431/1.527, allocations: 434.2 kB / 0.5525 GB, free: 90.73 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005347/1.533, allocations: 0.5886 MB / 0.553 GB, free: 90.71 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07164/1.604, allocations: 15.29 MB / 0.568 GB, free: 84.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006944/1.605, allocations: 63.62 kB / 0.568 GB, free: 84.93 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0046/1.61, allocations: 262.6 kB / 0.5683 GB, free: 84.79 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006397/1.616, allocations: 1.691 MB / 0.5699 GB, free: 84.49 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06711/1.684, allocations: 14.63 MB / 0.5842 GB, free: 71.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1843/1.868, allocations: 56.26 MB / 0.6392 GB, free: 14.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04574/1.914, allocations: 7.951 MB / 0.6469 GB, free: 5.98 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01448/1.928, allocations: 4.688 MB / 0.6515 GB, free: 1.285 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3974/2.326, allocations: 2.206 MB / 0.6537 GB, free: 85.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.336e-05/2.326, allocations: 66.2 kB / 0.6537 GB, free: 85.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 9.348e-06/2.326, allocations: 0 / 0.6537 GB, free: 85.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1615/2.487, allocations: 33.38 MB / 0.6863 GB, free: 83.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.358e-05/2.488, allocations: 116.8 kB / 0.6864 GB, free: 83.76 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009654/2.497, allocations: 3.823 MB / 0.6902 GB, free: 83.36 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001247/2.499, allocations: 89.55 kB / 0.6903 GB, free: 83.33 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003443/2.502, allocations: 3.773 MB / 0.694 GB, free: 81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002853/2.505, allocations: 1.493 MB / 0.6954 GB, free: 79.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/2.506, allocations: 153.2 kB / 0.6956 GB, free: 79.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006935/2.507, allocations: 0.6455 MB / 0.6962 GB, free: 79.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009915/2.517, allocations: 3.82 MB / 0.6999 GB, free: 78.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01289/2.53, allocations: 7.605 MB / 0.7073 GB, free: 71.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01286/2.543, allocations: 5.416 MB / 0.7126 GB, free: 70.27 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001455/2.543, allocations: 36.88 kB / 0.7127 GB, free: 70.27 MB / 426.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04358/2.587, allocations: 13.77 MB / 0.7261 GB, free: 66.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00012/2.587, allocations: 62.91 kB / 0.7262 GB, free: 66.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002064/2.587, allocations: 130.8 kB / 0.7263 GB, free: 66.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01353/2.6, allocations: 2.637 MB / 0.7289 GB, free: 65.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0139/2.614, allocations: 1.939 MB / 0.7308 GB, free: 64.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02912/2.644, allocations: 13.6 MB / 0.7441 GB, free: 52.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009627/2.653, allocations: 483.9 kB / 0.7445 GB, free: 52.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002108/2.655, allocations: 435.3 kB / 0.7449 GB, free: 51.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 594 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (920): * Single equations (assignments): 912 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002588/2.658, allocations: 0.6553 MB / 0.7456 GB, free: 51.13 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/2.66, allocations: 469.7 kB / 0.746 GB, free: 50.67 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03163/2.691, allocations: 10.36 MB / 0.7561 GB, free: 42.49 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000115/2.691, allocations: 64.56 kB / 0.7562 GB, free: 42.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.01e-05/2.691, allocations: 12 kB / 0.7562 GB, free: 42.42 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001023/2.692, allocations: 16.97 kB / 0.7562 GB, free: 42.42 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06101/2.753, allocations: 20.99 MB / 0.7767 GB, free: 24.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.487e-05/2.753, allocations: 8 kB / 0.7767 GB, free: 24.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007171/2.76, allocations: 0.7917 MB / 0.7775 GB, free: 23.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01262/2.772, allocations: 2.403 MB / 0.7799 GB, free: 21.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001089/2.774, allocations: 82.34 kB / 0.7799 GB, free: 20.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02617/2.8, allocations: 12.35 MB / 0.792 GB, free: 8.328 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.371e-05/2.8, allocations: 19.88 kB / 0.792 GB, free: 8.309 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04282/2.843, allocations: 16.13 MB / 0.8078 GB, free: 7.492 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005322/2.848, allocations: 1.162 MB / 0.8089 GB, free: 6.309 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002167/2.85, allocations: 72 kB / 0.809 GB, free: 6.238 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006224/2.857, allocations: 299.6 kB / 0.8092 GB, free: 5.949 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001697/2.858, allocations: 267.1 kB / 0.8095 GB, free: 5.688 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006076/2.859, allocations: 112.9 kB / 0.8096 GB, free: 5.578 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.3229/3.182, allocations: 2.671 MB / 0.8122 GB, free: 91.22 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.02e-07/3.182, allocations: 0 / 0.8122 GB, free: 91.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01165/3.194, allocations: 1.645 MB / 0.8138 GB, free: 91.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (334): * Single equations (assignments): 326 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04929/3.243, allocations: 19.35 MB / 0.8327 GB, free: 85.87 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02317/3.266, allocations: 9.607 MB / 0.8421 GB, free: 85.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/3.266, allocations: 0 / 0.8421 GB, free: 85.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01076/3.277, allocations: 4.196 MB / 0.8462 GB, free: 85.24 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006165/3.283, allocations: 0.631 MB / 0.8468 GB, free: 85.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05234/3.336, allocations: 16.03 MB / 0.8625 GB, free: 79.49 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01118/3.347, allocations: 4.75 MB / 0.8671 GB, free: 77.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008205/3.355, allocations: 2.963 MB / 0.87 GB, free: 75.56 MB / 442.7 MB Notification: Performance of SimCode: time 1.113e-06/3.355, allocations: 0 / 0.87 GB, free: 75.56 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.419/8.774, allocations: 173.3 MB / 1.039 GB, free: 96.25 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat