Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_Planar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.002/2.002, allocations: 209.4 MB / 216.5 MB, free: 6.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.302e-05/3.302e-05, allocations: 4 kB / 267.6 MB, free: 4.965 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 48.71 MB / 316.3 MB, free: 4.16 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4624/0.5721, allocations: 92.5 MB / 408.8 MB, free: 244 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.5724, allocations: 78.69 kB / 408.9 MB, free: 200 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.788/1.36, allocations: 114.4 MB / 0.511 GB, free: 90.18 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.855e-06/1.36, allocations: 0 / 0.511 GB, free: 90.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002439/1.361, allocations: 87.94 kB / 0.5111 GB, free: 90.18 MB / 410.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.01757/1.378, allocations: 4.437 MB / 0.5155 GB, free: 88.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.906e-05/1.378, allocations: 11.25 kB / 0.5155 GB, free: 88.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0279/1.406, allocations: 3.655 MB / 0.519 GB, free: 87.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01805/1.424, allocations: 4.813 MB / 0.5237 GB, free: 87.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003796/1.425, allocations: 161.9 kB / 0.5239 GB, free: 87.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00337/1.428, allocations: 288 kB / 0.5242 GB, free: 87.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02188/1.45, allocations: 8.449 MB / 0.5324 GB, free: 86.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04093/1.491, allocations: 11.2 MB / 0.5434 GB, free: 81.62 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000321/1.492, allocations: 26.25 kB / 0.5434 GB, free: 81.61 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002817/1.494, allocations: 21.52 kB / 0.5434 GB, free: 81.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004608/1.499, allocations: 1.392 MB / 0.5448 GB, free: 81.36 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08594/1.585, allocations: 39.73 MB / 0.5836 GB, free: 45.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007293/1.592, allocations: 4.364 MB / 0.5878 GB, free: 41.11 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004506/1.597, allocations: 2.366 MB / 0.5901 GB, free: 38.74 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001541/1.599, allocations: 1.322 MB / 0.5914 GB, free: 37.21 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.661e-05/1.599, allocations: 56.56 kB / 0.5915 GB, free: 37.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=252): time 6.903e-06/1.599, allocations: 0 / 0.5915 GB, free: 37.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=271): time 0.0587/1.657, allocations: 18.88 MB / 0.6099 GB, free: 18.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/1.657, allocations: 107.1 kB / 0.61 GB, free: 18.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006183/1.664, allocations: 2.651 MB / 0.6126 GB, free: 15.36 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006128/1.664, allocations: 25.7 kB / 0.6126 GB, free: 15.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002627/1.667, allocations: 3.363 MB / 0.6159 GB, free: 11.91 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001485/1.668, allocations: 0.9633 MB / 0.6169 GB, free: 10.94 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007393/1.669, allocations: 0 / 0.6169 GB, free: 10.94 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005146/1.67, allocations: 0.5907 MB / 0.6174 GB, free: 10.34 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005538/1.675, allocations: 2.387 MB / 0.6198 GB, free: 7.949 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008219/1.684, allocations: 6.024 MB / 0.6256 GB, free: 116 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009943/1.694, allocations: 3.822 MB / 0.6294 GB, free: 12.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001398/1.694, allocations: 36 kB / 0.6294 GB, free: 12.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=859) (initialization): time 0.02782/1.722, allocations: 8.571 MB / 0.6378 GB, free: 3.676 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000125/1.722, allocations: 63.34 kB / 0.6378 GB, free: 3.617 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002042/1.722, allocations: 131.9 kB / 0.638 GB, free: 3.488 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00583/1.728, allocations: 1.081 MB / 0.639 GB, free: 2.402 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009923/1.738, allocations: 1.478 MB / 0.6405 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3401/2.078, allocations: 4.864 MB / 0.6452 GB, free: 89.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01099/2.089, allocations: 213.5 kB / 0.6454 GB, free: 89.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002394/2.092, allocations: 382.9 kB / 0.6458 GB, free: 89.03 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * 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 (797): * Single equations (assignments): 790 * 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 {(4,87.5%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003756/2.095, allocations: 442.9 kB / 0.6462 GB, free: 88.92 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02301/2.118, allocations: 4.65 MB / 0.6507 GB, free: 88.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001811/2.12, allocations: 308.9 kB / 0.651 GB, free: 88.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0276/2.148, allocations: 5.195 MB / 0.6561 GB, free: 88.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002298/2.148, allocations: 53.58 kB / 0.6562 GB, free: 88.59 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.124e-05/2.148, allocations: 3.438 kB / 0.6562 GB, free: 88.59 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.65e-05/2.148, allocations: 10.92 kB / 0.6562 GB, free: 88.59 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04082/2.189, allocations: 12.01 MB / 0.6679 GB, free: 87.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.247e-05/2.189, allocations: 15.22 kB / 0.6679 GB, free: 87.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003784/2.193, allocations: 426.5 kB / 0.6683 GB, free: 87.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005022/2.198, allocations: 0.8781 MB / 0.6692 GB, free: 87.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006506/2.199, allocations: 26.28 kB / 0.6692 GB, free: 87.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008989/2.208, allocations: 4.23 MB / 0.6733 GB, free: 86.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.143e-05/2.208, allocations: 22.33 kB / 0.6734 GB, free: 86.34 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01956/2.228, allocations: 8.967 MB / 0.6821 GB, free: 82.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002709/2.23, allocations: 0.712 MB / 0.6828 GB, free: 81.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001139/2.232, allocations: 21.17 kB / 0.6828 GB, free: 81.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002991/2.235, allocations: 112.6 kB / 0.6829 GB, free: 81.78 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008227/2.235, allocations: 178.1 kB / 0.6831 GB, free: 81.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002826/2.236, allocations: 76.28 kB / 0.6832 GB, free: 81.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.004135/2.24, allocations: 1.727 MB / 0.6849 GB, free: 81.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.172e-06/2.24, allocations: 0 / 0.6849 GB, free: 81.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008057/2.248, allocations: 0.9769 MB / 0.6858 GB, free: 81.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 52 * 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 (212): * Single equations (assignments): 205 * 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.02063/2.269, allocations: 12.6 MB / 0.6981 GB, free: 73.25 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01279/2.282, allocations: 5.819 MB / 0.7038 GB, free: 71.53 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.37e-05/2.282, allocations: 3.469 kB / 0.7038 GB, free: 71.53 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00486/2.286, allocations: 2.187 MB / 0.706 GB, free: 70.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/2.289, allocations: 276.3 kB / 0.7062 GB, free: 70.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04491/2.334, allocations: 11.19 MB / 0.7171 GB, free: 66.66 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01174/2.346, allocations: 3.922 MB / 0.721 GB, free: 64.15 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.01375/2.36, allocations: 2.296 MB / 0.7232 GB, free: 62.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007389/2.367, allocations: 2.196 MB / 0.7254 GB, free: 60.75 MB / 426.7 MB Notification: Performance of SimCode: time 2.545e-06/2.367, allocations: 4 kB / 0.7254 GB, free: 60.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.199/2.566, allocations: 74.42 MB / 0.798 GB, free: 8.254 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002597/2.567, allocations: 133 kB / 0.7982 GB, free: 8.055 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.944/7.511, allocations: 7.969 kB / 0.7982 GB, free: 8.047 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat