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.245/2.245, allocations: 235 MB / 247.2 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.827e-05/3.832e-05, allocations: 0 / 305 MB, free: 5.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4413/0.4414, allocations: 54.85 MB / 359.9 MB, free: 2.789 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1997/0.6411, allocations: 108.7 MB / 468.6 MB, free: 4.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.6415, allocations: 72.56 kB / 468.7 MB, free: 3.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8806/1.522, allocations: 142.3 MB / 0.5967 GB, free: 92.69 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.876e-06/1.522, allocations: 4 kB / 0.5967 GB, free: 92.69 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004953/1.523, allocations: 125.2 kB / 0.5968 GB, free: 92.69 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.02722/1.55, allocations: 6.647 MB / 0.6033 GB, free: 86.58 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/1.55, allocations: 12.03 kB / 0.6033 GB, free: 86.57 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005992/1.556, allocations: 1.273 MB / 0.6046 GB, free: 85.31 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06608/1.622, allocations: 9.333 MB / 0.6137 GB, free: 75.96 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03238/1.655, allocations: 9.124 MB / 0.6226 GB, free: 66.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006071/1.655, allocations: 484.7 kB / 0.623 GB, free: 66.27 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003493/1.659, allocations: 0.6325 MB / 0.6237 GB, free: 65.64 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04857/1.707, allocations: 15.46 MB / 0.6388 GB, free: 48.99 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004725/1.708, allocations: 91.17 kB / 0.6388 GB, free: 48.9 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003038/1.711, allocations: 295.9 kB / 0.6391 GB, free: 48.61 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003122/1.714, allocations: 1.381 MB / 0.6405 GB, free: 47.22 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04127/1.755, allocations: 12.49 MB / 0.6527 GB, free: 34.71 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4771/2.233, allocations: 64.37 MB / 0.7155 GB, free: 59.32 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03174/2.264, allocations: 6.199 MB / 0.7216 GB, free: 58.64 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006934/2.271, allocations: 3.112 MB / 0.7246 GB, free: 58.61 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02849/2.3, allocations: 11.17 MB / 0.7355 GB, free: 55.85 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.994e-05/2.3, allocations: 64.7 kB / 0.7356 GB, free: 55.81 MB / 474.7 MB Notification: Performance of pre-optimization done (n=245): time 6.822e-06/2.3, allocations: 0 / 0.7356 GB, free: 55.81 MB / 474.7 MB Notification: Performance of matching and sorting (n=337): time 0.2197/2.52, allocations: 29.64 MB / 0.7645 GB, free: 51.97 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001088/2.52, allocations: 245.1 kB / 0.7648 GB, free: 51.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01305/2.533, allocations: 4.928 MB / 0.7696 GB, free: 50.98 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009527/2.534, allocations: 79.56 kB / 0.7697 GB, free: 50.91 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004389/2.538, allocations: 4.464 MB / 0.774 GB, free: 47.52 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002082/2.541, allocations: 1.237 MB / 0.7752 GB, free: 46.61 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001565/2.542, allocations: 166.5 kB / 0.7754 GB, free: 46.48 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.00084/2.543, allocations: 0.6501 MB / 0.776 GB, free: 46.02 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01323/2.556, allocations: 3.528 MB / 0.7795 GB, free: 44.69 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01331/2.57, allocations: 7.999 MB / 0.7873 GB, free: 37.35 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01184/2.582, allocations: 5.281 MB / 0.7924 GB, free: 35.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001575/2.582, allocations: 46.25 kB / 0.7925 GB, free: 35.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.04736/2.629, allocations: 14.13 MB / 0.8063 GB, free: 27.54 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/2.629, allocations: 72 kB / 0.8064 GB, free: 27.46 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002323/2.63, allocations: 160.5 kB / 0.8065 GB, free: 27.31 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02063/2.65, allocations: 3.559 MB / 0.81 GB, free: 24.85 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01135/2.662, allocations: 1.798 MB / 0.8117 GB, free: 23.28 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04224/2.704, allocations: 17.92 MB / 0.8292 GB, free: 7.871 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01035/2.714, allocations: 482.5 kB / 0.8297 GB, free: 7.473 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001932/2.716, allocations: 472.3 kB / 0.8302 GB, free: 7.016 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.003279/2.72, allocations: 0.7085 MB / 0.8308 GB, free: 6.309 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001679/2.721, allocations: 0.5245 MB / 0.8314 GB, free: 5.777 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03569/2.757, allocations: 8.892 MB / 0.84 GB, free: 14.84 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.921e-05/2.757, allocations: 39.95 kB / 0.8401 GB, free: 14.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.532e-05/2.757, allocations: 16 kB / 0.8401 GB, free: 14.78 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.851e-05/2.757, allocations: 15.94 kB / 0.8401 GB, free: 14.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06901/2.826, allocations: 18.59 MB / 0.8583 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.542e-05/2.826, allocations: 8 kB / 0.8583 GB, free: 12.03 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004828/2.831, allocations: 487.3 kB / 0.8587 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02128/2.853, allocations: 3.103 MB / 0.8618 GB, free: 8.445 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009154/2.854, allocations: 64.92 kB / 0.8618 GB, free: 8.383 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04333/2.897, allocations: 15.58 MB / 0.877 GB, free: 8.664 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.495e-05/2.897, allocations: 11.94 kB / 0.8771 GB, free: 8.652 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0449/2.942, allocations: 14.04 MB / 0.8908 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004597/2.947, allocations: 1.091 MB / 0.8918 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00166/2.948, allocations: 56 kB / 0.8919 GB, free: 9.086 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005611/2.954, allocations: 206 kB / 0.8921 GB, free: 8.887 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001435/2.955, allocations: 227.7 kB / 0.8923 GB, free: 8.664 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006406/2.956, allocations: 84 kB / 0.8924 GB, free: 8.582 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01026/2.966, allocations: 3.483 MB / 0.8958 GB, free: 5.129 MB / 0.5261 GB Notification: Performance of sort global known variables: time 9.92e-07/2.966, allocations: 0 / 0.8958 GB, free: 5.129 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01185/2.978, allocations: 1.678 MB / 0.8974 GB, free: 3.461 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.4141/3.392, allocations: 15.95 MB / 0.913 GB, free: 149.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.02131/3.414, allocations: 8.52 MB / 0.9213 GB, free: 149.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.286e-05/3.414, allocations: 0 / 0.9213 GB, free: 149.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.008051/3.422, allocations: 3.39 MB / 0.9246 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006084/3.428, allocations: 0.686 MB / 0.9253 GB, free: 149.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04599/3.474, allocations: 15.03 MB / 0.94 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01123/3.485, allocations: 4.957 MB / 0.9448 GB, free: 144.5 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01237/3.498, allocations: 2.594 MB / 0.9473 GB, free: 144.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007336/3.505, allocations: 3.052 MB / 0.9503 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of SimCode: time 2.274e-06/3.505, allocations: 0 / 0.9503 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2717/3.777, allocations: 131.4 MB / 1.079 GB, free: 39.64 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002283/3.777, allocations: 175.2 kB / 1.079 GB, free: 39.41 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.472/11.25, allocations: 0 / 1.079 GB, free: 39.41 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