Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.556/2.556, allocations: 270 MB / 283.6 MB, free: 1.961 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.685e-05/4.702e-05, allocations: 4 kB / 348.5 MB, free: 2.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4668/0.4669, allocations: 61.86 MB / 410.4 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.219/0.686, allocations: 118.1 MB / 0.5161 GB, free: 4.371 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.6863, allocations: 75.97 kB / 0.5162 GB, free: 4.297 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.078/1.765, allocations: 156.5 MB / 0.669 GB, free: 2.492 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.996e-06/1.765, allocations: 0 / 0.669 GB, free: 2.492 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0006512/1.765, allocations: 132 kB / 0.6691 GB, free: 2.363 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2564 * Number of variables: 2564 Notification: Performance of Generate backend data structure: time 0.04101/1.806, allocations: 6.542 MB / 0.6755 GB, free: 11.74 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.729e-05/1.807, allocations: 12.03 kB / 0.6755 GB, free: 11.73 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009848/1.816, allocations: 1.487 MB / 0.677 GB, free: 10.23 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06036/1.877, allocations: 6.683 MB / 0.6835 GB, free: 3.527 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03309/1.91, allocations: 7.942 MB / 0.6913 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008904/1.911, allocations: 0.5294 MB / 0.6918 GB, free: 10.99 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004536/1.916, allocations: 0.7067 MB / 0.6925 GB, free: 10.29 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0672/1.983, allocations: 18.61 MB / 0.7106 GB, free: 6.336 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000597/1.983, allocations: 79.19 kB / 0.7107 GB, free: 6.258 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004016/1.987, allocations: 339.8 kB / 0.711 GB, free: 5.926 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004541/1.992, allocations: 1.727 MB / 0.7127 GB, free: 4.195 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.8601/2.852, allocations: 15.97 MB / 0.7283 GB, free: 91.03 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1311/2.983, allocations: 74.15 MB / 0.8007 GB, free: 49.31 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02689/3.01, allocations: 6.083 MB / 0.8067 GB, free: 46.81 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006788/3.017, allocations: 2.709 MB / 0.8093 GB, free: 45.75 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03912/3.056, allocations: 13.88 MB / 0.8229 GB, free: 38.34 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.854e-05/3.057, allocations: 60.8 kB / 0.8229 GB, free: 38.28 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=284): time 6.963e-06/3.057, allocations: 0 / 0.8229 GB, free: 38.28 MB / 0.5105 GB Notification: Performance of matching and sorting (n=344): time 0.1082/3.165, allocations: 19.15 MB / 0.8416 GB, free: 31.91 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/3.165, allocations: 189.7 kB / 0.8418 GB, free: 31.71 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01386/3.179, allocations: 5.138 MB / 0.8468 GB, free: 27.39 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008212/3.18, allocations: 76.27 kB / 0.8469 GB, free: 27.31 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004658/3.184, allocations: 5 MB / 0.8518 GB, free: 22.84 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002021/3.186, allocations: 1.27 MB / 0.853 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001605/3.188, allocations: 190.7 kB / 0.8532 GB, free: 21.53 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001/3.189, allocations: 0.7145 MB / 0.8539 GB, free: 20.93 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00876/3.198, allocations: 3.14 MB / 0.857 GB, free: 18.06 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01276/3.211, allocations: 8.555 MB / 0.8653 GB, free: 7.488 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/3.223, allocations: 5.199 MB / 0.8704 GB, free: 3.293 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002234/3.223, allocations: 56 kB / 0.8704 GB, free: 3.238 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1241) (initialization): time 0.04165/3.265, allocations: 11.99 MB / 0.8821 GB, free: 8.801 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001822/3.265, allocations: 86.03 kB / 0.8822 GB, free: 8.719 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003804/3.266, allocations: 196 kB / 0.8824 GB, free: 8.527 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008206/3.274, allocations: 1.318 MB / 0.8837 GB, free: 7.496 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01493/3.289, allocations: 2.183 MB / 0.8858 GB, free: 5.598 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02033/3.309, allocations: 7.111 MB / 0.8928 GB, free: 15.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01148/3.321, allocations: 0.5603 MB / 0.8933 GB, free: 14.73 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00263/3.324, allocations: 0.5499 MB / 0.8939 GB, free: 14.18 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 879 * Number of states: 0 () * Number of discrete variables: 46 (jointSSR.revolute.positiveBranch,Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],FixedFrame1.color_x[3],FixedFrame1.color_x[2],FixedFrame1.color_x[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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.groundColor[3],world.groundColor[2],world.groundColor[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 (1155): * Single equations (assignments): 1148 * 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%) 37} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003957/3.328, allocations: 0.8041 MB / 0.8947 GB, free: 13.38 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001944/3.33, allocations: 0.5283 MB / 0.8952 GB, free: 12.84 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02267/3.352, allocations: 5.262 MB / 0.9003 GB, free: 8.441 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/3.352, allocations: 39.83 kB / 0.9003 GB, free: 8.406 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.553e-05/3.352, allocations: 8 kB / 0.9004 GB, free: 8.398 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.141e-05/3.353, allocations: 14.02 kB / 0.9004 GB, free: 8.398 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05963/3.412, allocations: 14.43 MB / 0.9145 GB, free: 13.73 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-05/3.412, allocations: 15.56 kB / 0.9145 GB, free: 13.71 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005016/3.417, allocations: 0.5326 MB / 0.915 GB, free: 13.28 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006936/3.424, allocations: 0.9193 MB / 0.9159 GB, free: 12.62 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000843/3.425, allocations: 67.7 kB / 0.916 GB, free: 12.56 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01615/3.441, allocations: 5.41 MB / 0.9212 GB, free: 7.656 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.752e-05/3.442, allocations: 15.94 kB / 0.9213 GB, free: 7.641 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4361/3.878, allocations: 10.14 MB / 0.9312 GB, free: 127.8 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/3.88, allocations: 0.5667 MB / 0.9317 GB, free: 127.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001797/3.881, allocations: 65.42 kB / 0.9318 GB, free: 127.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006035/3.888, allocations: 193.7 kB / 0.932 GB, free: 127.7 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00116/3.889, allocations: 220.8 kB / 0.9322 GB, free: 127.7 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004588/3.889, allocations: 102.3 kB / 0.9323 GB, free: 127.7 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0126/3.902, allocations: 3.541 MB / 0.9357 GB, free: 127.5 MB / 0.5574 GB Notification: Performance of sort global known variables: time 2.445e-06/3.902, allocations: 0 / 0.9357 GB, free: 127.5 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01584/3.918, allocations: 1.659 MB / 0.9373 GB, free: 127.5 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 (267): * Single equations (assignments): 260 * 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%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03369/3.951, allocations: 13.17 MB / 0.9502 GB, free: 121.8 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0217/3.973, allocations: 7.334 MB / 0.9574 GB, free: 121.6 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-05/3.973, allocations: 3.969 kB / 0.9574 GB, free: 121.6 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.006556/3.98, allocations: 2.312 MB / 0.9596 GB, free: 121.5 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005927/3.986, allocations: 0.6374 MB / 0.9603 GB, free: 121.5 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04895/4.035, allocations: 15.01 MB / 0.9749 GB, free: 118.6 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01278/4.048, allocations: 5.318 MB / 0.9801 GB, free: 117.7 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.01432/4.062, allocations: 3.036 MB / 0.9831 GB, free: 117.6 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008056/4.07, allocations: 3.376 MB / 0.9864 GB, free: 117.5 MB / 0.5574 GB Notification: Performance of SimCode: time 1.834e-06/4.07, allocations: 0 / 0.9864 GB, free: 117.5 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2936/4.364, allocations: 122.7 MB / 1.106 GB, free: 33.11 MB / 0.5574 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002039/4.364, allocations: 171.6 kB / 1.106 GB, free: 32.88 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.069/12.43, allocations: 0 / 1.106 GB, free: 32.88 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat