Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.986/1.986, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.71e-05/3.716e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 48.71 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4571/0.5646, allocations: 104.1 MB / 425.9 MB, free: 1.688 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00029/0.565, allocations: 78.97 kB / 426 MB, free: 1.613 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9831/1.548, allocations: 171.9 MB / 0.5839 GB, free: 74.96 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.255e-06/1.548, allocations: 0 / 0.5839 GB, free: 74.96 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004532/1.549, allocations: 148 kB / 0.584 GB, free: 74.82 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: 2779 * Number of variables: 2779 Notification: Performance of Generate backend data structure: time 0.03218/1.581, allocations: 7.705 MB / 0.5915 GB, free: 67.03 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.349e-05/1.581, allocations: 8.031 kB / 0.5915 GB, free: 67.02 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00766/1.589, allocations: 1.626 MB / 0.5931 GB, free: 65.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05274/1.641, allocations: 6.959 MB / 0.5999 GB, free: 58.41 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03406/1.676, allocations: 9.842 MB / 0.6095 GB, free: 48.48 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007701/1.676, allocations: 0.5657 MB / 0.6101 GB, free: 47.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004834/1.681, allocations: 0.7574 MB / 0.6108 GB, free: 47.15 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06639/1.748, allocations: 20.46 MB / 0.6308 GB, free: 25.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005314/1.748, allocations: 87.22 kB / 0.6309 GB, free: 25.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004479/1.753, allocations: 363.8 kB / 0.6312 GB, free: 24.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004692/1.757, allocations: 1.958 MB / 0.6331 GB, free: 22.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05733/1.815, allocations: 17.64 MB / 0.6504 GB, free: 5.211 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4632/2.278, allocations: 82.17 MB / 0.7306 GB, free: 22.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02901/2.307, allocations: 7.27 MB / 0.7377 GB, free: 20.41 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008561/2.316, allocations: 3.919 MB / 0.7415 GB, free: 18.82 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04915/2.365, allocations: 18.23 MB / 0.7593 GB, free: 9.574 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.432e-05/2.365, allocations: 64.12 kB / 0.7594 GB, free: 9.512 MB / 426.7 MB Notification: Performance of pre-optimization done (n=332): time 8.185e-06/2.365, allocations: 2.688 kB / 0.7594 GB, free: 9.512 MB / 426.7 MB Notification: Performance of matching and sorting (n=413): time 0.1414/2.507, allocations: 26.07 MB / 0.7849 GB, free: 1.406 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/2.507, allocations: 201 kB / 0.7851 GB, free: 1.211 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02953/2.536, allocations: 6.473 MB / 0.7914 GB, free: 14.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001031/2.537, allocations: 81.7 kB / 0.7915 GB, free: 14.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006072/2.543, allocations: 5.248 MB / 0.7966 GB, free: 9.469 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002821/2.546, allocations: 1.517 MB / 0.7981 GB, free: 8.129 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001636/2.548, allocations: 214.2 kB / 0.7983 GB, free: 7.926 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.001055/2.549, allocations: 0.7562 MB / 0.799 GB, free: 7.289 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01363/2.563, allocations: 4.019 MB / 0.8029 GB, free: 3.633 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01785/2.581, allocations: 9.787 MB / 0.8125 GB, free: 7.816 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01594/2.597, allocations: 6.24 MB / 0.8186 GB, free: 2.633 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002302/2.597, allocations: 63.94 kB / 0.8186 GB, free: 2.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=1370) (initialization): time 0.3702/2.967, allocations: 14.86 MB / 0.8332 GB, free: 94.48 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002336/2.967, allocations: 93.41 kB / 0.8332 GB, free: 94.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005041/2.968, allocations: 204 kB / 0.8334 GB, free: 94.48 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01514/2.983, allocations: 2.336 MB / 0.8357 GB, free: 94.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01732/3, allocations: 2.446 MB / 0.8381 GB, free: 94.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02941/3.03, allocations: 11.52 MB / 0.8494 GB, free: 92.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01343/3.043, allocations: 0.682 MB / 0.85 GB, free: 92.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002596/3.046, allocations: 0.5909 MB / 0.8506 GB, free: 92.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 931 * Number of states: 0 () * Number of discrete variables: 46 (jointUSR.revolute.positiveBranch,Body3.sphereColor[3],Body3.sphereColor[2],Body3.sphereColor[1],Body2.sphereColor[3],Body2.sphereColor[2],Body2.sphereColor[1],Body1.sphereColor[3],Body1.sphereColor[2],Body1.sphereColor[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.revoluteColor[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[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 (1269): * Single equations (assignments): 1262 * 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%) 52} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00393/3.05, allocations: 0.8642 MB / 0.8514 GB, free: 92.48 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001634/3.052, allocations: 0.5994 MB / 0.852 GB, free: 92.48 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03011/3.082, allocations: 8.083 MB / 0.8599 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001526/3.082, allocations: 65.62 kB / 0.86 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.653e-05/3.082, allocations: 9.562 kB / 0.86 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000101/3.082, allocations: 28.17 kB / 0.86 GB, free: 92.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06317/3.145, allocations: 18.71 MB / 0.8783 GB, free: 86.02 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.962e-05/3.146, allocations: 11.44 kB / 0.8783 GB, free: 86.02 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005961/3.151, allocations: 0.6433 MB / 0.8789 GB, free: 85.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0125/3.164, allocations: 1.883 MB / 0.8808 GB, free: 85.64 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009099/3.165, allocations: 78.3 kB / 0.8808 GB, free: 85.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0251/3.19, allocations: 9.875 MB / 0.8905 GB, free: 81.04 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.485e-05/3.19, allocations: 19.69 kB / 0.8905 GB, free: 81.04 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0354/3.226, allocations: 14.17 MB / 0.9043 GB, free: 73.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004284/3.23, allocations: 1.156 MB / 0.9055 GB, free: 73.23 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001785/3.232, allocations: 80.55 kB / 0.9056 GB, free: 73.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006207/3.238, allocations: 264.9 kB / 0.9058 GB, free: 73.13 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001179/3.239, allocations: 258.4 kB / 0.9061 GB, free: 73.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000431/3.24, allocations: 115.8 kB / 0.9062 GB, free: 73.05 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009611/3.249, allocations: 3.928 MB / 0.91 GB, free: 69.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.022e-06/3.249, allocations: 0 / 0.91 GB, free: 69.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01309/3.262, allocations: 1.939 MB / 0.9119 GB, free: 67.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (324): * Single equations (assignments): 317 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03652/3.299, allocations: 17.11 MB / 0.9286 GB, free: 52.09 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02192/3.321, allocations: 9.305 MB / 0.9377 GB, free: 43.56 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.757e-05/3.321, allocations: 4 kB / 0.9377 GB, free: 43.56 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00787/3.329, allocations: 3.23 MB / 0.9408 GB, free: 40.58 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006205/3.335, allocations: 0.7292 MB / 0.9416 GB, free: 39.96 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05645/3.392, allocations: 18.06 MB / 0.9592 GB, free: 24.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0134/3.405, allocations: 5.758 MB / 0.9648 GB, free: 19.91 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009696/3.415, allocations: 3.759 MB / 0.9685 GB, free: 16.41 MB / 458.7 MB Notification: Performance of SimCode: time 1.974e-06/3.415, allocations: 0 / 0.9685 GB, free: 16.41 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.94/9.355, allocations: 181.5 MB / 1.146 GB, free: 7.547 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSR_res.mat does not exist to compare? outputFormat=mat