Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.055/2.055, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.563e-05/4.57e-05, allocations: 7.938 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1081, allocations: 48.69 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4862/0.5944, allocations: 92.95 MB / 414.8 MB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003848/0.5949, allocations: 74.97 kB / 414.9 MB, free: 12.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8302/1.425, allocations: 116.6 MB / 0.519 GB, free: 97.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.816e-06/1.425, allocations: 1.062 kB / 0.519 GB, free: 97.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000293/1.426, allocations: 95.09 kB / 0.5191 GB, free: 97.13 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: 1910 * Number of variables: 1910 Notification: Performance of Generate backend data structure: time 0.0197/1.445, allocations: 4.441 MB / 0.5235 GB, free: 95.17 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.439e-05/1.445, allocations: 11.59 kB / 0.5235 GB, free: 95.17 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005525/1.451, allocations: 0.959 MB / 0.5244 GB, free: 95.08 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03174/1.483, allocations: 3.652 MB / 0.528 GB, free: 94.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02098/1.504, allocations: 4.817 MB / 0.5327 GB, free: 94.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006715/1.504, allocations: 377.2 kB / 0.533 GB, free: 94.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003803/1.508, allocations: 497.2 kB / 0.5335 GB, free: 94.13 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03993/1.548, allocations: 12.03 MB / 0.5453 GB, free: 92.1 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002526/1.549, allocations: 38.47 kB / 0.5453 GB, free: 92.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002549/1.551, allocations: 226.8 kB / 0.5455 GB, free: 91.95 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003307/1.554, allocations: 1.387 MB / 0.5469 GB, free: 91.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03215/1.587, allocations: 11.01 MB / 0.5576 GB, free: 88.31 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08994/1.677, allocations: 42.73 MB / 0.5994 GB, free: 54.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01469/1.691, allocations: 4.664 MB / 0.6039 GB, free: 50.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005234/1.697, allocations: 2.416 MB / 0.6063 GB, free: 48.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001573/1.698, allocations: 1.322 MB / 0.6076 GB, free: 46.72 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.159e-05/1.698, allocations: 56.5 kB / 0.6076 GB, free: 46.66 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 6.802e-06/1.698, allocations: 0 / 0.6076 GB, free: 46.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=268): time 0.0645/1.763, allocations: 16.36 MB / 0.6236 GB, free: 30.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.44e-05/1.763, allocations: 99.11 kB / 0.6237 GB, free: 30.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006851/1.77, allocations: 2.857 MB / 0.6265 GB, free: 27.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006345/1.771, allocations: 57.7 kB / 0.6265 GB, free: 27.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002632/1.773, allocations: 3.232 MB / 0.6297 GB, free: 23.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001521/1.775, allocations: 0.9738 MB / 0.6306 GB, free: 22.93 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007743/1.776, allocations: 123.8 kB / 0.6307 GB, free: 22.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000488/1.776, allocations: 0.5711 MB / 0.6313 GB, free: 22.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006038/1.782, allocations: 2.413 MB / 0.6337 GB, free: 19.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008796/1.791, allocations: 5.73 MB / 0.6393 GB, free: 12.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008354/1.799, allocations: 3.761 MB / 0.6429 GB, free: 8.672 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/1.8, allocations: 36 kB / 0.643 GB, free: 8.637 MB / 426.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02515/1.825, allocations: 8.561 MB / 0.6513 GB, free: 64 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.534e-05/1.825, allocations: 52 kB / 0.6514 GB, free: 12 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.3239/2.149, allocations: 117.4 kB / 0.6515 GB, free: 85.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006438/2.155, allocations: 1.058 MB / 0.6525 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009933/2.165, allocations: 1.385 MB / 0.6539 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01272/2.178, allocations: 5.072 MB / 0.6588 GB, free: 83.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006844/2.185, allocations: 324.8 kB / 0.6591 GB, free: 83.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001686/2.187, allocations: 353 kB / 0.6595 GB, free: 83.76 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 537 * Number of states: 0 () * Number of discrete variables: 39 (axis1.color[3],axis1.color[2],axis1.color[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],planar.cylinderColor[3],planar.cylinderColor[2],planar.cylinderColor[1],planar.boxColor[3],planar.boxColor[2],planar.boxColor[1],planar.revolute.cylinderColor[3],planar.revolute.cylinderColor[2],planar.revolute.cylinderColor[1],planar.prismatic_y.boxColor[3],planar.prismatic_y.boxColor[2],planar.prismatic_y.boxColor[1],planar.prismatic_x.boxColor[3],planar.prismatic_x.boxColor[2],planar.prismatic_x.boxColor[1],axis2.color[3],axis2.color[2],axis2.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (743): * Single equations (assignments): 736 * 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 {(3,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001702/2.189, allocations: 0.5601 MB / 0.66 GB, free: 83.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008501/2.189, allocations: 320.8 kB / 0.6603 GB, free: 83.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01757/2.207, allocations: 5.309 MB / 0.6655 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001482/2.207, allocations: 47.62 kB / 0.6656 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-05/2.207, allocations: 5.75 kB / 0.6656 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-05/2.207, allocations: 11.73 kB / 0.6656 GB, free: 83.46 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03931/2.247, allocations: 13.25 MB / 0.6785 GB, free: 82.36 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.387e-05/2.247, allocations: 11.7 kB / 0.6785 GB, free: 82.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003737/2.251, allocations: 420.5 kB / 0.6789 GB, free: 82.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005072/2.256, allocations: 0.8941 MB / 0.6798 GB, free: 82.36 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006941/2.256, allocations: 56.33 kB / 0.6799 GB, free: 82.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009442/2.266, allocations: 4.412 MB / 0.6842 GB, free: 81.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.655e-05/2.266, allocations: 21.5 kB / 0.6842 GB, free: 81.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01984/2.286, allocations: 9.025 MB / 0.693 GB, free: 77.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002841/2.289, allocations: 0.739 MB / 0.6937 GB, free: 76.88 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/2.29, allocations: 48.66 kB / 0.6938 GB, free: 76.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003131/2.293, allocations: 147.8 kB / 0.6939 GB, free: 76.83 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000618/2.294, allocations: 168.7 kB / 0.6941 GB, free: 76.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002713/2.294, allocations: 82.42 kB / 0.6941 GB, free: 76.79 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004615/2.299, allocations: 1.948 MB / 0.696 GB, free: 76.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.32e-07/2.299, allocations: 0 / 0.696 GB, free: 76.11 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008422/2.307, allocations: 1.119 MB / 0.6971 GB, free: 75.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 6 (planar.s_x,planar.s_y,planar.phi,planar.v_x,planar.v_y,planar.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 202 * 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 {(3,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02203/2.329, allocations: 12.54 MB / 0.7094 GB, free: 68.27 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01414/2.343, allocations: 5.743 MB / 0.715 GB, free: 66.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.678e-05/2.343, allocations: 3.625 kB / 0.715 GB, free: 66.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005448/2.349, allocations: 2.2 MB / 0.7171 GB, free: 65.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003558/2.352, allocations: 388.8 kB / 0.7175 GB, free: 65.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03975/2.392, allocations: 11.92 MB / 0.7292 GB, free: 61.04 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009333/2.402, allocations: 3.934 MB / 0.733 GB, free: 58.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005997/2.408, allocations: 2.273 MB / 0.7352 GB, free: 55.99 MB / 426.7 MB Notification: Performance of SimCode: time 2.334e-06/2.408, allocations: 0 / 0.7352 GB, free: 55.99 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.604/7.012, allocations: 111 MB / 0.8436 GB, free: 93.34 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat