Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.491/2.491, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.244e-05/5.25e-05, allocations: 7.984 kB / 305 MB, free: 5.566 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4769/0.477, allocations: 54.85 MB / 359.9 MB, free: 2.676 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.6837, allocations: 99.76 MB / 459.6 MB, free: 13.2 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003454/0.6842, allocations: 75.95 kB / 459.7 MB, free: 13.13 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8493/1.533, allocations: 116.7 MB / 0.5629 GB, free: 106.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.484e-06/1.534, allocations: 7.844 kB / 0.5629 GB, free: 106.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002212/1.534, allocations: 92.64 kB / 0.563 GB, free: 106.1 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: 1911 * Number of variables: 1911 Notification: Performance of Generate backend data structure: time 0.01782/1.552, allocations: 4.445 MB / 0.5673 GB, free: 104.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/1.552, allocations: 10.38 kB / 0.5673 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005121/1.557, allocations: 0.9535 MB / 0.5683 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02812/1.585, allocations: 3.653 MB / 0.5718 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01814/1.603, allocations: 4.81 MB / 0.5765 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005072/1.604, allocations: 376.9 kB / 0.5769 GB, free: 102.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003569/1.607, allocations: 0.4906 MB / 0.5774 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0384/1.646, allocations: 12.03 MB / 0.5891 GB, free: 96.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003264/1.646, allocations: 38.41 kB / 0.5892 GB, free: 96.88 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003231/1.649, allocations: 230.5 kB / 0.5894 GB, free: 96.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003304/1.653, allocations: 1.393 MB / 0.5907 GB, free: 96.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03165/1.684, allocations: 11.01 MB / 0.6015 GB, free: 87.65 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08945/1.774, allocations: 42.74 MB / 0.6432 GB, free: 44.1 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01477/1.789, allocations: 4.672 MB / 0.6478 GB, free: 39.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005105/1.794, allocations: 2.417 MB / 0.6502 GB, free: 36.76 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001523/1.796, allocations: 1.319 MB / 0.6514 GB, free: 35.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.324e-05/1.796, allocations: 60.5 kB / 0.6515 GB, free: 35.16 MB / 458.7 MB Notification: Performance of pre-optimization done (n=250): time 7.033e-06/1.796, allocations: 0 / 0.6515 GB, free: 35.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=268): time 0.06459/1.86, allocations: 16.35 MB / 0.6675 GB, free: 18.69 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/1.86, allocations: 107.1 kB / 0.6676 GB, free: 18.57 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006509/1.867, allocations: 2.853 MB / 0.6704 GB, free: 15.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006641/1.868, allocations: 61.7 kB / 0.6704 GB, free: 15.64 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002679/1.87, allocations: 3.224 MB / 0.6736 GB, free: 12.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/1.872, allocations: 0.9834 MB / 0.6745 GB, free: 11.44 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008024/1.873, allocations: 116 kB / 0.6746 GB, free: 11.33 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004908/1.873, allocations: 0.5711 MB / 0.6752 GB, free: 10.75 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005922/1.879, allocations: 2.409 MB / 0.6775 GB, free: 8.332 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008793/1.888, allocations: 5.73 MB / 0.6831 GB, free: 0.9375 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009652/1.898, allocations: 3.758 MB / 0.6868 GB, free: 13.18 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001307/1.898, allocations: 36 kB / 0.6868 GB, free: 13.15 MB / 474.7 MB Notification: Performance of matching and sorting (n=805) (initialization): time 0.02903/1.927, allocations: 8.563 MB / 0.6952 GB, free: 4.57 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001172/1.927, allocations: 57.72 kB / 0.6953 GB, free: 4.516 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002003/1.927, allocations: 116 kB / 0.6954 GB, free: 4.402 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006091/1.933, allocations: 1.059 MB / 0.6964 GB, free: 3.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009395/1.943, allocations: 1.396 MB / 0.6978 GB, free: 1.945 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3568/2.3, allocations: 5.074 MB / 0.7027 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006641/2.306, allocations: 321.9 kB / 0.703 GB, free: 104.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001882/2.308, allocations: 351.4 kB / 0.7034 GB, free: 104.5 MB / 474.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.002719/2.311, allocations: 0.5579 MB / 0.7039 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009165/2.312, allocations: 316.8 kB / 0.7042 GB, free: 104.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01921/2.331, allocations: 5.311 MB / 0.7094 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001518/2.332, allocations: 49.48 kB / 0.7095 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/2.332, allocations: 3.031 kB / 0.7095 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.723e-05/2.332, allocations: 11.62 kB / 0.7095 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04461/2.376, allocations: 13.25 MB / 0.7224 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.901e-05/2.376, allocations: 18.81 kB / 0.7224 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00378/2.38, allocations: 419.7 kB / 0.7228 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005078/2.385, allocations: 0.8846 MB / 0.7237 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006644/2.386, allocations: 55.91 kB / 0.7237 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009294/2.395, allocations: 4.422 MB / 0.7281 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.581e-05/2.395, allocations: 20.36 kB / 0.7281 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02012/2.416, allocations: 9.028 MB / 0.7369 GB, free: 96.72 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003082/2.419, allocations: 0.7303 MB / 0.7376 GB, free: 96.47 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001373/2.42, allocations: 56.62 kB / 0.7377 GB, free: 96.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003442/2.424, allocations: 139.3 kB / 0.7378 GB, free: 96.42 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001407/2.425, allocations: 171.7 kB / 0.738 GB, free: 96.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001128/2.426, allocations: 77.66 kB / 0.738 GB, free: 96.38 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005241/2.432, allocations: 1.948 MB / 0.7399 GB, free: 95.69 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.626e-06/2.432, allocations: 0 / 0.7399 GB, free: 95.69 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008579/2.44, allocations: 1.116 MB / 0.741 GB, free: 95.57 MB / 474.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.02226/2.463, allocations: 12.55 MB / 0.7533 GB, free: 87.84 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01363/2.476, allocations: 5.741 MB / 0.7589 GB, free: 86.22 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.807e-05/2.476, allocations: 3.812 kB / 0.7589 GB, free: 86.22 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005266/2.482, allocations: 2.194 MB / 0.761 GB, free: 85.41 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003631/2.485, allocations: 401.4 kB / 0.7614 GB, free: 85.24 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03773/2.523, allocations: 11.94 MB / 0.7731 GB, free: 80.84 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008743/2.532, allocations: 3.929 MB / 0.7769 GB, free: 79.38 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005656/2.538, allocations: 2.272 MB / 0.7791 GB, free: 77.27 MB / 474.7 MB Notification: Performance of SimCode: time 1.893e-06/2.538, allocations: 4 kB / 0.7791 GB, free: 77.27 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.629/7.167, allocations: 111 MB / 0.8875 GB, free: 117.2 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat