Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.669/2.669, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.613e-05/2.627e-05, allocations: 4 kB / 299.6 MB, free: 204 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4367/0.4368, allocations: 54.86 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2007/0.6375, allocations: 98.52 MB / 453 MB, free: 12.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003677/0.6379, allocations: 79.95 kB / 453 MB, free: 12.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9879/1.626, allocations: 126.3 MB / 0.5657 GB, free: 13.72 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.626, allocations: 0 / 0.5657 GB, free: 13.72 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004684/1.626, allocations: 116 kB / 0.5659 GB, free: 13.61 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.03096/1.657, allocations: 6.247 MB / 0.572 GB, free: 7.289 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/1.657, allocations: 8.031 kB / 0.572 GB, free: 7.281 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05904/1.717, allocations: 6.458 MB / 0.5783 GB, free: 0.8047 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03606/1.753, allocations: 8.549 MB / 0.5866 GB, free: 8.195 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005046/1.753, allocations: 192 kB / 0.5868 GB, free: 8.008 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004164/1.757, allocations: 339.9 kB / 0.5871 GB, free: 7.676 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03295/1.79, allocations: 10.54 MB / 0.5974 GB, free: 13.12 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04649/1.837, allocations: 13.71 MB / 0.6108 GB, free: 14.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005383/1.837, allocations: 59.5 kB / 0.6109 GB, free: 14.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003489/1.841, allocations: 24 kB / 0.6109 GB, free: 14.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005615/1.847, allocations: 1.691 MB / 0.6125 GB, free: 12.92 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5016/2.348, allocations: 53.27 MB / 0.6646 GB, free: 66.85 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/2.361, allocations: 6.617 MB / 0.671 GB, free: 65.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009705/2.371, allocations: 4.603 MB / 0.6755 GB, free: 65.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003073/2.374, allocations: 2.209 MB / 0.6777 GB, free: 63.67 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.935e-05/2.374, allocations: 66.81 kB / 0.6777 GB, free: 63.62 MB / 458.7 MB Notification: Performance of pre-optimization done (n=369): time 9.868e-06/2.374, allocations: 3.281 kB / 0.6777 GB, free: 63.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=431): time 0.1439/2.518, allocations: 35.86 MB / 0.7128 GB, free: 51.87 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.988e-05/2.518, allocations: 116.1 kB / 0.7129 GB, free: 51.74 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007866/2.526, allocations: 3.515 MB / 0.7163 GB, free: 48.74 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00118/2.527, allocations: 25.7 kB / 0.7163 GB, free: 48.71 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003374/2.531, allocations: 3.998 MB / 0.7202 GB, free: 45.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002616/2.533, allocations: 1.486 MB / 0.7217 GB, free: 44.21 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001064/2.534, allocations: 0 / 0.7217 GB, free: 44.21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000608/2.535, allocations: 0.6556 MB / 0.7223 GB, free: 43.65 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009254/2.544, allocations: 3.822 MB / 0.7261 GB, free: 40.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01243/2.557, allocations: 7.842 MB / 0.7337 GB, free: 31.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/2.57, allocations: 5.499 MB / 0.7391 GB, free: 26.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001502/2.57, allocations: 40 kB / 0.7391 GB, free: 26.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=1074) (initialization): time 0.04573/2.616, allocations: 13.47 MB / 0.7523 GB, free: 15.99 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001197/2.616, allocations: 68 kB / 0.7523 GB, free: 15.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002206/2.616, allocations: 140.6 kB / 0.7525 GB, free: 15.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01487/2.631, allocations: 2.606 MB / 0.755 GB, free: 14.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01753/2.649, allocations: 2.063 MB / 0.757 GB, free: 12.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04319/2.692, allocations: 12.9 MB / 0.7696 GB, free: 1.223 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0158/2.708, allocations: 337.6 kB / 0.77 GB, free: 0.9961 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002945/2.711, allocations: 459.6 kB / 0.7704 GB, free: 0.5703 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 639 * 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 (977): * Single equations (assignments): 969 * 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.003671/2.714, allocations: 483.7 kB / 0.7709 GB, free: 100 kB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05888/2.773, allocations: 10.01 MB / 0.7806 GB, free: 9.051 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002269/2.776, allocations: 454.1 kB / 0.7811 GB, free: 8.602 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04082/2.817, allocations: 10.26 MB / 0.7911 GB, free: 14.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001958/2.817, allocations: 63.52 kB / 0.7912 GB, free: 14.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.54e-05/2.817, allocations: 8 kB / 0.7912 GB, free: 14.22 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001255/2.817, allocations: 19.92 kB / 0.7912 GB, free: 14.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4593/3.276, allocations: 19.73 MB / 0.8105 GB, free: 107.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.271e-05/3.276, allocations: 11.25 kB / 0.8105 GB, free: 107.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008835/3.285, allocations: 0.8111 MB / 0.8113 GB, free: 107.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01492/3.3, allocations: 2.385 MB / 0.8136 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001208/3.301, allocations: 19.69 kB / 0.8136 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02948/3.331, allocations: 11.7 MB / 0.825 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.882e-05/3.331, allocations: 21.59 kB / 0.825 GB, free: 105.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04598/3.377, allocations: 16.15 MB / 0.8408 GB, free: 102.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005195/3.382, allocations: 1.152 MB / 0.8419 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002411/3.385, allocations: 15.66 kB / 0.842 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006867/3.392, allocations: 237.2 kB / 0.8422 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001867/3.394, allocations: 271.1 kB / 0.8424 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007482/3.394, allocations: 116.1 kB / 0.8426 GB, free: 102.6 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006771/3.401, allocations: 2.363 MB / 0.8449 GB, free: 102.4 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.91e-07/3.401, allocations: 3.344 kB / 0.8449 GB, free: 102.4 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01201/3.413, allocations: 1.455 MB / 0.8463 GB, free: 102.4 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (346): * Single equations (assignments): 338 * 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.04692/3.46, allocations: 19.47 MB / 0.8653 GB, free: 93.93 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02406/3.484, allocations: 9.473 MB / 0.8745 GB, free: 90.97 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.648e-05/3.484, allocations: 3.844 kB / 0.8745 GB, free: 90.97 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01133/3.496, allocations: 4.177 MB / 0.8786 GB, free: 89.43 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006025/3.502, allocations: 497.9 kB / 0.8791 GB, free: 89.25 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05111/3.553, allocations: 15.11 MB / 0.8939 GB, free: 77.81 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0117/3.565, allocations: 4.762 MB / 0.8985 GB, free: 74.27 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01468/3.579, allocations: 2.861 MB / 0.9013 GB, free: 72.54 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008632/3.588, allocations: 2.927 MB / 0.9042 GB, free: 69.83 MB / 490.7 MB Notification: Performance of SimCode: time 1.723e-06/3.588, allocations: 4 kB / 0.9042 GB, free: 69.83 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6993/4.288, allocations: 116.6 MB / 1.018 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002579/4.288, allocations: 144.6 kB / 1.018 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 7.12/11.41, allocations: 0 / 1.018 GB, free: 116.6 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat