Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.631/2.631, allocations: 235.1 MB / 242.2 MB, free: 15.85 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.552e-05/3.55e-05, allocations: 3.938 kB / 299.5 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4641/0.4642, allocations: 54.85 MB / 354.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1921/0.6564, allocations: 99.09 MB / 453.4 MB, free: 15.1 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/0.6567, allocations: 71.97 kB / 453.5 MB, free: 15.03 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7212/1.378, allocations: 74.81 MB / 0.5159 GB, free: 101.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.716e-06/1.378, allocations: 2.344 kB / 0.5159 GB, free: 101.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002501/1.378, allocations: 75.22 kB / 0.516 GB, free: 101.8 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: 1315 * Number of variables: 1315 Notification: Performance of Generate backend data structure: time 0.01479/1.393, allocations: 3.577 MB / 0.5195 GB, free: 100.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/1.393, allocations: 15.03 kB / 0.5195 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03214/1.425, allocations: 4.319 MB / 0.5237 GB, free: 99.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01775/1.443, allocations: 4.466 MB / 0.5281 GB, free: 97.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000245/1.443, allocations: 120.6 kB / 0.5282 GB, free: 97.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002101/1.446, allocations: 220.7 kB / 0.5284 GB, free: 97.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01326/1.459, allocations: 5.129 MB / 0.5334 GB, free: 93.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02093/1.48, allocations: 8.204 MB / 0.5414 GB, free: 84.3 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003088/1.48, allocations: 63.45 kB / 0.5415 GB, free: 84.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001825/1.482, allocations: 32 kB / 0.5415 GB, free: 84.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001993/1.484, allocations: 0.8841 MB / 0.5424 GB, free: 83.33 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05983/1.544, allocations: 43.36 MB / 0.5847 GB, free: 38.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005204/1.549, allocations: 2.643 MB / 0.5873 GB, free: 35.83 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002904/1.552, allocations: 1.475 MB / 0.5888 GB, free: 34.35 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00148/1.554, allocations: 0.8682 MB / 0.5896 GB, free: 33.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.71e-05/1.554, allocations: 51.75 kB / 0.5897 GB, free: 33.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=159): time 5.58e-06/1.554, allocations: 0 / 0.5897 GB, free: 33.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=193): time 0.06739/1.621, allocations: 16.51 MB / 0.6058 GB, free: 16.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/1.621, allocations: 197.2 kB / 0.606 GB, free: 16.46 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006693/1.628, allocations: 2.878 MB / 0.6088 GB, free: 13.59 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005458/1.629, allocations: 29.7 kB / 0.6088 GB, free: 13.55 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002773/1.632, allocations: 2.862 MB / 0.6116 GB, free: 10.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001341/1.633, allocations: 0.7094 MB / 0.6123 GB, free: 9.926 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007652/1.634, allocations: 4 kB / 0.6123 GB, free: 9.922 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004242/1.634, allocations: 0.5622 MB / 0.6128 GB, free: 9.352 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004727/1.639, allocations: 1.921 MB / 0.6147 GB, free: 7.426 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00731/1.646, allocations: 5.561 MB / 0.6201 GB, free: 28 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00865/1.655, allocations: 3.253 MB / 0.6233 GB, free: 12.77 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001568/1.655, allocations: 44 kB / 0.6234 GB, free: 12.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.03273/1.688, allocations: 8.406 MB / 0.6316 GB, free: 4.336 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001243/1.688, allocations: 64 kB / 0.6316 GB, free: 4.273 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002236/1.688, allocations: 128 kB / 0.6318 GB, free: 4.148 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01007/1.698, allocations: 1.55 MB / 0.6333 GB, free: 2.594 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009351/1.708, allocations: 1.341 MB / 0.6346 GB, free: 1.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02468/1.733, allocations: 8.684 MB / 0.6431 GB, free: 8.457 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006915/1.74, allocations: 203.4 kB / 0.6433 GB, free: 8.258 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001782/1.741, allocations: 376 kB / 0.6436 GB, free: 7.891 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 593 * Number of states: 0 () * Number of discrete variables: 33 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.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 (724): * Single equations (assignments): 720 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001905/1.743, allocations: 436.8 kB / 0.644 GB, free: 7.453 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0226/1.766, allocations: 4.359 MB / 0.6483 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001761/1.768, allocations: 315.9 kB / 0.6486 GB, free: 2.793 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0196/1.787, allocations: 3.744 MB / 0.6522 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.79e-05/1.788, allocations: 20 kB / 0.6523 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.321e-05/1.788, allocations: 8 kB / 0.6523 GB, free: 15.01 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.205e-05/1.788, allocations: 11.97 kB / 0.6523 GB, free: 15 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03095/1.819, allocations: 7.657 MB / 0.6598 GB, free: 7.301 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.599e-05/1.819, allocations: 0 / 0.6598 GB, free: 7.301 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00262/1.821, allocations: 259.5 kB / 0.66 GB, free: 7.047 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008465/1.83, allocations: 1.203 MB / 0.6612 GB, free: 5.84 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003581/1.83, allocations: 11.98 kB / 0.6612 GB, free: 5.828 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3572/2.187, allocations: 6.872 MB / 0.6679 GB, free: 130.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.888e-06/2.187, allocations: 1.344 kB / 0.6679 GB, free: 130.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02084/2.208, allocations: 6.238 MB / 0.674 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002475/2.211, allocations: 0.5793 MB / 0.6746 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000843/2.212, allocations: 2.656 kB / 0.6746 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002452/2.214, allocations: 68.72 kB / 0.6746 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005439/2.215, allocations: 116.9 kB / 0.6747 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002199/2.215, allocations: 51.34 kB / 0.6748 GB, free: 129.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004709/2.22, allocations: 1.918 MB / 0.6767 GB, free: 129.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.062e-06/2.22, allocations: 0 / 0.6767 GB, free: 129.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007289/2.227, allocations: 0.8289 MB / 0.6775 GB, free: 129.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (138): * Single equations (assignments): 134 * 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%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01913/2.246, allocations: 7.207 MB / 0.6845 GB, free: 128.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01033/2.257, allocations: 4.732 MB / 0.6891 GB, free: 127.2 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/2.257, allocations: 6.016 kB / 0.6891 GB, free: 127.2 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003147/2.26, allocations: 1.564 MB / 0.6907 GB, free: 126.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/2.262, allocations: 284.8 kB / 0.6909 GB, free: 126.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02209/2.284, allocations: 7.856 MB / 0.6986 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004202/2.289, allocations: 3.04 MB / 0.7016 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.007612/2.296, allocations: 1.899 MB / 0.7034 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003307/2.3, allocations: 1.645 MB / 0.705 GB, free: 121.1 MB / 474.7 MB Notification: Performance of SimCode: time 1.553e-06/2.3, allocations: 0 / 0.705 GB, free: 121.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1714/2.471, allocations: 70.21 MB / 0.7736 GB, free: 63.4 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002398/2.471, allocations: 135.8 kB / 0.7737 GB, free: 63.21 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.542/8.013, allocations: 4 kB / 0.7737 GB, free: 63.21 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat