Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.539/2.539, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.916e-05/3.921e-05, allocations: 4 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.414/0.4141, allocations: 54.87 MB / 359.9 MB, free: 2.711 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1919/0.606, allocations: 99.2 MB / 459.1 MB, free: 13.76 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003031/0.6064, allocations: 75.91 kB / 459.1 MB, free: 13.68 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.882/1.488, allocations: 128.6 MB / 0.5739 GB, free: 104.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.324e-06/1.488, allocations: 0 / 0.5739 GB, free: 104.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004081/1.489, allocations: 111.8 kB / 0.574 GB, free: 104.6 MB / 458.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.02797/1.517, allocations: 6.239 MB / 0.5801 GB, free: 101.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.36e-05/1.517, allocations: 14.25 kB / 0.5801 GB, free: 101.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005782/1.523, allocations: 1.092 MB / 0.5812 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0498/1.573, allocations: 6.455 MB / 0.5875 GB, free: 98.67 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02879/1.601, allocations: 8.57 MB / 0.5959 GB, free: 93.76 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006012/1.602, allocations: 436.7 kB / 0.5963 GB, free: 93.37 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004143/1.606, allocations: 0.5823 MB / 0.5969 GB, free: 92.83 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05011/1.656, allocations: 15.23 MB / 0.6117 GB, free: 77.02 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005018/1.657, allocations: 59.48 kB / 0.6118 GB, free: 76.96 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003809/1.661, allocations: 261.1 kB / 0.6121 GB, free: 76.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004339/1.665, allocations: 1.693 MB / 0.6137 GB, free: 75.06 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04579/1.711, allocations: 14.47 MB / 0.6278 GB, free: 60.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1259/1.837, allocations: 56.27 MB / 0.6828 GB, free: 3.438 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03246/1.869, allocations: 7.932 MB / 0.6905 GB, free: 11.27 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01159/1.881, allocations: 4.691 MB / 0.6951 GB, free: 6.578 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003478/1.885, allocations: 2.211 MB / 0.6973 GB, free: 4 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001155/1.885, allocations: 77.11 kB / 0.6973 GB, free: 3.914 MB / 474.7 MB Notification: Performance of pre-optimization done (n=367): time 9.337e-06/1.885, allocations: 0 / 0.6973 GB, free: 3.914 MB / 474.7 MB Notification: Performance of matching and sorting (n=419): time 0.5062/2.391, allocations: 33.37 MB / 0.7299 GB, free: 109.3 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.579e-05/2.391, allocations: 118 kB / 0.73 GB, free: 109.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/2.402, allocations: 3.819 MB / 0.7338 GB, free: 108.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001284/2.403, allocations: 86.09 kB / 0.7339 GB, free: 108.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003459/2.406, allocations: 3.786 MB / 0.7376 GB, free: 105.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002873/2.409, allocations: 1.486 MB / 0.739 GB, free: 104.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00139/2.411, allocations: 152.7 kB / 0.7391 GB, free: 104.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000705/2.412, allocations: 0.6432 MB / 0.7398 GB, free: 103.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01018/2.422, allocations: 3.824 MB / 0.7435 GB, free: 102.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01298/2.435, allocations: 7.565 MB / 0.7509 GB, free: 96.34 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0131/2.448, allocations: 5.41 MB / 0.7562 GB, free: 94.75 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000159/2.448, allocations: 38.72 kB / 0.7562 GB, free: 94.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04359/2.492, allocations: 13.41 MB / 0.7693 GB, free: 90.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001148/2.492, allocations: 63.23 kB / 0.7694 GB, free: 90.95 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002079/2.492, allocations: 136.7 kB / 0.7695 GB, free: 90.94 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01359/2.506, allocations: 2.63 MB / 0.7721 GB, free: 90.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01429/2.52, allocations: 1.945 MB / 0.774 GB, free: 88.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02992/2.55, allocations: 13.6 MB / 0.7873 GB, free: 77.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01089/2.561, allocations: 474.6 kB / 0.7877 GB, free: 76.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002525/2.564, allocations: 436 kB / 0.7881 GB, free: 76.43 MB / 474.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.004444/2.568, allocations: 0.6523 MB / 0.7888 GB, free: 75.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002143/2.57, allocations: 466 kB / 0.7892 GB, free: 75.31 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03585/2.606, allocations: 10.37 MB / 0.7993 GB, free: 67.11 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001266/2.606, allocations: 64.8 kB / 0.7994 GB, free: 67.05 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.584e-05/2.606, allocations: 8 kB / 0.7994 GB, free: 67.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001158/2.607, allocations: 20.09 kB / 0.7994 GB, free: 67.04 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1015/2.708, allocations: 20.95 MB / 0.8199 GB, free: 48.29 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.517e-05/2.708, allocations: 15.94 kB / 0.8199 GB, free: 48.28 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01618/2.724, allocations: 0.7933 MB / 0.8207 GB, free: 47.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01994/2.744, allocations: 2.407 MB / 0.823 GB, free: 45.07 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001365/2.746, allocations: 80.69 kB / 0.8231 GB, free: 44.99 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02818/2.774, allocations: 12.37 MB / 0.8352 GB, free: 32.36 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.527e-05/2.774, allocations: 17.89 kB / 0.8352 GB, free: 32.34 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04128/2.815, allocations: 16.12 MB / 0.8509 GB, free: 15.54 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004899/2.82, allocations: 1.155 MB / 0.8521 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00209/2.823, allocations: 81.55 kB / 0.8521 GB, free: 14.28 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006325/2.829, allocations: 296.9 kB / 0.8524 GB, free: 13.99 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001629/2.831, allocations: 266 kB / 0.8527 GB, free: 13.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005833/2.831, allocations: 113.1 kB / 0.8528 GB, free: 13.62 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006801/2.838, allocations: 2.667 MB / 0.8554 GB, free: 10.95 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.463e-06/2.838, allocations: 0 / 0.8554 GB, free: 10.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01115/2.849, allocations: 1.654 MB / 0.857 GB, free: 9.301 MB / 474.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.04686/2.896, allocations: 19.35 MB / 0.8759 GB, free: 5.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3582/3.254, allocations: 9.362 MB / 0.885 GB, free: 121.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.935e-05/3.254, allocations: 1.375 kB / 0.885 GB, free: 121.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01204/3.266, allocations: 4.148 MB / 0.8891 GB, free: 121.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006493/3.273, allocations: 0.638 MB / 0.8897 GB, free: 121.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0574/3.33, allocations: 15.99 MB / 0.9053 GB, free: 118.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01147/3.342, allocations: 4.749 MB / 0.91 GB, free: 117.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008398/3.35, allocations: 2.965 MB / 0.9129 GB, free: 115.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.522e-06/3.35, allocations: 0.875 kB / 0.9129 GB, free: 115.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.839/9.189, allocations: 172.1 MB / 1.081 GB, free: 126.9 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat