Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.289/2.289, allocations: 235 MB / 247.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.368e-05/4.378e-05, allocations: 0 / 305 MB, free: 5.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4225/0.4226, allocations: 54.86 MB / 359.9 MB, free: 3.125 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2081/0.6308, allocations: 108.7 MB / 468.6 MB, free: 4.148 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.6311, allocations: 75.95 kB / 468.7 MB, free: 4.074 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8924/1.523, allocations: 142.3 MB / 0.5967 GB, free: 92.83 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.524, allocations: 0 / 0.5967 GB, free: 92.83 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005001/1.524, allocations: 135.7 kB / 0.5968 GB, free: 92.83 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: 2163 * Number of variables: 2163 Notification: Performance of Generate backend data structure: time 0.02735/1.551, allocations: 6.64 MB / 0.6033 GB, free: 86.8 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/1.551, allocations: 8.031 kB / 0.6033 GB, free: 86.8 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005882/1.557, allocations: 1.281 MB / 0.6045 GB, free: 85.54 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0669/1.624, allocations: 9.33 MB / 0.6136 GB, free: 76.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03301/1.657, allocations: 9.121 MB / 0.6225 GB, free: 67 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005933/1.658, allocations: 484.7 kB / 0.623 GB, free: 66.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00352/1.662, allocations: 0.6325 MB / 0.6236 GB, free: 65.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05075/1.712, allocations: 15.54 MB / 0.6388 GB, free: 49.15 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005345/1.713, allocations: 79.23 kB / 0.6389 GB, free: 49.07 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003363/1.716, allocations: 307.8 kB / 0.6392 GB, free: 48.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003222/1.72, allocations: 1.374 MB / 0.6405 GB, free: 47.39 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04167/1.761, allocations: 12.72 MB / 0.6529 GB, free: 34.65 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4876/2.249, allocations: 64.37 MB / 0.7158 GB, free: 59.93 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03249/2.282, allocations: 6.233 MB / 0.7219 GB, free: 59.25 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007012/2.289, allocations: 3.113 MB / 0.7249 GB, free: 59.21 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02907/2.318, allocations: 11.17 MB / 0.7358 GB, free: 56.45 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.023e-05/2.318, allocations: 65.47 kB / 0.7359 GB, free: 56.41 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 6.662e-06/2.318, allocations: 0 / 0.7359 GB, free: 56.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=337): time 0.1876/2.506, allocations: 29.65 MB / 0.7648 GB, free: 52.57 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/2.506, allocations: 242.6 kB / 0.7651 GB, free: 52.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01374/2.519, allocations: 4.926 MB / 0.7699 GB, free: 51.89 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001025/2.521, allocations: 76.8 kB / 0.7699 GB, free: 51.85 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004785/2.525, allocations: 4.464 MB / 0.7743 GB, free: 48.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00207/2.527, allocations: 1.236 MB / 0.7755 GB, free: 47.53 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001419/2.529, allocations: 162.3 kB / 0.7757 GB, free: 47.41 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008291/2.53, allocations: 0.6553 MB / 0.7763 GB, free: 46.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009557/2.539, allocations: 3.53 MB / 0.7798 GB, free: 45.62 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01345/2.553, allocations: 8.048 MB / 0.7876 GB, free: 38.25 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01284/2.566, allocations: 5.287 MB / 0.7928 GB, free: 36.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001878/2.566, allocations: 43.62 kB / 0.7928 GB, free: 36.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.04911/2.615, allocations: 14.57 MB / 0.807 GB, free: 28.04 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001296/2.615, allocations: 72.19 kB / 0.8071 GB, free: 27.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002473/2.616, allocations: 164 kB / 0.8073 GB, free: 27.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02124/2.637, allocations: 3.558 MB / 0.8107 GB, free: 25.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01173/2.649, allocations: 1.791 MB / 0.8125 GB, free: 23.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04356/2.692, allocations: 17.92 MB / 0.83 GB, free: 8.375 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01067/2.703, allocations: 482.8 kB / 0.8305 GB, free: 7.977 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002224/2.705, allocations: 468.1 kB / 0.8309 GB, free: 7.523 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 721 * Number of states: 0 () * Number of discrete variables: 43 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (969): * Single equations (assignments): 965 * Array equations: 3 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003633/2.709, allocations: 0.7194 MB / 0.8316 GB, free: 6.805 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002059/2.711, allocations: 0.5207 MB / 0.8321 GB, free: 6.277 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03652/2.748, allocations: 8.858 MB / 0.8408 GB, free: 15.28 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.023e-05/2.748, allocations: 36 kB / 0.8408 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.701e-05/2.748, allocations: 12 kB / 0.8408 GB, free: 15.23 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.937e-05/2.748, allocations: 23.88 kB / 0.8408 GB, free: 15.21 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07501/2.823, allocations: 18.6 MB / 0.859 GB, free: 12.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.86e-05/2.823, allocations: 9.375 kB / 0.859 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004861/2.828, allocations: 495.2 kB / 0.8595 GB, free: 11.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0215/2.85, allocations: 3.095 MB / 0.8625 GB, free: 8.879 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009664/2.851, allocations: 60.81 kB / 0.8626 GB, free: 8.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04435/2.895, allocations: 15.58 MB / 0.8778 GB, free: 9.105 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.45e-05/2.895, allocations: 7.938 kB / 0.8778 GB, free: 9.098 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04781/2.943, allocations: 14.04 MB / 0.8915 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004971/2.948, allocations: 1.092 MB / 0.8926 GB, free: 9.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00222/2.95, allocations: 63.98 kB / 0.8926 GB, free: 9.527 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006227/2.956, allocations: 207.8 kB / 0.8928 GB, free: 9.324 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001607/2.958, allocations: 216.5 kB / 0.893 GB, free: 9.113 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007455/2.959, allocations: 88 kB / 0.8931 GB, free: 9.027 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01126/2.97, allocations: 3.483 MB / 0.8965 GB, free: 5.574 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.002e-06/2.97, allocations: 0 / 0.8965 GB, free: 5.574 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0124/2.983, allocations: 1.679 MB / 0.8982 GB, free: 3.91 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * Array equations: 3 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4179/3.401, allocations: 15.95 MB / 0.9137 GB, free: 150.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02341/3.424, allocations: 8.785 MB / 0.9223 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/3.424, allocations: 3.469 kB / 0.9223 GB, free: 150.7 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008715/3.433, allocations: 3.43 MB / 0.9257 GB, free: 150.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00647/3.439, allocations: 0.6807 MB / 0.9263 GB, free: 150.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05301/3.492, allocations: 15.06 MB / 0.941 GB, free: 147.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01313/3.506, allocations: 4.964 MB / 0.9459 GB, free: 145.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01376/3.519, allocations: 2.6 MB / 0.9484 GB, free: 145.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00808/3.528, allocations: 3.048 MB / 0.9514 GB, free: 143 MB / 0.5261 GB Notification: Performance of SimCode: time 1.813e-06/3.528, allocations: 0 / 0.9514 GB, free: 143 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2877/3.815, allocations: 132.3 MB / 1.081 GB, free: 40.19 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002581/3.816, allocations: 172.6 kB / 1.081 GB, free: 39.96 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.477/11.29, allocations: 0 / 1.081 GB, free: 39.96 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat