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.997/1.997, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.817e-05/3.826e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1058, allocations: 48.7 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4454/0.5513, allocations: 101.9 MB / 423.8 MB, free: 3.961 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.5516, allocations: 75.95 kB / 423.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8555/1.407, allocations: 142.3 MB / 0.5528 GB, free: 90.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.407, allocations: 0 / 0.5528 GB, free: 90.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005085/1.408, allocations: 130.2 kB / 0.553 GB, free: 90.12 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.02786/1.436, allocations: 6.643 MB / 0.5594 GB, free: 87.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/1.436, allocations: 10.69 kB / 0.5594 GB, free: 87.06 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005751/1.441, allocations: 1.274 MB / 0.5607 GB, free: 86.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07474/1.516, allocations: 9.335 MB / 0.5698 GB, free: 83.32 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03196/1.548, allocations: 9.126 MB / 0.5787 GB, free: 77.96 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005763/1.549, allocations: 482.3 kB / 0.5792 GB, free: 77.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003362/1.552, allocations: 0.6327 MB / 0.5798 GB, free: 76.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04936/1.602, allocations: 15.53 MB / 0.595 GB, free: 60.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004987/1.602, allocations: 79.25 kB / 0.595 GB, free: 60.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00321/1.605, allocations: 303.4 kB / 0.5953 GB, free: 59.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003059/1.609, allocations: 1.386 MB / 0.5967 GB, free: 58.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04068/1.649, allocations: 12.71 MB / 0.6091 GB, free: 45.85 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4505/2.1, allocations: 64.36 MB / 0.6719 GB, free: 43.29 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03091/2.131, allocations: 6.23 MB / 0.678 GB, free: 42.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00701/2.138, allocations: 3.118 MB / 0.6811 GB, free: 42.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02683/2.165, allocations: 11.18 MB / 0.692 GB, free: 39.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/2.165, allocations: 64.22 kB / 0.6921 GB, free: 39.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 6.833e-06/2.165, allocations: 0 / 0.6921 GB, free: 39.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=337): time 0.1697/2.335, allocations: 29.63 MB / 0.721 GB, free: 35.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/2.335, allocations: 243.7 kB / 0.7212 GB, free: 35.42 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01214/2.347, allocations: 4.935 MB / 0.726 GB, free: 33.73 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009295/2.348, allocations: 76.39 kB / 0.7261 GB, free: 33.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003841/2.352, allocations: 4.272 MB / 0.7303 GB, free: 30.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002058/2.354, allocations: 1.234 MB / 0.7315 GB, free: 29.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001128/2.355, allocations: 160.9 kB / 0.7317 GB, free: 29.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006029/2.356, allocations: 0.6595 MB / 0.7323 GB, free: 28.78 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009135/2.365, allocations: 3.529 MB / 0.7357 GB, free: 27.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01198/2.377, allocations: 8.05 MB / 0.7436 GB, free: 20.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.012/2.389, allocations: 5.282 MB / 0.7488 GB, free: 18.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000171/2.389, allocations: 48.03 kB / 0.7488 GB, free: 18.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=1070) (initialization): time 0.04779/2.437, allocations: 14.36 MB / 0.7628 GB, free: 10.03 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001228/2.437, allocations: 76 kB / 0.7629 GB, free: 9.953 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002336/2.437, allocations: 156 kB / 0.763 GB, free: 9.801 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02092/2.458, allocations: 3.559 MB / 0.7665 GB, free: 7.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01117/2.47, allocations: 1.794 MB / 0.7683 GB, free: 5.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04944/2.519, allocations: 18.17 MB / 0.786 GB, free: 7.027 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01026/2.529, allocations: 486.6 kB / 0.7865 GB, free: 6.625 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002157/2.532, allocations: 470.7 kB / 0.7869 GB, free: 6.172 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.003212/2.535, allocations: 0.7076 MB / 0.7876 GB, free: 5.461 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001674/2.536, allocations: 0.5207 MB / 0.7881 GB, free: 4.934 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03655/2.573, allocations: 8.82 MB / 0.7967 GB, free: 12.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.059e-05/2.573, allocations: 35.95 kB / 0.7968 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-05/2.573, allocations: 16 kB / 0.7968 GB, free: 12.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.398e-05/2.573, allocations: 15.94 kB / 0.7968 GB, free: 12.64 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07036/2.644, allocations: 18.6 MB / 0.815 GB, free: 9.887 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.882e-05/2.644, allocations: 7.812 kB / 0.815 GB, free: 9.883 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004738/2.649, allocations: 495.2 kB / 0.8155 GB, free: 9.398 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02121/2.67, allocations: 3.096 MB / 0.8185 GB, free: 6.297 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008055/2.671, allocations: 71.12 kB / 0.8185 GB, free: 6.23 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04148/2.712, allocations: 15.57 MB / 0.8338 GB, free: 6.516 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.269e-05/2.712, allocations: 11.94 kB / 0.8338 GB, free: 6.504 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3671/3.079, allocations: 14.03 MB / 0.8475 GB, free: 134 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004456/3.084, allocations: 1.096 MB / 0.8485 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002168/3.086, allocations: 58.75 kB / 0.8486 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005983/3.092, allocations: 210.3 kB / 0.8488 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001482/3.094, allocations: 219 kB / 0.849 GB, free: 133.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005607/3.094, allocations: 91.08 kB / 0.8491 GB, free: 133.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01035/3.105, allocations: 3.485 MB / 0.8525 GB, free: 133.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.72e-07/3.105, allocations: 0 / 0.8525 GB, free: 133.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01135/3.116, allocations: 1.677 MB / 0.8541 GB, free: 133.7 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.04317/3.159, allocations: 15.96 MB / 0.8697 GB, free: 130.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02001/3.179, allocations: 8.79 MB / 0.8783 GB, free: 128.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/3.179, allocations: 0 / 0.8783 GB, free: 128.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007971/3.187, allocations: 3.436 MB / 0.8816 GB, free: 126.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006177/3.194, allocations: 0.6853 MB / 0.8823 GB, free: 126.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04897/3.243, allocations: 15.82 MB / 0.8978 GB, free: 120.6 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01101/3.254, allocations: 4.969 MB / 0.9026 GB, free: 118.9 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007512/3.261, allocations: 3.106 MB / 0.9057 GB, free: 116.4 MB / 490.7 MB Notification: Performance of SimCode: time 2.665e-06/3.261, allocations: 0 / 0.9057 GB, free: 116.4 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.597/8.858, allocations: 156.7 MB / 1.059 GB, free: 131.3 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