Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.028/2.028, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.859e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1083, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4509/0.5592, allocations: 102.7 MB / 424.6 MB, free: 3.145 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.5596, allocations: 74.72 kB / 424.7 MB, free: 3.074 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9328/1.492, allocations: 154.3 MB / 0.5654 GB, free: 89.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.492, allocations: 0 / 0.5654 GB, free: 89.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004676/1.493, allocations: 135.1 kB / 0.5655 GB, free: 89.43 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: 2561 * Number of variables: 2561 Notification: Performance of Generate backend data structure: time 0.02751/1.52, allocations: 6.546 MB / 0.5719 GB, free: 85.16 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.573e-05/1.521, allocations: 11.69 kB / 0.5719 GB, free: 85.16 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007202/1.528, allocations: 1.491 MB / 0.5734 GB, free: 84.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05056/1.578, allocations: 6.683 MB / 0.5799 GB, free: 78.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02957/1.608, allocations: 8.363 MB / 0.5881 GB, free: 70.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006979/1.609, allocations: 0.5284 MB / 0.5886 GB, free: 69.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004517/1.613, allocations: 0.7068 MB / 0.5893 GB, free: 69.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06055/1.674, allocations: 18.6 MB / 0.6074 GB, free: 49.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005259/1.674, allocations: 79.28 kB / 0.6075 GB, free: 49.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004075/1.679, allocations: 342 kB / 0.6078 GB, free: 48.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003938/1.683, allocations: 1.725 MB / 0.6095 GB, free: 47.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05156/1.734, allocations: 15.96 MB / 0.6251 GB, free: 31.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4411/2.175, allocations: 74.1 MB / 0.6975 GB, free: 34.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02687/2.202, allocations: 6.087 MB / 0.7034 GB, free: 33.68 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006643/2.209, allocations: 2.7 MB / 0.706 GB, free: 33.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03804/2.247, allocations: 13.91 MB / 0.7196 GB, free: 29.28 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.642e-05/2.247, allocations: 62.78 kB / 0.7197 GB, free: 29.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 8.246e-06/2.247, allocations: 0 / 0.7197 GB, free: 29.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=344): time 0.1059/2.353, allocations: 19.3 MB / 0.7385 GB, free: 25.1 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.677e-05/2.353, allocations: 190.4 kB / 0.7387 GB, free: 24.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01282/2.366, allocations: 5.15 MB / 0.7437 GB, free: 23.06 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007649/2.367, allocations: 76.98 kB / 0.7438 GB, free: 23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004543/2.371, allocations: 4.853 MB / 0.7486 GB, free: 19.17 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002117/2.374, allocations: 1.285 MB / 0.7498 GB, free: 18.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001436/2.375, allocations: 185.1 kB / 0.75 GB, free: 18.09 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009834/2.376, allocations: 0.7083 MB / 0.7507 GB, free: 17.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008614/2.385, allocations: 3.146 MB / 0.7538 GB, free: 16.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01253/2.397, allocations: 8.528 MB / 0.7621 GB, free: 8.199 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/2.409, allocations: 5.189 MB / 0.7671 GB, free: 6.535 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002232/2.41, allocations: 54.69 kB / 0.7672 GB, free: 6.535 MB / 426.7 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03752/2.447, allocations: 11.79 MB / 0.7787 GB, free: 2.812 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001464/2.447, allocations: 91.17 kB / 0.7788 GB, free: 2.812 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003356/2.448, allocations: 190.7 kB / 0.779 GB, free: 2.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007491/2.455, allocations: 1.328 MB / 0.7803 GB, free: 1.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01359/2.469, allocations: 2.178 MB / 0.7824 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01924/2.488, allocations: 7.105 MB / 0.7893 GB, free: 9.449 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01138/2.5, allocations: 0.5548 MB / 0.7899 GB, free: 8.973 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002523/2.502, allocations: 0.5517 MB / 0.7904 GB, free: 8.43 MB / 442.7 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.003894/2.506, allocations: 0.8008 MB / 0.7912 GB, free: 7.625 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001707/2.508, allocations: 0.5322 MB / 0.7917 GB, free: 7.086 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02159/2.529, allocations: 5.258 MB / 0.7969 GB, free: 2.691 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.792e-05/2.53, allocations: 36.78 kB / 0.7969 GB, free: 2.656 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.588e-05/2.53, allocations: 11.95 kB / 0.7969 GB, free: 2.645 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-05/2.53, allocations: 13.31 kB / 0.7969 GB, free: 2.645 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05131/2.581, allocations: 14.05 MB / 0.8106 GB, free: 7.012 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.576e-05/2.581, allocations: 12.94 kB / 0.8107 GB, free: 7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004826/2.586, allocations: 0.5365 MB / 0.8112 GB, free: 6.562 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006704/2.593, allocations: 0.9155 MB / 0.8121 GB, free: 5.902 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007506/2.594, allocations: 66.39 kB / 0.8121 GB, free: 5.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01499/2.609, allocations: 5.415 MB / 0.8174 GB, free: 0.9453 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-05/2.609, allocations: 15.94 kB / 0.8174 GB, free: 0.9297 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02675/2.635, allocations: 10.14 MB / 0.8273 GB, free: 7.148 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003993/2.639, allocations: 0.9456 MB / 0.8283 GB, free: 6.254 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001801/2.641, allocations: 66.8 kB / 0.8283 GB, free: 6.195 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005123/2.646, allocations: 185.8 kB / 0.8285 GB, free: 6.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/2.648, allocations: 222.2 kB / 0.8287 GB, free: 5.918 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003548/2.648, allocations: 102.4 kB / 0.8288 GB, free: 5.824 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01065/2.659, allocations: 3.554 MB / 0.8323 GB, free: 2.719 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.182e-06/2.659, allocations: 4 kB / 0.8323 GB, free: 2.715 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01346/2.672, allocations: 1.656 MB / 0.8339 GB, free: 1.078 MB / 474.7 MB 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.3478/3.02, allocations: 13.17 MB / 0.8468 GB, free: 115.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02087/3.041, allocations: 7.309 MB / 0.8539 GB, free: 115.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.717e-05/3.041, allocations: 5.812 kB / 0.8539 GB, free: 115.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006797/3.048, allocations: 2.318 MB / 0.8562 GB, free: 115.4 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005754/3.054, allocations: 0.6474 MB / 0.8568 GB, free: 115.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05261/3.106, allocations: 15.83 MB / 0.8723 GB, free: 112.4 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01199/3.118, allocations: 5.323 MB / 0.8775 GB, free: 111.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008072/3.126, allocations: 3.399 MB / 0.8808 GB, free: 109 MB / 474.7 MB Notification: Performance of SimCode: time 1.532e-06/3.126, allocations: 2.562 kB / 0.8808 GB, free: 109 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.517/8.643, allocations: 163.6 MB / 1.041 GB, free: 117.2 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat