Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Spherical,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_Spherical",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.695/2.695, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.894e-05/2.895e-05, allocations: 4 kB / 299.6 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.4112, allocations: 54.86 MB / 354.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.21/0.6213, allocations: 94.57 MB / 449 MB, free: 3.605 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004133/0.6218, allocations: 75.97 kB / 449.1 MB, free: 3.531 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7636/1.385, allocations: 81.24 MB / 0.5179 GB, free: 102 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.795e-06/1.385, allocations: 0 / 0.5179 GB, free: 102 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001944/1.386, allocations: 69.09 kB / 0.518 GB, free: 102 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.02464/1.41, allocations: 3.845 MB / 0.5217 GB, free: 100.1 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.425e-05/1.41, allocations: 7.625 kB / 0.5217 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04986/1.46, allocations: 5.882 MB / 0.5275 GB, free: 98.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0245/1.485, allocations: 5.289 MB / 0.5326 GB, free: 95.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002727/1.485, allocations: 120.5 kB / 0.5327 GB, free: 95.15 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002796/1.488, allocations: 215.8 kB / 0.533 GB, free: 94.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01859/1.507, allocations: 6.895 MB / 0.5397 GB, free: 88.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.028/1.535, allocations: 9.186 MB / 0.5487 GB, free: 78.35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002361/1.535, allocations: 31.75 kB / 0.5487 GB, free: 78.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00244/1.537, allocations: 16 kB / 0.5487 GB, free: 78.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002937/1.54, allocations: 1.151 MB / 0.5498 GB, free: 77.16 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08052/1.621, allocations: 35.02 MB / 0.584 GB, free: 41.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/1.632, allocations: 4.079 MB / 0.588 GB, free: 37.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00728/1.639, allocations: 2.267 MB / 0.5902 GB, free: 35.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003461/1.642, allocations: 1.886 MB / 0.5921 GB, free: 32.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.325e-05/1.643, allocations: 56.5 kB / 0.5921 GB, free: 32.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=226): time 1.105e-05/1.643, allocations: 0 / 0.5921 GB, free: 32.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=233): time 0.09053/1.733, allocations: 11.82 MB / 0.6037 GB, free: 20.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/1.733, allocations: 69.41 kB / 0.6037 GB, free: 20.85 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005194/1.738, allocations: 2.383 MB / 0.6061 GB, free: 18.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006686/1.739, allocations: 25.7 kB / 0.6061 GB, free: 18.42 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002298/1.741, allocations: 2.754 MB / 0.6088 GB, free: 15.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001435/1.743, allocations: 0.8363 MB / 0.6096 GB, free: 14.78 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006216/1.744, allocations: 0 / 0.6096 GB, free: 14.78 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000478/1.744, allocations: 0.5578 MB / 0.6101 GB, free: 14.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006716/1.751, allocations: 2.53 MB / 0.6126 GB, free: 11.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009355/1.76, allocations: 5.721 MB / 0.6182 GB, free: 4.352 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009714/1.77, allocations: 3.818 MB / 0.6219 GB, free: 0.5312 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/1.77, allocations: 32 kB / 0.6219 GB, free: 0.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=765) (initialization): time 0.1508/1.921, allocations: 18.49 MB / 0.64 GB, free: 13.97 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/1.921, allocations: 56 kB / 0.6401 GB, free: 13.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1079/2.029, allocations: 11.89 MB / 0.6517 GB, free: 2.004 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1459/2.175, allocations: 10.32 MB / 0.6617 GB, free: 7.656 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01068/2.186, allocations: 1.322 MB / 0.663 GB, free: 6.332 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4222/2.608, allocations: 15.08 MB / 0.6778 GB, free: 130.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01095/2.619, allocations: 344.5 kB / 0.6781 GB, free: 130.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002275/2.621, allocations: 342.5 kB / 0.6784 GB, free: 130.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 21 (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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (693): * Single equations (assignments): 682 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.002506/2.624, allocations: 390 kB / 0.6788 GB, free: 130.1 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02316/2.647, allocations: 4.473 MB / 0.6832 GB, free: 130 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/2.648, allocations: 276.8 kB / 0.6834 GB, free: 130 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02029/2.669, allocations: 4.972 MB / 0.6883 GB, free: 129.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01943/2.688, allocations: 4.284 MB / 0.6925 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.807e-05/2.688, allocations: 4 kB / 0.6925 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.047e-05/2.688, allocations: 9.844 kB / 0.6925 GB, free: 128.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05227/2.741, allocations: 11.95 MB / 0.7041 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.049e-05/2.741, allocations: 9.562 kB / 0.7041 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006147/2.747, allocations: 410.6 kB / 0.7045 GB, free: 124.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006938/2.754, allocations: 0.9239 MB / 0.7054 GB, free: 124.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006419/2.755, allocations: 24.06 kB / 0.7055 GB, free: 124.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/2.767, allocations: 5.303 MB / 0.7106 GB, free: 121.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001424/2.769, allocations: 1.395 MB / 0.712 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02297/2.792, allocations: 8.264 MB / 0.7201 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001005/2.793, allocations: 324.6 kB / 0.7204 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001146/2.794, allocations: 18.61 kB / 0.7204 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003822/2.798, allocations: 171.1 kB / 0.7206 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007327/2.798, allocations: 147.5 kB / 0.7207 GB, free: 116 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003314/2.799, allocations: 71.75 kB / 0.7208 GB, free: 116 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003791/2.803, allocations: 1.567 MB / 0.7223 GB, free: 115 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.31e-07/2.803, allocations: 0 / 0.7223 GB, free: 115 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008553/2.811, allocations: 0.9984 MB / 0.7233 GB, free: 114 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 163 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02283/2.834, allocations: 10.94 MB / 0.734 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01928/2.853, allocations: 6.332 MB / 0.7401 GB, free: 98.47 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/2.853, allocations: 0 / 0.7401 GB, free: 98.47 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007066/2.861, allocations: 2.462 MB / 0.7425 GB, free: 96.26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002916/2.864, allocations: 234.1 kB / 0.7428 GB, free: 96.05 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03403/2.898, allocations: 9.672 MB / 0.7522 GB, free: 87.69 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007242/2.905, allocations: 3.246 MB / 0.7554 GB, free: 85.18 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01149/2.916, allocations: 2.156 MB / 0.7575 GB, free: 83.29 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005061/2.922, allocations: 1.671 MB / 0.7591 GB, free: 81.62 MB / 474.7 MB Notification: Performance of SimCode: time 1.754e-06/2.922, allocations: 0 / 0.7591 GB, free: 81.62 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2079/3.129, allocations: 76.86 MB / 0.8342 GB, free: 4.98 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000332/3.13, allocations: 137.3 kB / 0.8343 GB, free: 4.785 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.432/8.562, allocations: 0 / 0.8343 GB, free: 4.785 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.Spherical_res.mat does not exist to compare? outputFormat=mat