Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.966/1.966, allocations: 209.4 MB / 216.9 MB, free: 6.664 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.25e-05/3.249e-05, allocations: 4 kB / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1044, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4418/0.5463, allocations: 103.7 MB / 420 MB, free: 5.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002732/0.5466, allocations: 77.45 kB / 420 MB, free: 5.031 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9568/1.503, allocations: 168.6 MB / 0.5749 GB, free: 56.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.504, allocations: 0 / 0.5749 GB, free: 56.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004785/1.504, allocations: 151.6 kB / 0.575 GB, free: 56.59 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.03254/1.537, allocations: 7.701 MB / 0.5825 GB, free: 48.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/1.537, allocations: 8.031 kB / 0.5825 GB, free: 48.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05318/1.59, allocations: 6.951 MB / 0.5893 GB, free: 41.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0338/1.624, allocations: 9.833 MB / 0.5989 GB, free: 32.01 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005104/1.624, allocations: 248 kB / 0.5992 GB, free: 31.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00458/1.629, allocations: 459.8 kB / 0.5996 GB, free: 31.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03175/1.661, allocations: 13.14 MB / 0.6124 GB, free: 18.18 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04719/1.708, allocations: 17.62 MB / 0.6296 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005315/1.709, allocations: 95.12 kB / 0.6297 GB, free: 15.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004143/1.713, allocations: 47.98 kB / 0.6298 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00539/1.718, allocations: 1.953 MB / 0.6317 GB, free: 13.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7858/2.504, allocations: 78.91 MB / 0.7087 GB, free: 30.42 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0109/2.515, allocations: 5.981 MB / 0.7146 GB, free: 29.19 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007827/2.523, allocations: 3.867 MB / 0.7184 GB, free: 28.96 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04618/2.569, allocations: 17.97 MB / 0.7359 GB, free: 19.89 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.514e-05/2.569, allocations: 70.12 kB / 0.736 GB, free: 19.83 MB / 426.8 MB Notification: Performance of pre-optimization done (n=334): time 7.865e-06/2.569, allocations: 0 / 0.736 GB, free: 19.83 MB / 426.8 MB Notification: Performance of matching and sorting (n=426): time 0.1087/2.678, allocations: 26.44 MB / 0.7618 GB, free: 10.57 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/2.678, allocations: 198 kB / 0.762 GB, free: 10.38 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01057/2.689, allocations: 5.066 MB / 0.7669 GB, free: 8.273 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009732/2.69, allocations: 25.7 kB / 0.767 GB, free: 8.242 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004329/2.694, allocations: 5.39 MB / 0.7722 GB, free: 3.402 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002436/2.696, allocations: 1.524 MB / 0.7737 GB, free: 2.027 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/2.698, allocations: 7 kB / 0.7737 GB, free: 2.023 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0007653/2.699, allocations: 0.7771 MB / 0.7745 GB, free: 1.371 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02505/2.724, allocations: 4.859 MB / 0.7792 GB, free: 0 / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01727/2.741, allocations: 10.02 MB / 0.789 GB, free: 3.82 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01897/2.76, allocations: 6.465 MB / 0.7953 GB, free: 14.8 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000253/2.76, allocations: 64 kB / 0.7954 GB, free: 14.74 MB / 458.8 MB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.05322/2.814, allocations: 14.67 MB / 0.8097 GB, free: 2.402 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001955/2.814, allocations: 96.97 kB / 0.8098 GB, free: 2.309 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004163/2.814, allocations: 212 kB / 0.81 GB, free: 2.102 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01404/2.828, allocations: 2.303 MB / 0.8122 GB, free: 444 kB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.333/3.161, allocations: 2.546 MB / 0.8147 GB, free: 94.07 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03111/3.193, allocations: 11.13 MB / 0.8256 GB, free: 92.73 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01335/3.206, allocations: 0.489 MB / 0.8261 GB, free: 92.73 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0032/3.209, allocations: 0.6129 MB / 0.8267 GB, free: 92.73 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 979 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1330): * Single equations (assignments): 1323 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004174/3.213, allocations: 0.6394 MB / 0.8273 GB, free: 92.62 MB / 458.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02978/3.243, allocations: 7.871 MB / 0.835 GB, free: 92.47 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002035/3.245, allocations: 0.5722 MB / 0.8355 GB, free: 92.46 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02872/3.274, allocations: 7.939 MB / 0.8433 GB, free: 92.23 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000143/3.274, allocations: 65.05 kB / 0.8434 GB, free: 92.23 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-05/3.274, allocations: 10.69 kB / 0.8434 GB, free: 92.23 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.887e-05/3.274, allocations: 21.78 kB / 0.8434 GB, free: 92.23 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05686/3.331, allocations: 17.15 MB / 0.8601 GB, free: 89.02 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.038e-05/3.331, allocations: 14.09 kB / 0.8602 GB, free: 89.02 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006062/3.337, allocations: 0.6527 MB / 0.8608 GB, free: 89 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01173/3.349, allocations: 1.804 MB / 0.8626 GB, free: 88.69 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000785/3.35, allocations: 22.02 kB / 0.8626 GB, free: 88.69 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02272/3.373, allocations: 9.412 MB / 0.8718 GB, free: 84.22 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-05/3.373, allocations: 17.58 kB / 0.8718 GB, free: 84.22 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03279/3.406, allocations: 14 MB / 0.8855 GB, free: 76.96 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004297/3.41, allocations: 1.136 MB / 0.8866 GB, free: 76.33 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001897/3.412, allocations: 23.34 kB / 0.8866 GB, free: 76.33 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005364/3.417, allocations: 191.2 kB / 0.8868 GB, free: 76.33 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009531/3.418, allocations: 264.3 kB / 0.887 GB, free: 76.28 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003982/3.419, allocations: 118.8 kB / 0.8871 GB, free: 76.25 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.007533/3.426, allocations: 3.367 MB / 0.8904 GB, free: 75.04 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.102e-06/3.426, allocations: 0 / 0.8904 GB, free: 75.04 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01292/3.439, allocations: 1.686 MB / 0.8921 GB, free: 75.04 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * Number of states: 2 (j2.s,j2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (337): * Single equations (assignments): 330 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03408/3.473, allocations: 17 MB / 0.9087 GB, free: 63.12 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02075/3.494, allocations: 9.375 MB / 0.9178 GB, free: 54.84 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.745e-05/3.494, allocations: 4 kB / 0.9178 GB, free: 54.84 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007536/3.502, allocations: 3.259 MB / 0.921 GB, free: 51.84 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005413/3.507, allocations: 0.57 MB / 0.9216 GB, free: 51.36 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05638/3.564, allocations: 17.86 MB / 0.939 GB, free: 35.82 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01412/3.578, allocations: 5.772 MB / 0.9446 GB, free: 31.59 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009358/3.587, allocations: 3.748 MB / 0.9483 GB, free: 28.1 MB / 458.8 MB Notification: Performance of SimCode: time 1.884e-06/3.587, allocations: 0 / 0.9483 GB, free: 28.1 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.841/9.428, allocations: 180.6 MB / 1.125 GB, free: 0.6133 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat