Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.379/2.379, allocations: 235 MB / 247.1 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.045e-05/4.064e-05, allocations: 4 kB / 305 MB, free: 5.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3856/0.3857, allocations: 54.86 MB / 359.9 MB, free: 3.129 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.22/0.6058, allocations: 109.4 MB / 469.3 MB, free: 3.422 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.6061, allocations: 79.94 kB / 469.4 MB, free: 3.344 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9157/1.522, allocations: 154.3 MB / 0.609 GB, free: 80.89 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.856e-06/1.522, allocations: 0 / 0.609 GB, free: 80.89 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003668/1.522, allocations: 136 kB / 0.6092 GB, free: 80.76 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: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.026/1.548, allocations: 6.546 MB / 0.6156 GB, free: 74.14 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/1.548, allocations: 16.02 kB / 0.6156 GB, free: 74.12 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007243/1.556, allocations: 1.486 MB / 0.617 GB, free: 72.62 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05045/1.606, allocations: 6.679 MB / 0.6236 GB, free: 65.92 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03017/1.636, allocations: 8.371 MB / 0.6317 GB, free: 57.49 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006858/1.637, allocations: 0.5333 MB / 0.6323 GB, free: 56.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004329/1.641, allocations: 0.7066 MB / 0.6329 GB, free: 56.25 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05966/1.701, allocations: 18.68 MB / 0.6512 GB, free: 36.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005881/1.702, allocations: 83.27 kB / 0.6513 GB, free: 36.14 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004098/1.706, allocations: 339.8 kB / 0.6516 GB, free: 35.81 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003906/1.71, allocations: 1.719 MB / 0.6533 GB, free: 34.09 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0525/1.762, allocations: 16.22 MB / 0.6691 GB, free: 17.85 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7991/2.562, allocations: 74.11 MB / 0.7415 GB, free: 45.93 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02676/2.588, allocations: 6.109 MB / 0.7475 GB, free: 44.68 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006876/2.595, allocations: 2.708 MB / 0.7501 GB, free: 44.63 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03828/2.634, allocations: 13.91 MB / 0.7637 GB, free: 40.28 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.423e-05/2.634, allocations: 67.89 kB / 0.7637 GB, free: 40.24 MB / 474.8 MB Notification: Performance of pre-optimization done (n=284): time 7.033e-06/2.634, allocations: 0 / 0.7637 GB, free: 40.24 MB / 474.8 MB Notification: Performance of matching and sorting (n=344): time 0.1056/2.739, allocations: 19.29 MB / 0.7826 GB, free: 36.21 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.326e-05/2.74, allocations: 190.6 kB / 0.7828 GB, free: 36.02 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01339/2.753, allocations: 5.15 MB / 0.7878 GB, free: 35.14 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007937/2.754, allocations: 77.67 kB / 0.7879 GB, free: 35.08 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004738/2.759, allocations: 5.005 MB / 0.7928 GB, free: 31.24 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002064/2.761, allocations: 1.275 MB / 0.794 GB, free: 30.31 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001374/2.762, allocations: 187.4 kB / 0.7942 GB, free: 30.16 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.00083/2.763, allocations: 0.7083 MB / 0.7949 GB, free: 29.69 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008627/2.772, allocations: 3.133 MB / 0.7979 GB, free: 28.61 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01246/2.784, allocations: 8.589 MB / 0.8063 GB, free: 20.25 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01227/2.796, allocations: 5.192 MB / 0.8114 GB, free: 18.69 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002294/2.797, allocations: 56.72 kB / 0.8114 GB, free: 18.69 MB / 474.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03852/2.835, allocations: 12.49 MB / 0.8236 GB, free: 14.69 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001534/2.836, allocations: 86.94 kB / 0.8237 GB, free: 14.69 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003016/2.836, allocations: 193.7 kB / 0.8239 GB, free: 14.69 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007611/2.843, allocations: 1.314 MB / 0.8252 GB, free: 14.46 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01374/2.857, allocations: 2.185 MB / 0.8273 GB, free: 12.9 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01698/2.874, allocations: 7.101 MB / 0.8343 GB, free: 6.523 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01105/2.885, allocations: 0.5629 MB / 0.8348 GB, free: 6.043 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002287/2.888, allocations: 0.5421 MB / 0.8353 GB, free: 5.504 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 876 * Number of states: 0 () * Number of discrete variables: 43 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1152): * Single equations (assignments): 1145 * 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.003343/2.891, allocations: 0.8076 MB / 0.8361 GB, free: 4.695 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00147/2.893, allocations: 0.5244 MB / 0.8366 GB, free: 4.164 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02037/2.913, allocations: 5.283 MB / 0.8418 GB, free: 15.77 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/2.913, allocations: 36.78 kB / 0.8418 GB, free: 15.74 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.213e-05/2.913, allocations: 4 kB / 0.8418 GB, free: 15.73 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.161e-05/2.913, allocations: 21.19 kB / 0.8419 GB, free: 15.73 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05106/2.964, allocations: 14.05 MB / 0.8556 GB, free: 3.992 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.496e-05/2.964, allocations: 8 kB / 0.8556 GB, free: 3.984 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004927/2.969, allocations: 0.5364 MB / 0.8561 GB, free: 3.547 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00676/2.976, allocations: 0.9185 MB / 0.857 GB, free: 2.887 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008121/2.977, allocations: 68.23 kB / 0.8571 GB, free: 2.824 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01536/2.992, allocations: 5.413 MB / 0.8624 GB, free: 13.92 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.862e-05/2.992, allocations: 15.94 kB / 0.8624 GB, free: 13.91 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0278/3.02, allocations: 10.13 MB / 0.8723 GB, free: 4.145 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004042/3.024, allocations: 0.9475 MB / 0.8732 GB, free: 3.246 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00161/3.026, allocations: 68.89 kB / 0.8733 GB, free: 3.184 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004954/3.031, allocations: 192.3 kB / 0.8734 GB, free: 3.055 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001081/3.032, allocations: 217.6 kB / 0.8736 GB, free: 2.91 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003787/3.033, allocations: 104.5 kB / 0.8737 GB, free: 2.812 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01219/3.045, allocations: 3.655 MB / 0.8773 GB, free: 0 / 0.4949 GB Notification: Performance of sort global known variables: time 1.062e-06/3.045, allocations: 336 / 0.8773 GB, free: 0 / 0.4949 GB Notification: Performance of remove unused functions: time 0.01537/3.06, allocations: 1.853 MB / 0.8791 GB, free: 14.8 MB / 0.5105 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.03051/3.091, allocations: 13.17 MB / 0.892 GB, free: 2.145 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3603/3.451, allocations: 7.61 MB / 0.8994 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-05/3.451, allocations: 1.219 kB / 0.8994 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007032/3.458, allocations: 2.362 MB / 0.9017 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006024/3.464, allocations: 0.6419 MB / 0.9024 GB, free: 139.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05617/3.521, allocations: 15.05 MB / 0.917 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01304/3.534, allocations: 5.315 MB / 0.9222 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0146/3.548, allocations: 3.042 MB / 0.9252 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00828/3.557, allocations: 3.329 MB / 0.9285 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of SimCode: time 2.044e-06/3.557, allocations: 0 / 0.9285 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2669/3.824, allocations: 123.6 MB / 1.049 GB, free: 46.08 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002385/3.824, allocations: 176.5 kB / 1.049 GB, free: 45.86 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.478/11.3, allocations: 0 / 1.049 GB, free: 45.86 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat