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 1.933/1.933, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.927e-05/3.939e-05, allocations: 4 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1092, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4544/0.5637, allocations: 102.7 MB / 424.5 MB, free: 3.172 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002949/0.5641, allocations: 79.94 kB / 424.6 MB, free: 3.094 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9135/1.478, allocations: 154.3 MB / 0.5653 GB, free: 89.34 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.933e-06/1.478, allocations: 0 / 0.5653 GB, free: 89.34 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000406/1.478, allocations: 132.4 kB / 0.5655 GB, free: 89.33 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.02621/1.504, allocations: 6.545 MB / 0.5719 GB, free: 85.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.037e-05/1.504, allocations: 10.16 kB / 0.5719 GB, free: 85.07 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006989/1.511, allocations: 1.496 MB / 0.5733 GB, free: 84.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05052/1.562, allocations: 6.681 MB / 0.5799 GB, free: 78.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03018/1.592, allocations: 8.363 MB / 0.588 GB, free: 70.27 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007499/1.593, allocations: 0.5308 MB / 0.5885 GB, free: 69.78 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004323/1.597, allocations: 0.7009 MB / 0.5892 GB, free: 69.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05872/1.656, allocations: 18.68 MB / 0.6075 GB, free: 49.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004379/1.657, allocations: 83.27 kB / 0.6075 GB, free: 49.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003009/1.66, allocations: 349.9 kB / 0.6079 GB, free: 48.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003568/1.663, allocations: 1.719 MB / 0.6096 GB, free: 47.15 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05032/1.714, allocations: 16.22 MB / 0.6254 GB, free: 30.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4491/2.163, allocations: 74.11 MB / 0.6978 GB, free: 34.13 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02667/2.189, allocations: 6.107 MB / 0.7037 GB, free: 32.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006431/2.196, allocations: 2.704 MB / 0.7064 GB, free: 32.85 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03723/2.233, allocations: 13.91 MB / 0.72 GB, free: 28.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.212e-05/2.233, allocations: 62.97 kB / 0.72 GB, free: 28.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=284): time 6.963e-06/2.233, allocations: 0 / 0.72 GB, free: 28.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=344): time 0.1058/2.339, allocations: 19.31 MB / 0.7389 GB, free: 24.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.079e-05/2.339, allocations: 191.8 kB / 0.7391 GB, free: 24.22 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01241/2.352, allocations: 5.146 MB / 0.7441 GB, free: 22.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000765/2.352, allocations: 74.73 kB / 0.7442 GB, free: 22.69 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00409/2.357, allocations: 4.857 MB / 0.7489 GB, free: 18.87 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001895/2.359, allocations: 1.281 MB / 0.7502 GB, free: 17.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001141/2.36, allocations: 187.5 kB / 0.7503 GB, free: 17.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007564/2.361, allocations: 0.715 MB / 0.751 GB, free: 17.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008173/2.369, allocations: 3.134 MB / 0.7541 GB, free: 16.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01194/2.381, allocations: 8.587 MB / 0.7625 GB, free: 7.867 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01179/2.393, allocations: 5.188 MB / 0.7675 GB, free: 6.207 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000229/2.393, allocations: 57.59 kB / 0.7676 GB, free: 6.207 MB / 426.7 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03742/2.43, allocations: 12.32 MB / 0.7796 GB, free: 2.148 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001434/2.43, allocations: 92.06 kB / 0.7797 GB, free: 2.059 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002766/2.431, allocations: 192 kB / 0.7799 GB, free: 1.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00751/2.438, allocations: 1.318 MB / 0.7812 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01499/2.453, allocations: 2.186 MB / 0.7833 GB, free: 14.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01943/2.473, allocations: 7.108 MB / 0.7903 GB, free: 8.578 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01159/2.484, allocations: 0.5529 MB / 0.7908 GB, free: 8.105 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00283/2.487, allocations: 0.5474 MB / 0.7913 GB, free: 7.562 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.004132/2.492, allocations: 0.8027 MB / 0.7921 GB, free: 6.758 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002127/2.494, allocations: 0.5283 MB / 0.7926 GB, free: 6.223 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02801/2.522, allocations: 5.266 MB / 0.7978 GB, free: 1.82 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001311/2.522, allocations: 36 kB / 0.7978 GB, free: 1.785 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.49e-05/2.522, allocations: 11.75 kB / 0.7978 GB, free: 1.777 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.848e-05/2.522, allocations: 13.41 kB / 0.7978 GB, free: 1.777 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06032/2.582, allocations: 14.13 MB / 0.8116 GB, free: 6.238 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-05/2.583, allocations: 12 kB / 0.8117 GB, free: 6.227 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004926/2.587, allocations: 0.536 MB / 0.8122 GB, free: 5.789 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006773/2.594, allocations: 0.9038 MB / 0.8131 GB, free: 5.137 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000742/2.595, allocations: 71.89 kB / 0.8131 GB, free: 5.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01485/2.61, allocations: 5.404 MB / 0.8184 GB, free: 184 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.058e-05/2.61, allocations: 23.88 kB / 0.8184 GB, free: 160 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02622/2.636, allocations: 10.14 MB / 0.8283 GB, free: 6.387 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003995/2.64, allocations: 0.9462 MB / 0.8293 GB, free: 5.492 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001638/2.642, allocations: 67.19 kB / 0.8293 GB, free: 5.434 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004789/2.647, allocations: 199.8 kB / 0.8295 GB, free: 5.297 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008621/2.648, allocations: 212.5 kB / 0.8297 GB, free: 5.156 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003546/2.648, allocations: 105 kB / 0.8298 GB, free: 5.059 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01014/2.658, allocations: 3.56 MB / 0.8333 GB, free: 1.949 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.001e-06/2.658, allocations: 0 / 0.8333 GB, free: 1.949 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01174/2.67, allocations: 1.662 MB / 0.8349 GB, free: 320 kB / 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.351/3.021, allocations: 13.17 MB / 0.8478 GB, free: 114.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0211/3.042, allocations: 7.61 MB / 0.8552 GB, free: 114.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.57e-05/3.042, allocations: 0.9375 kB / 0.8552 GB, free: 114.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006847/3.049, allocations: 2.359 MB / 0.8575 GB, free: 114.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00532/3.055, allocations: 0.6467 MB / 0.8581 GB, free: 114.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05143/3.106, allocations: 15.86 MB / 0.8736 GB, free: 111.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01271/3.119, allocations: 5.319 MB / 0.8788 GB, free: 110.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008289/3.127, allocations: 3.397 MB / 0.8821 GB, free: 108 MB / 474.7 MB Notification: Performance of SimCode: time 1.403e-06/3.127, allocations: 1.969 kB / 0.8821 GB, free: 108 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.836/8.963, allocations: 165.1 MB / 1.043 GB, free: 119.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