Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.486/2.486, allocations: 235.2 MB / 242.3 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.89e-05/1.894e-05, allocations: 0 / 299.6 MB, free: 6.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3829/0.3829, allocations: 54.86 MB / 354.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2092/0.5922, allocations: 110.1 MB / 464.6 MB, free: 3.996 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000299/0.5926, allocations: 83.95 kB / 464.6 MB, free: 3.914 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.048/1.64, allocations: 168.6 MB / 0.6184 GB, free: 8.309 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.357e-06/1.64, allocations: 0 / 0.6184 GB, free: 8.309 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004677/1.641, allocations: 147.9 kB / 0.6186 GB, free: 8.164 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.03275/1.673, allocations: 7.694 MB / 0.6261 GB, free: 400 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.75e-05/1.673, allocations: 8.031 kB / 0.6261 GB, free: 392 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06243/1.736, allocations: 6.944 MB / 0.6329 GB, free: 9.414 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03993/1.776, allocations: 9.837 MB / 0.6425 GB, free: 15.49 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00066/1.777, allocations: 248 kB / 0.6427 GB, free: 15.25 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004916/1.782, allocations: 455.8 kB / 0.6431 GB, free: 14.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03912/1.821, allocations: 13.16 MB / 0.656 GB, free: 1.641 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7427/2.563, allocations: 17.6 MB / 0.6732 GB, free: 65.64 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005166/2.564, allocations: 92.95 kB / 0.6733 GB, free: 65.64 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00357/2.568, allocations: 44.23 kB / 0.6733 GB, free: 65.64 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004863/2.572, allocations: 1.961 MB / 0.6752 GB, free: 65.62 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1414/2.714, allocations: 78.91 MB / 0.7523 GB, free: 19.84 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01152/2.726, allocations: 5.989 MB / 0.7581 GB, free: 16.65 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008312/2.734, allocations: 3.869 MB / 0.7619 GB, free: 15.05 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04891/2.783, allocations: 17.96 MB / 0.7795 GB, free: 5.973 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.401e-05/2.783, allocations: 72.23 kB / 0.7795 GB, free: 5.906 MB / 458.8 MB Notification: Performance of pre-optimization done (n=334): time 9.939e-06/2.783, allocations: 0 / 0.7795 GB, free: 5.906 MB / 458.8 MB Notification: Performance of matching and sorting (n=426): time 0.1294/2.912, allocations: 26.99 MB / 0.8059 GB, free: 7.391 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001433/2.913, allocations: 193 kB / 0.8061 GB, free: 7.164 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01197/2.925, allocations: 5.056 MB / 0.811 GB, free: 2.723 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009501/2.926, allocations: 28.05 kB / 0.811 GB, free: 2.691 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006165/2.932, allocations: 5.523 MB / 0.8164 GB, free: 13.68 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002703/2.935, allocations: 1.517 MB / 0.8179 GB, free: 12.31 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001129/2.936, allocations: 0 / 0.8179 GB, free: 12.31 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0008475/2.937, allocations: 0.7675 MB / 0.8186 GB, free: 11.67 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01156/2.948, allocations: 3.976 MB / 0.8225 GB, free: 8.078 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01746/2.966, allocations: 10.01 MB / 0.8323 GB, free: 11.81 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01935/2.985, allocations: 6.4 MB / 0.8386 GB, free: 6.402 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002483/2.985, allocations: 60 kB / 0.8386 GB, free: 6.344 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1431) (initialization): time 0.4359/3.421, allocations: 14.82 MB / 0.8531 GB, free: 103.1 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002138/3.422, allocations: 97.44 kB / 0.8532 GB, free: 103.1 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004673/3.422, allocations: 214.1 kB / 0.8534 GB, free: 103.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01502/3.437, allocations: 2.306 MB / 0.8556 GB, free: 103 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01754/3.455, allocations: 2.547 MB / 0.8581 GB, free: 103 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0287/3.483, allocations: 11.13 MB / 0.869 GB, free: 101.7 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01334/3.497, allocations: 496.7 kB / 0.8695 GB, free: 101.7 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002538/3.499, allocations: 0.6184 MB / 0.8701 GB, free: 101.7 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.002738/3.502, allocations: 0.6365 MB / 0.8707 GB, free: 101.6 MB / 0.4949 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02862/3.531, allocations: 7.879 MB / 0.8784 GB, free: 101.4 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002014/3.533, allocations: 0.5674 MB / 0.8789 GB, free: 101.4 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02969/3.563, allocations: 7.937 MB / 0.8867 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001387/3.563, allocations: 64.7 kB / 0.8867 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.619e-05/3.563, allocations: 9.531 kB / 0.8868 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.924e-05/3.563, allocations: 20.61 kB / 0.8868 GB, free: 101.2 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05869/3.622, allocations: 17.17 MB / 0.9035 GB, free: 97.43 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.824e-05/3.622, allocations: 12.72 kB / 0.9036 GB, free: 97.43 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006317/3.628, allocations: 0.6516 MB / 0.9042 GB, free: 97.41 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01299/3.641, allocations: 1.802 MB / 0.906 GB, free: 97.1 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008453/3.642, allocations: 20.67 kB / 0.906 GB, free: 97.1 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03202/3.674, allocations: 9.408 MB / 0.9152 GB, free: 92.62 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.81e-05/3.674, allocations: 21.91 kB / 0.9152 GB, free: 92.62 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03691/3.711, allocations: 13.99 MB / 0.9289 GB, free: 85.36 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00447/3.715, allocations: 1.133 MB / 0.93 GB, free: 84.73 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002103/3.718, allocations: 22.19 kB / 0.93 GB, free: 84.73 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006419/3.724, allocations: 197.3 kB / 0.9302 GB, free: 84.73 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00145/3.725, allocations: 262.4 kB / 0.9304 GB, free: 84.68 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006057/3.726, allocations: 115.5 kB / 0.9305 GB, free: 84.66 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.009012/3.735, allocations: 3.366 MB / 0.9338 GB, free: 83.44 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.763e-06/3.735, allocations: 0 / 0.9338 GB, free: 83.44 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01396/3.749, allocations: 1.685 MB / 0.9355 GB, free: 83.44 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.03882/3.788, allocations: 17 MB / 0.9521 GB, free: 67.98 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.02201/3.81, allocations: 9.381 MB / 0.9612 GB, free: 59.83 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-05/3.81, allocations: 4 kB / 0.9612 GB, free: 59.82 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008046/3.818, allocations: 3.257 MB / 0.9644 GB, free: 56.83 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005506/3.824, allocations: 0.5652 MB / 0.965 GB, free: 56.35 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05583/3.88, allocations: 16.97 MB / 0.9815 GB, free: 41.54 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0135/3.893, allocations: 5.766 MB / 0.9872 GB, free: 37.31 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01796/3.911, allocations: 3.484 MB / 0.9906 GB, free: 35.16 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009046/3.92, allocations: 3.666 MB / 0.9941 GB, free: 31.74 MB / 0.4949 GB Notification: Performance of SimCode: time 1.703e-06/3.92, allocations: 0 / 0.9941 GB, free: 31.74 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7096/4.63, allocations: 135.5 MB / 1.127 GB, free: 83.64 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000257/4.63, allocations: 143 kB / 1.127 GB, free: 83.45 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.212/12.84, allocations: 3.938 kB / 1.127 GB, free: 83.45 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat