Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Planar,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_Planar",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.672/2.672, allocations: 235.2 MB / 242.3 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.748e-05, allocations: 0 / 299.6 MB, free: 216 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3754, allocations: 54.86 MB / 354.4 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2024/0.5779, allocations: 99.09 MB / 453.5 MB, free: 11.97 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003297/0.5783, allocations: 75.95 kB / 453.6 MB, free: 11.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9106/1.489, allocations: 114.5 MB / 0.5548 GB, free: 8.707 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.845e-06/1.489, allocations: 0 / 0.5548 GB, free: 8.707 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000277/1.489, allocations: 88 kB / 0.5549 GB, free: 8.621 MB / 394.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.01876/1.508, allocations: 4.445 MB / 0.5592 GB, free: 4.109 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.934e-05/1.508, allocations: 12.03 kB / 0.5592 GB, free: 4.098 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03295/1.541, allocations: 3.651 MB / 0.5628 GB, free: 444 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02746/1.569, allocations: 4.8 MB / 0.5675 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006666/1.569, allocations: 168 kB / 0.5676 GB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004476/1.574, allocations: 287.9 kB / 0.5679 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03698/1.611, allocations: 8.455 MB / 0.5762 GB, free: 2.676 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05383/1.665, allocations: 11.19 MB / 0.5871 GB, free: 6.945 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004631/1.665, allocations: 39.64 kB / 0.5871 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003715/1.669, allocations: 16 kB / 0.5872 GB, free: 6.891 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006404/1.676, allocations: 1.389 MB / 0.5885 GB, free: 5.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.615/2.291, allocations: 39.73 MB / 0.6273 GB, free: 82.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00871/2.299, allocations: 4.364 MB / 0.6316 GB, free: 81.04 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005036/2.304, allocations: 2.372 MB / 0.6339 GB, free: 81.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001751/2.306, allocations: 1.318 MB / 0.6352 GB, free: 79.89 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/2.306, allocations: 59.34 kB / 0.6352 GB, free: 79.85 MB / 458.7 MB Notification: Performance of pre-optimization done (n=252): time 8.045e-06/2.306, allocations: 0 / 0.6352 GB, free: 79.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=271): time 0.06519/2.372, allocations: 18.88 MB / 0.6537 GB, free: 77.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/2.372, allocations: 102.5 kB / 0.6538 GB, free: 77.83 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005801/2.377, allocations: 2.645 MB / 0.6564 GB, free: 77.52 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005731/2.378, allocations: 25.7 kB / 0.6564 GB, free: 77.49 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002793/2.381, allocations: 3.374 MB / 0.6597 GB, free: 75.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001468/2.382, allocations: 0.9631 MB / 0.6606 GB, free: 75.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008437/2.383, allocations: 0 / 0.6606 GB, free: 75.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007551/2.384, allocations: 0.583 MB / 0.6612 GB, free: 74.94 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00852/2.393, allocations: 2.391 MB / 0.6635 GB, free: 74.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01211/2.405, allocations: 6.02 MB / 0.6694 GB, free: 70.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0132/2.418, allocations: 3.828 MB / 0.6731 GB, free: 69.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001911/2.418, allocations: 43.84 kB / 0.6732 GB, free: 69.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=859) (initialization): time 0.04038/2.459, allocations: 8.572 MB / 0.6816 GB, free: 67.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001797/2.459, allocations: 57.25 kB / 0.6816 GB, free: 67.71 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002729/2.459, allocations: 130.6 kB / 0.6817 GB, free: 67.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007676/2.467, allocations: 1.07 MB / 0.6828 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01163/2.479, allocations: 1.487 MB / 0.6842 GB, free: 67.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/2.492, allocations: 4.871 MB / 0.689 GB, free: 64.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007565/2.499, allocations: 218.4 kB / 0.6892 GB, free: 64.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001574/2.501, allocations: 383.2 kB / 0.6896 GB, free: 64.93 MB / 458.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.00152/2.502, allocations: 442 kB / 0.69 GB, free: 64.57 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01571/2.518, allocations: 4.655 MB / 0.6945 GB, free: 61.62 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001171/2.519, allocations: 314.2 kB / 0.6948 GB, free: 61.32 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0175/2.537, allocations: 5.193 MB / 0.6999 GB, free: 57.1 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001346/2.537, allocations: 51.7 kB / 0.6999 GB, free: 57.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/2.537, allocations: 4 kB / 0.7 GB, free: 57.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.009e-05/2.537, allocations: 14.33 kB / 0.7 GB, free: 57.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04136/2.578, allocations: 12.01 MB / 0.7117 GB, free: 47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.282e-05/2.579, allocations: 12 kB / 0.7117 GB, free: 46.99 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004339/2.583, allocations: 425.6 kB / 0.7121 GB, free: 46.65 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005977/2.589, allocations: 0.8858 MB / 0.713 GB, free: 46.1 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006009/2.59, allocations: 23.8 kB / 0.713 GB, free: 46.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/2.6, allocations: 4.234 MB / 0.7171 GB, free: 42.38 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.852e-05/2.6, allocations: 19.88 kB / 0.7171 GB, free: 42.36 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02117/2.621, allocations: 8.961 MB / 0.7259 GB, free: 33.92 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002825/2.624, allocations: 0.7269 MB / 0.7266 GB, free: 33.23 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001194/2.625, allocations: 18.78 kB / 0.7266 GB, free: 33.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003249/2.629, allocations: 110.5 kB / 0.7267 GB, free: 33.15 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007306/2.629, allocations: 167.5 kB / 0.7269 GB, free: 33.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003034/2.63, allocations: 83.66 kB / 0.727 GB, free: 32.96 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004019/2.634, allocations: 1.731 MB / 0.7287 GB, free: 31.47 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.01e-07/2.634, allocations: 0 / 0.7287 GB, free: 31.47 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008299/2.642, allocations: 0.9686 MB / 0.7296 GB, free: 30.51 MB / 458.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.02412/2.666, allocations: 12.6 MB / 0.7419 GB, free: 18.63 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02054/2.687, allocations: 5.817 MB / 0.7476 GB, free: 13.39 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.432e-05/2.687, allocations: 0 / 0.7476 GB, free: 13.39 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007522/2.694, allocations: 2.186 MB / 0.7497 GB, free: 11.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003914/2.698, allocations: 284.1 kB / 0.75 GB, free: 11.17 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03593/2.734, allocations: 11.18 MB / 0.7609 GB, free: 1.379 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008886/2.743, allocations: 3.923 MB / 0.7648 GB, free: 14.39 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01183/2.755, allocations: 2.296 MB / 0.767 GB, free: 12.92 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006671/2.762, allocations: 2.206 MB / 0.7691 GB, free: 10.88 MB / 474.7 MB Notification: Performance of SimCode: time 2.084e-06/2.762, allocations: 0 / 0.7691 GB, free: 10.88 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6393/3.401, allocations: 74.45 MB / 0.8419 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003021/3.402, allocations: 128.7 kB / 0.842 GB, free: 135.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.659/9.06, allocations: 0 / 0.842 GB, free: 135.6 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.Planar_res.mat does not exist to compare? outputFormat=mat