Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.JointUSP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_FourbarVariants_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.862/1.862, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.415e-05/4.426e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4484/0.5539, allocations: 101.9 MB / 423.8 MB, free: 3.934 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.5543, allocations: 79.95 kB / 423.9 MB, free: 3.855 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8653/1.42, allocations: 142.3 MB / 0.5529 GB, free: 90.18 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.653e-06/1.42, allocations: 3.844 kB / 0.5529 GB, free: 90.18 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004906/1.42, allocations: 129.1 kB / 0.553 GB, free: 90.17 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: 2162 * Number of variables: 2162 Notification: Performance of Generate backend data structure: time 0.02739/1.448, allocations: 6.641 MB / 0.5595 GB, free: 87.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/1.448, allocations: 7.406 kB / 0.5595 GB, free: 87.11 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005845/1.453, allocations: 1.275 MB / 0.5607 GB, free: 86.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06658/1.52, allocations: 9.339 MB / 0.5698 GB, free: 83.37 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03221/1.552, allocations: 9.118 MB / 0.5787 GB, free: 77.92 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005699/1.553, allocations: 493.8 kB / 0.5792 GB, free: 77.47 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003452/1.556, allocations: 0.6295 MB / 0.5798 GB, free: 76.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04996/1.606, allocations: 15.44 MB / 0.5949 GB, free: 60.35 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004438/1.607, allocations: 83.3 kB / 0.595 GB, free: 60.27 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003015/1.61, allocations: 312.5 kB / 0.5953 GB, free: 60 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003142/1.613, allocations: 1.374 MB / 0.5966 GB, free: 58.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04053/1.654, allocations: 12.49 MB / 0.6088 GB, free: 46.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4319/2.086, allocations: 64.36 MB / 0.6717 GB, free: 43.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03101/2.117, allocations: 6.21 MB / 0.6777 GB, free: 43.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00693/2.124, allocations: 3.116 MB / 0.6808 GB, free: 43.21 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02744/2.151, allocations: 11.18 MB / 0.6917 GB, free: 40.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.348e-05/2.151, allocations: 66.75 kB / 0.6918 GB, free: 40.37 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 6.442e-06/2.151, allocations: 0 / 0.6918 GB, free: 40.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=337): time 0.1718/2.323, allocations: 29.63 MB / 0.7207 GB, free: 35.96 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/2.323, allocations: 238.6 kB / 0.7209 GB, free: 35.71 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01133/2.335, allocations: 4.94 MB / 0.7258 GB, free: 33.99 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009534/2.336, allocations: 76.3 kB / 0.7258 GB, free: 33.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003721/2.339, allocations: 4.265 MB / 0.73 GB, free: 30.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001977/2.341, allocations: 1.232 MB / 0.7312 GB, free: 29.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009806/2.342, allocations: 165.7 kB / 0.7314 GB, free: 29.51 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005187/2.343, allocations: 0.6615 MB / 0.732 GB, free: 29.04 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008617/2.352, allocations: 3.524 MB / 0.7354 GB, free: 27.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01141/2.363, allocations: 8.004 MB / 0.7433 GB, free: 20.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01145/2.375, allocations: 5.283 MB / 0.7484 GB, free: 18.58 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001643/2.375, allocations: 43.5 kB / 0.7485 GB, free: 18.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.04656/2.421, allocations: 13.92 MB / 0.7621 GB, free: 10.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/2.422, allocations: 72 kB / 0.7621 GB, free: 10.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001946/2.422, allocations: 160 kB / 0.7623 GB, free: 10.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02065/2.442, allocations: 3.558 MB / 0.7658 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01121/2.454, allocations: 1.797 MB / 0.7675 GB, free: 6.512 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05643/2.51, allocations: 18.69 MB / 0.7858 GB, free: 8.801 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01047/2.521, allocations: 487.3 kB / 0.7862 GB, free: 8.324 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002309/2.523, allocations: 476 kB / 0.7867 GB, free: 7.859 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 721 * Number of states: 0 () * Number of discrete variables: 43 (jointUSP.prismatic.positiveBranch,body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[1],ground_rod.color[3],ground_rod.color[2],ground_rod.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[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 (969): * Single equations (assignments): 965 * Array equations: 3 * 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 {(1,100.0%) 77} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002423/2.526, allocations: 0.7061 MB / 0.7874 GB, free: 7.148 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001673/2.527, allocations: 0.5207 MB / 0.7879 GB, free: 6.621 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03491/2.562, allocations: 8.817 MB / 0.7965 GB, free: 13.74 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-05/2.562, allocations: 36 kB / 0.7965 GB, free: 13.71 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.077e-05/2.562, allocations: 12 kB / 0.7965 GB, free: 13.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-05/2.562, allocations: 19.94 kB / 0.7966 GB, free: 13.68 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07216/2.635, allocations: 18.58 MB / 0.8147 GB, free: 10.94 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-05/2.635, allocations: 8 kB / 0.8147 GB, free: 10.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00486/2.64, allocations: 491.9 kB / 0.8152 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02143/2.661, allocations: 3.107 MB / 0.8182 GB, free: 7.34 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009441/2.662, allocations: 64.14 kB / 0.8183 GB, free: 7.281 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0572/2.719, allocations: 15.6 MB / 0.8335 GB, free: 7.566 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.132e-05/2.719, allocations: 8 kB / 0.8335 GB, free: 7.559 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4504/3.17, allocations: 14.02 MB / 0.8472 GB, free: 134.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005716/3.176, allocations: 1.096 MB / 0.8483 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002372/3.178, allocations: 62.22 kB / 0.8483 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007599/3.186, allocations: 204.2 kB / 0.8485 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001465/3.187, allocations: 219.3 kB / 0.8487 GB, free: 134.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005902/3.188, allocations: 92.61 kB / 0.8488 GB, free: 134.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01347/3.201, allocations: 3.485 MB / 0.8522 GB, free: 134 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.303e-06/3.201, allocations: 0 / 0.8522 GB, free: 134 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01597/3.217, allocations: 1.682 MB / 0.8539 GB, free: 134 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 249 * Array equations: 3 * 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 {(1,100.0%) 64} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04229/3.26, allocations: 15.96 MB / 0.8695 GB, free: 130.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01856/3.278, allocations: 8.515 MB / 0.8778 GB, free: 128.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/3.278, allocations: 3.219 kB / 0.8778 GB, free: 128.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007238/3.286, allocations: 3.389 MB / 0.8811 GB, free: 127.2 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005409/3.291, allocations: 0.6842 MB / 0.8818 GB, free: 126.9 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04501/3.336, allocations: 15.8 MB / 0.8972 GB, free: 120.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009114/3.345, allocations: 4.963 MB / 0.902 GB, free: 119.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006415/3.352, allocations: 3.106 MB / 0.9051 GB, free: 116.8 MB / 490.7 MB Notification: Performance of SimCode: time 1.433e-06/3.352, allocations: 0 / 0.9051 GB, free: 116.8 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.428/8.78, allocations: 155.4 MB / 1.057 GB, free: 132.4 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.FourbarVariants.JointUSP_res.mat does not exist to compare? outputFormat=mat