Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.003/2.003, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.597e-05/2.608e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1055, allocations: 48.7 MB / 316.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4206/0.5261, allocations: 84.02 MB / 400.3 MB, free: 8.426 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.5264, allocations: 75.39 kB / 400.4 MB, free: 8.391 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08764/0.614, allocations: 19.47 MB / 419.9 MB, free: 7.703 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.6141, allocations: 0 / 419.9 MB, free: 7.703 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.041e-05/0.6142, allocations: 20 kB / 419.9 MB, free: 7.684 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 329 * Number of variables: 329 Notification: Performance of Generate backend data structure: time 0.004581/0.6188, allocations: 1.373 MB / 421.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.381e-05/0.6188, allocations: 12.03 kB / 421.3 MB, free: 6.324 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001829/0.6207, allocations: 202.3 kB / 421.5 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002265/0.623, allocations: 0.6918 MB / 422.2 MB, free: 5.512 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.36e-05/0.6231, allocations: 39.98 kB / 422.2 MB, free: 5.473 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003047/0.6234, allocations: 63 kB / 422.3 MB, free: 5.414 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004211/0.6276, allocations: 1.69 MB / 424 MB, free: 4.309 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00443/0.6321, allocations: 1.942 MB / 425.9 MB, free: 2.566 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.125e-05/0.6322, allocations: 4 kB / 425.9 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/0.6324, allocations: 7.938 kB / 425.9 MB, free: 2.555 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004643/0.6329, allocations: 201.9 kB / 426.1 MB, free: 2.355 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/0.6459, allocations: 7.464 MB / 433.6 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.647, allocations: 410.5 kB / 434 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005628/0.6476, allocations: 236.8 kB / 434.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002293/0.6499, allocations: 1.738 MB / 435.9 MB, free: 8.016 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.854e-05/0.65, allocations: 30.56 kB / 436 MB, free: 7.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 3.857e-06/0.65, allocations: 0 / 436 MB, free: 7.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.01217/0.6622, allocations: 2.006 MB / 438 MB, free: 5.961 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/0.6623, allocations: 59.95 kB / 438 MB, free: 5.891 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001417/0.6638, allocations: 0.6437 MB / 438.7 MB, free: 5.242 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001099/0.6639, allocations: 25.7 kB / 438.7 MB, free: 5.211 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006434/0.6646, allocations: 0.7092 MB / 439.4 MB, free: 4.492 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002881/0.6649, allocations: 205.1 kB / 439.6 MB, free: 4.289 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.778e-05/0.6649, allocations: 4 kB / 439.6 MB, free: 4.285 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002015/0.6652, allocations: 366.7 kB / 440 MB, free: 3.918 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008252/0.666, allocations: 330.5 kB / 440.3 MB, free: 3.594 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001338/0.6673, allocations: 0.9472 MB / 441.2 MB, free: 2.336 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001217/0.6686, allocations: 0.5445 MB / 441.8 MB, free: 1.797 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.972e-05/0.6686, allocations: 8 kB / 441.8 MB, free: 1.789 MB / 362.7 MB Notification: Performance of matching and sorting (n=157) (initialization): time 0.002938/0.6716, allocations: 1.171 MB / 443 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.101e-05/0.6716, allocations: 19.44 kB / 443 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.378e-05/0.6717, allocations: 20 kB / 443 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.528e-05/0.6718, allocations: 32 kB / 443 MB, free: 0.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002459/0.6742, allocations: 327.4 kB / 443.4 MB, free: 228 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001384/0.6757, allocations: 1.321 MB / 444.7 MB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001206/0.6769, allocations: 32.14 kB / 444.7 MB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001539/0.6771, allocations: 67.94 kB / 444.8 MB, free: 14.7 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 24 (Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],Prismatic1.boxColor[3],Prismatic1.boxColor[2],Prismatic1.boxColor[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[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 (157): * Single equations (assignments): 156 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003379/0.6774, allocations: 179.4 kB / 445 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0015/0.6789, allocations: 0.5645 MB / 445.5 MB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000163/0.6791, allocations: 78.97 kB / 445.6 MB, free: 13.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003372/0.6795, allocations: 95.73 kB / 445.7 MB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.6795, allocations: 8 kB / 445.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.6795, allocations: 4 kB / 445.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.6795, allocations: 0 / 445.7 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005165/0.6847, allocations: 1.828 MB / 447.5 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.6848, allocations: 7.938 kB / 447.5 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.6859, allocations: 132.5 kB / 447.7 MB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.051e-05/0.6859, allocations: 8 kB / 447.7 MB, free: 11.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.484e-05/0.686, allocations: 12 kB / 447.7 MB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001184/0.6872, allocations: 1.286 MB / 449 MB, free: 10.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.399e-05/0.6872, allocations: 11.94 kB / 449 MB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001697/0.6889, allocations: 1.074 MB / 450.1 MB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004383/0.6894, allocations: 188.1 kB / 450.2 MB, free: 8.684 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001419/0.6896, allocations: 8 kB / 450.2 MB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005681/0.6901, allocations: 15.98 kB / 450.3 MB, free: 8.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.6903, allocations: 51.84 kB / 450.3 MB, free: 8.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.073e-05/0.6903, allocations: 27.95 kB / 450.3 MB, free: 8.582 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009153/0.6913, allocations: 463.1 kB / 450.8 MB, free: 8.137 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6913, allocations: 0 / 450.8 MB, free: 8.137 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00151/0.6928, allocations: 180 kB / 451 MB, free: 7.961 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00278/0.6956, allocations: 3.413 MB / 454.4 MB, free: 4.348 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002271/0.6979, allocations: 0.7832 MB / 455.2 MB, free: 3.566 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/0.698, allocations: 0 / 455.2 MB, free: 3.566 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008352/0.6988, allocations: 270.4 kB / 455.4 MB, free: 3.305 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008932/0.6997, allocations: 86.36 kB / 455.5 MB, free: 3.223 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005985/0.7058, allocations: 1.945 MB / 457.5 MB, free: 1.152 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/0.7073, allocations: 1.247 MB / 458.7 MB, free: 15.88 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009071/0.7082, allocations: 391.3 kB / 459.1 MB, free: 15.5 MB / 394.7 MB Notification: Performance of SimCode: time 9.72e-07/0.7082, allocations: 4 kB / 459.1 MB, free: 15.49 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.852/3.56, allocations: 20.49 MB / 479.6 MB, free: 10.99 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat