Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.62/2.62, allocations: 235.1 MB / 242.2 MB, free: 15.84 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.55e-05/2.565e-05, allocations: 0 / 299.5 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4066/0.4067, allocations: 54.85 MB / 354.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1987/0.6055, allocations: 110.1 MB / 464.5 MB, free: 4.023 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.6058, allocations: 75.95 kB / 464.5 MB, free: 3.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9754/1.581, allocations: 168.6 MB / 0.6183 GB, free: 8.348 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.374e-06/1.581, allocations: 0 / 0.6183 GB, free: 8.348 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004513/1.582, allocations: 151.9 kB / 0.6185 GB, free: 8.199 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.03221/1.614, allocations: 7.694 MB / 0.626 GB, free: 436 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/1.614, allocations: 8.031 kB / 0.626 GB, free: 428 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05653/1.671, allocations: 6.948 MB / 0.6328 GB, free: 9.445 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03803/1.709, allocations: 9.833 MB / 0.6424 GB, free: 15.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006816/1.709, allocations: 252 kB / 0.6426 GB, free: 15.28 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004667/1.714, allocations: 455.8 kB / 0.6431 GB, free: 14.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03685/1.751, allocations: 13.15 MB / 0.6559 GB, free: 1.676 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7134/2.464, allocations: 17.61 MB / 0.6731 GB, free: 65.5 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000438/2.465, allocations: 98.09 kB / 0.6732 GB, free: 65.5 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00368/2.469, allocations: 42.7 kB / 0.6732 GB, free: 65.5 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004545/2.473, allocations: 1.956 MB / 0.6751 GB, free: 65.48 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1334/2.607, allocations: 78.91 MB / 0.7522 GB, free: 19.77 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01085/2.618, allocations: 5.985 MB / 0.758 GB, free: 16.57 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008303/2.626, allocations: 3.863 MB / 0.7618 GB, free: 14.97 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04813/2.674, allocations: 17.97 MB / 0.7794 GB, free: 5.895 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.653e-05/2.674, allocations: 71.72 kB / 0.7794 GB, free: 5.832 MB / 458.8 MB Notification: Performance of pre-optimization done (n=334): time 6.833e-06/2.674, allocations: 0 / 0.7794 GB, free: 5.832 MB / 458.8 MB Notification: Performance of matching and sorting (n=426): time 0.1227/2.797, allocations: 26.97 MB / 0.8058 GB, free: 7.387 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/2.797, allocations: 195.1 kB / 0.806 GB, free: 7.16 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01436/2.812, allocations: 5.057 MB / 0.8109 GB, free: 2.719 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009918/2.813, allocations: 25.7 kB / 0.8109 GB, free: 2.688 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006346/2.819, allocations: 5.525 MB / 0.8163 GB, free: 13.67 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002788/2.822, allocations: 1.513 MB / 0.8178 GB, free: 12.31 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001339/2.823, allocations: 0 / 0.8178 GB, free: 12.31 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.000931/2.824, allocations: 0.7694 MB / 0.8185 GB, free: 11.67 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01059/2.835, allocations: 3.972 MB / 0.8224 GB, free: 8.078 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01734/2.852, allocations: 10.02 MB / 0.8322 GB, free: 11.81 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01828/2.871, allocations: 6.393 MB / 0.8384 GB, free: 6.395 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002543/2.871, allocations: 60 kB / 0.8385 GB, free: 6.336 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.412/3.283, allocations: 14.83 MB / 0.853 GB, free: 103 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002216/3.283, allocations: 101 kB / 0.8531 GB, free: 103 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004733/3.284, allocations: 216.4 kB / 0.8533 GB, free: 103 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01367/3.297, allocations: 2.306 MB / 0.8555 GB, free: 103 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01665/3.314, allocations: 2.542 MB / 0.858 GB, free: 103 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03552/3.35, allocations: 11.11 MB / 0.8689 GB, free: 101.6 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02004/3.37, allocations: 0.492 MB / 0.8694 GB, free: 101.6 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003453/3.373, allocations: 0.6154 MB / 0.87 GB, free: 101.6 MB / 0.4949 GB 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.004991/3.378, allocations: 0.6393 MB / 0.8706 GB, free: 101.5 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04167/3.42, allocations: 7.874 MB / 0.8783 GB, free: 101.3 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002093/3.422, allocations: 0.5685 MB / 0.8788 GB, free: 101.3 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02931/3.452, allocations: 7.941 MB / 0.8866 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001486/3.452, allocations: 65.34 kB / 0.8866 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.589e-05/3.452, allocations: 14.47 kB / 0.8867 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.6e-05/3.452, allocations: 17.48 kB / 0.8867 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06015/3.512, allocations: 17.17 MB / 0.9034 GB, free: 97.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.305e-05/3.512, allocations: 12.72 kB / 0.9035 GB, free: 97.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006031/3.518, allocations: 0.6467 MB / 0.9041 GB, free: 97.38 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01211/3.53, allocations: 1.802 MB / 0.9058 GB, free: 97.07 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009316/3.531, allocations: 24.33 kB / 0.9059 GB, free: 97.07 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02378/3.555, allocations: 9.411 MB / 0.9151 GB, free: 92.59 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-05/3.555, allocations: 17.84 kB / 0.9151 GB, free: 92.59 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03381/3.589, allocations: 14 MB / 0.9287 GB, free: 85.33 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004388/3.593, allocations: 1.127 MB / 0.9298 GB, free: 84.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002516/3.596, allocations: 18.77 kB / 0.9299 GB, free: 84.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006289/3.602, allocations: 198.3 kB / 0.9301 GB, free: 84.7 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001437/3.604, allocations: 270.7 kB / 0.9303 GB, free: 84.65 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007384/3.605, allocations: 116.1 kB / 0.9304 GB, free: 84.62 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.008743/3.613, allocations: 3.366 MB / 0.9337 GB, free: 83.41 MB / 0.4949 GB Notification: Performance of sort global known variables: time 8.41e-07/3.613, allocations: 0 / 0.9337 GB, free: 83.41 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01324/3.627, allocations: 1.68 MB / 0.9354 GB, free: 83.41 MB / 0.4949 GB 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.03603/3.663, allocations: 17 MB / 0.952 GB, free: 67.94 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02134/3.684, allocations: 9.378 MB / 0.9611 GB, free: 59.79 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 2.121e-05/3.684, allocations: 0 / 0.9611 GB, free: 59.79 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008336/3.693, allocations: 3.258 MB / 0.9643 GB, free: 56.79 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005632/3.698, allocations: 0.5709 MB / 0.9649 GB, free: 56.31 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05443/3.753, allocations: 16.98 MB / 0.9814 GB, free: 41.5 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01431/3.767, allocations: 5.762 MB / 0.9871 GB, free: 37.27 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01661/3.784, allocations: 3.482 MB / 0.9905 GB, free: 35.11 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008828/3.793, allocations: 3.67 MB / 0.994 GB, free: 31.69 MB / 0.4949 GB Notification: Performance of SimCode: time 1.553e-06/3.793, allocations: 3.656 kB / 0.994 GB, free: 31.69 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6821/4.475, allocations: 135.5 MB / 1.126 GB, free: 83.56 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002127/4.475, allocations: 142.5 kB / 1.127 GB, free: 83.37 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.572/13.05, allocations: 0 / 1.127 GB, free: 83.37 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat