Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointSSR,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.385/2.385, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.196e-05/4.201e-05, allocations: 4.938 kB / 305 MB, free: 5.57 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5066/0.5067, allocations: 54.86 MB / 359.9 MB, free: 2.324 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.206/0.7127, allocations: 109.5 MB / 469.3 MB, free: 3.375 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.7131, allocations: 79.95 kB / 469.4 MB, free: 3.297 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9692/1.682, allocations: 154.3 MB / 0.6091 GB, free: 80.79 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.166e-06/1.682, allocations: 0 / 0.6091 GB, free: 80.79 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003722/1.683, allocations: 139.9 kB / 0.6092 GB, free: 80.66 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.02689/1.71, allocations: 6.546 MB / 0.6156 GB, free: 74.03 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/1.71, allocations: 8.031 kB / 0.6156 GB, free: 74.02 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006095/1.716, allocations: 1.486 MB / 0.617 GB, free: 72.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05031/1.766, allocations: 6.683 MB / 0.6236 GB, free: 65.82 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02877/1.795, allocations: 8.379 MB / 0.6317 GB, free: 57.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005511/1.796, allocations: 0.5294 MB / 0.6323 GB, free: 56.85 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003862/1.8, allocations: 0.7067 MB / 0.633 GB, free: 56.14 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05878/1.858, allocations: 18.6 MB / 0.6511 GB, free: 36.21 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004366/1.859, allocations: 83.28 kB / 0.6512 GB, free: 36.12 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003668/1.862, allocations: 335.8 kB / 0.6515 GB, free: 35.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003912/1.866, allocations: 1.723 MB / 0.6532 GB, free: 34.07 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05068/1.917, allocations: 15.96 MB / 0.6688 GB, free: 18.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8609/2.778, allocations: 74.12 MB / 0.7412 GB, free: 46.3 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02799/2.806, allocations: 6.082 MB / 0.7471 GB, free: 45.05 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007399/2.814, allocations: 2.699 MB / 0.7497 GB, free: 45 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04062/2.854, allocations: 13.93 MB / 0.7633 GB, free: 40.66 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.855e-05/2.855, allocations: 65.75 kB / 0.7634 GB, free: 40.62 MB / 474.8 MB Notification: Performance of pre-optimization done (n=284): time 6.723e-06/2.855, allocations: 0 / 0.7634 GB, free: 40.62 MB / 474.8 MB Notification: Performance of matching and sorting (n=344): time 0.1143/2.969, allocations: 19.29 MB / 0.7822 GB, free: 36.59 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.54e-05/2.969, allocations: 184 kB / 0.7824 GB, free: 36.4 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01457/2.984, allocations: 5.154 MB / 0.7874 GB, free: 35.11 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008813/2.985, allocations: 73.81 kB / 0.7875 GB, free: 35.04 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004534/2.989, allocations: 4.852 MB / 0.7922 GB, free: 31.23 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001997/2.991, allocations: 1.283 MB / 0.7935 GB, free: 30.29 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001357/2.993, allocations: 185.6 kB / 0.7937 GB, free: 30.15 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0008902/2.994, allocations: 0.7078 MB / 0.7944 GB, free: 29.67 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008444/3.002, allocations: 3.142 MB / 0.7974 GB, free: 28.59 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01232/3.014, allocations: 8.533 MB / 0.8058 GB, free: 20.25 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01204/3.026, allocations: 5.192 MB / 0.8108 GB, free: 18.69 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002006/3.027, allocations: 52.62 kB / 0.8109 GB, free: 18.69 MB / 474.8 MB Notification: Performance of matching and sorting (n=1238) (initialization): time 0.03847/3.065, allocations: 11.78 MB / 0.8224 GB, free: 15.12 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001519/3.065, allocations: 86.72 kB / 0.8225 GB, free: 15.12 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003167/3.066, allocations: 192.7 kB / 0.8227 GB, free: 15.12 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007652/3.073, allocations: 1.317 MB / 0.824 GB, free: 14.88 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01406/3.087, allocations: 2.18 MB / 0.8261 GB, free: 13.75 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0172/3.105, allocations: 7.105 MB / 0.833 GB, free: 7.375 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01115/3.116, allocations: 0.561 MB / 0.8336 GB, free: 6.895 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002137/3.118, allocations: 0.5402 MB / 0.8341 GB, free: 6.359 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.002339/3.121, allocations: 0.8101 MB / 0.8349 GB, free: 5.543 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001406/3.122, allocations: 0.5206 MB / 0.8354 GB, free: 5.016 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01814/3.14, allocations: 5.276 MB / 0.8405 GB, free: 0.6094 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.504e-05/3.14, allocations: 36.62 kB / 0.8406 GB, free: 0.5742 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.845e-05/3.14, allocations: 9.594 kB / 0.8406 GB, free: 0.5664 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.02e-05/3.14, allocations: 16.42 kB / 0.8406 GB, free: 0.5625 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05219/3.193, allocations: 14.04 MB / 0.8543 GB, free: 4.898 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.243e-05/3.193, allocations: 15.94 kB / 0.8543 GB, free: 4.887 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005021/3.198, allocations: 0.5282 MB / 0.8548 GB, free: 4.457 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006903/3.205, allocations: 0.9115 MB / 0.8557 GB, free: 3.801 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008607/3.206, allocations: 81.08 kB / 0.8558 GB, free: 3.727 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01547/3.221, allocations: 5.403 MB / 0.8611 GB, free: 14.84 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.196e-05/3.221, allocations: 19.89 kB / 0.8611 GB, free: 14.82 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02776/3.249, allocations: 10.14 MB / 0.871 GB, free: 5.047 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004223/3.253, allocations: 0.9462 MB / 0.8719 GB, free: 4.152 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001981/3.255, allocations: 60 kB / 0.872 GB, free: 4.094 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005637/3.261, allocations: 194.9 kB / 0.8722 GB, free: 3.965 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001165/3.262, allocations: 218 kB / 0.8724 GB, free: 3.816 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005391/3.263, allocations: 104.1 kB / 0.8725 GB, free: 3.719 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.01126/3.274, allocations: 3.55 MB / 0.876 GB, free: 0.6172 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.333e-06/3.274, allocations: 4 kB / 0.876 GB, free: 0.6133 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01947/3.294, allocations: 2.014 MB / 0.8779 GB, free: 15.7 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.03091/3.324, allocations: 13.17 MB / 0.8908 GB, free: 3.039 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.3662/3.691, allocations: 7.306 MB / 0.8979 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.52e-05/3.691, allocations: 1.219 kB / 0.8979 GB, free: 138.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00699/3.698, allocations: 2.322 MB / 0.9002 GB, free: 138.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005995/3.704, allocations: 0.6327 MB / 0.9008 GB, free: 138.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06114/3.765, allocations: 15.83 MB / 0.9163 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.014/3.779, allocations: 5.323 MB / 0.9215 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00909/3.788, allocations: 3.396 MB / 0.9248 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of SimCode: time 2.685e-06/3.788, allocations: 1.75 kB / 0.9248 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.523/9.311, allocations: 163.6 MB / 1.085 GB, free: 108.5 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.JointSSR_res.mat does not exist to compare? outputFormat=mat