Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.535/2.535, allocations: 235.1 MB / 242.2 MB, free: 15.8 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.068e-05, allocations: 0 / 299.5 MB, free: 6.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4312/0.4313, allocations: 54.85 MB / 354.3 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2672/0.6986, allocations: 105 MB / 459.3 MB, free: 9.195 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002809/0.6989, allocations: 75.95 kB / 459.4 MB, free: 9.121 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8714/1.57, allocations: 133.1 MB / 0.5786 GB, free: 48.77 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.57, allocations: 0 / 0.5786 GB, free: 48.77 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004956/1.571, allocations: 132 kB / 0.5787 GB, free: 48.64 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03059/1.602, allocations: 7.035 MB / 0.5856 GB, free: 41.53 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.352e-05/1.602, allocations: 12.03 kB / 0.5856 GB, free: 41.52 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05687/1.658, allocations: 7.561 MB / 0.593 GB, free: 33.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03512/1.694, allocations: 9.772 MB / 0.6025 GB, free: 24.08 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000455/1.694, allocations: 216 kB / 0.6027 GB, free: 23.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003822/1.698, allocations: 399.7 kB / 0.6031 GB, free: 23.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02453/1.723, allocations: 9.652 MB / 0.6125 GB, free: 13.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03752/1.76, allocations: 14.21 MB / 0.6264 GB, free: 14.16 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005543/1.761, allocations: 95.17 kB / 0.6265 GB, free: 14.07 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003385/1.764, allocations: 44 kB / 0.6266 GB, free: 14.03 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004484/1.769, allocations: 1.576 MB / 0.6281 GB, free: 12.44 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5957/2.364, allocations: 73.61 MB / 0.7 GB, free: 60.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01399/2.378, allocations: 5.133 MB / 0.705 GB, free: 59.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009783/2.388, allocations: 3.707 MB / 0.7086 GB, free: 59.79 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004593/2.393, allocations: 2.26 MB / 0.7108 GB, free: 57.82 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001026/2.393, allocations: 69.03 kB / 0.7109 GB, free: 57.78 MB / 474.7 MB Notification: Performance of pre-optimization done (n=295): time 1.091e-05/2.393, allocations: 0 / 0.7109 GB, free: 57.78 MB / 474.7 MB Notification: Performance of matching and sorting (n=374): time 0.1698/2.563, allocations: 39.62 MB / 0.7496 GB, free: 49.61 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/2.563, allocations: 271.9 kB / 0.7498 GB, free: 49.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01188/2.575, allocations: 4.636 MB / 0.7544 GB, free: 47.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001066/2.576, allocations: 27.67 kB / 0.7544 GB, free: 47.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00457/2.581, allocations: 4.78 MB / 0.7591 GB, free: 44.17 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002355/2.583, allocations: 1.332 MB / 0.7604 GB, free: 43.17 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00123/2.584, allocations: 3.406 kB / 0.7604 GB, free: 43.17 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007309/2.585, allocations: 0.7049 MB / 0.761 GB, free: 42.69 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008926/2.594, allocations: 3.621 MB / 0.7646 GB, free: 41.37 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01253/2.607, allocations: 8.893 MB / 0.7733 GB, free: 30.92 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/2.619, allocations: 5.541 MB / 0.7787 GB, free: 26.58 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001944/2.619, allocations: 52 kB / 0.7787 GB, free: 26.53 MB / 474.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.06503/2.684, allocations: 15.53 MB / 0.7939 GB, free: 14.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000194/2.685, allocations: 84 kB / 0.794 GB, free: 14.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003494/2.685, allocations: 186.3 kB / 0.7941 GB, free: 13.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03174/2.717, allocations: 4.122 MB / 0.7982 GB, free: 11.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01619/2.733, allocations: 2.094 MB / 0.8002 GB, free: 9.223 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05294/2.786, allocations: 21.06 MB / 0.8208 GB, free: 7.176 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01154/2.798, allocations: 380.6 kB / 0.8211 GB, free: 6.883 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002529/2.8, allocations: 0.5416 MB / 0.8217 GB, free: 6.352 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1114): * Single equations (assignments): 1109 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002762/2.803, allocations: 0.5767 MB / 0.8222 GB, free: 5.777 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04162/2.845, allocations: 9.86 MB / 0.8319 GB, free: 14 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002519/2.847, allocations: 0.539 MB / 0.8324 GB, free: 13.46 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04409/2.891, allocations: 9.565 MB / 0.8417 GB, free: 4.652 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001074/2.892, allocations: 43.98 kB / 0.8418 GB, free: 4.609 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.44e-05/2.892, allocations: 19.84 kB / 0.8418 GB, free: 4.594 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.476e-05/2.892, allocations: 15.94 kB / 0.8418 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07159/2.963, allocations: 18.09 MB / 0.8595 GB, free: 2.363 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.128e-05/2.963, allocations: 4 kB / 0.8595 GB, free: 2.359 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005613/2.969, allocations: 0.519 MB / 0.86 GB, free: 1.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4566/3.426, allocations: 3.557 MB / 0.8635 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008832/3.427, allocations: 14.03 kB / 0.8635 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04469/3.471, allocations: 17.68 MB / 0.8807 GB, free: 133 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/3.471, allocations: 7.219 kB / 0.8807 GB, free: 133 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0431/3.514, allocations: 14.23 MB / 0.8946 GB, free: 131.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004508/3.519, allocations: 1.078 MB / 0.8957 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002374/3.521, allocations: 7.672 kB / 0.8957 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006406/3.528, allocations: 181.9 kB / 0.8959 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001712/3.53, allocations: 240.1 kB / 0.8961 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005526/3.53, allocations: 94.62 kB / 0.8962 GB, free: 131.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.00837/3.539, allocations: 3.127 MB / 0.8993 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.72e-07/3.539, allocations: 2.297 kB / 0.8993 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0132/3.552, allocations: 1.604 MB / 0.9008 GB, free: 131.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (277): * Single equations (assignments): 272 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04822/3.6, allocations: 15.45 MB / 0.9159 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02974/3.63, allocations: 9.156 MB / 0.9249 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.148e-05/3.63, allocations: 0 / 0.9249 GB, free: 122.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01231/3.642, allocations: 3.64 MB / 0.9284 GB, free: 120.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007347/3.65, allocations: 0.585 MB / 0.929 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05056/3.7, allocations: 14.93 MB / 0.9436 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01126/3.712, allocations: 5.006 MB / 0.9484 GB, free: 109.1 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01362/3.725, allocations: 2.865 MB / 0.9512 GB, free: 107.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007527/3.733, allocations: 3.24 MB / 0.9544 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.503e-06/3.733, allocations: 0 / 0.9544 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7115/4.445, allocations: 133.5 MB / 1.085 GB, free: 133 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002151/4.445, allocations: 139.5 kB / 1.085 GB, free: 132.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.645/13.09, allocations: 0 / 1.085 GB, free: 132.8 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat