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.414/2.414, allocations: 235 MB / 247.2 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.911e-05/3.921e-05, allocations: 4 kB / 305 MB, free: 5.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3982/0.3983, allocations: 54.85 MB / 359.9 MB, free: 3.207 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1978/0.5962, allocations: 105.6 MB / 465.5 MB, free: 7.215 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002931/0.5965, allocations: 79.95 kB / 465.6 MB, free: 7.137 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9351/1.532, allocations: 135.8 MB / 0.5873 GB, free: 98.04 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.532, allocations: 0 / 0.5873 GB, free: 98.04 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005078/1.532, allocations: 133.7 kB / 0.5874 GB, free: 98.04 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02988/1.562, allocations: 7.04 MB / 0.5943 GB, free: 93.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/1.562, allocations: 11.5 kB / 0.5943 GB, free: 93.59 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005562/1.568, allocations: 1.134 MB / 0.5954 GB, free: 92.83 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0578/1.626, allocations: 7.566 MB / 0.6028 GB, free: 86.67 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03465/1.66, allocations: 9.793 MB / 0.6124 GB, free: 76.93 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006179/1.661, allocations: 491.2 kB / 0.6128 GB, free: 76.49 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003821/1.665, allocations: 0.6531 MB / 0.6135 GB, free: 75.88 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05212/1.717, allocations: 16.48 MB / 0.6296 GB, free: 58.08 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004775/1.718, allocations: 103 kB / 0.6297 GB, free: 57.98 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002844/1.72, allocations: 315.5 kB / 0.63 GB, free: 57.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003573/1.724, allocations: 1.575 MB / 0.6315 GB, free: 56.13 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04406/1.768, allocations: 13.22 MB / 0.6444 GB, free: 42.89 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5086/2.277, allocations: 74.24 MB / 0.7169 GB, free: 58.54 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04137/2.318, allocations: 7.629 MB / 0.7244 GB, free: 57.85 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009163/2.327, allocations: 3.912 MB / 0.7282 GB, free: 57.8 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04561/2.373, allocations: 18.63 MB / 0.7464 GB, free: 53.36 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.748e-05/2.373, allocations: 68.62 kB / 0.7464 GB, free: 53.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=280): time 6.783e-06/2.373, allocations: 0 / 0.7464 GB, free: 53.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=361): time 0.2659/2.639, allocations: 40.4 MB / 0.7859 GB, free: 42.64 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/2.639, allocations: 267.2 kB / 0.7861 GB, free: 42.36 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01273/2.652, allocations: 5.293 MB / 0.7913 GB, free: 38.75 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001072/2.653, allocations: 87.66 kB / 0.7914 GB, free: 38.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004379/2.658, allocations: 4.754 MB / 0.796 GB, free: 34.39 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002261/2.66, allocations: 1.33 MB / 0.7973 GB, free: 33.21 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001283/2.661, allocations: 185.8 kB / 0.7975 GB, free: 33.04 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007077/2.662, allocations: 0.6881 MB / 0.7982 GB, free: 32.45 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009411/2.671, allocations: 3.66 MB / 0.8018 GB, free: 29.15 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01305/2.684, allocations: 8.788 MB / 0.8103 GB, free: 18.55 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01327/2.698, allocations: 5.569 MB / 0.8158 GB, free: 13.96 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002098/2.698, allocations: 55.94 kB / 0.8158 GB, free: 13.91 MB / 474.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.05693/2.755, allocations: 15.88 MB / 0.8313 GB, free: 1.371 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/2.755, allocations: 84 kB / 0.8314 GB, free: 1.289 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00027/2.756, allocations: 180 kB / 0.8316 GB, free: 1.113 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02494/2.78, allocations: 4.11 MB / 0.8356 GB, free: 13.32 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01419/2.795, allocations: 2.027 MB / 0.8376 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06225/2.857, allocations: 21.76 MB / 0.8588 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01218/2.869, allocations: 0.5508 MB / 0.8594 GB, free: 4.727 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002561/2.872, allocations: 0.528 MB / 0.8599 GB, free: 4.199 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * 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 (1077): * Single equations (assignments): 1072 * 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.003766/2.876, allocations: 0.8018 MB / 0.8607 GB, free: 3.395 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001912/2.878, allocations: 0.5786 MB / 0.8612 GB, free: 2.809 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04341/2.921, allocations: 9.655 MB / 0.8707 GB, free: 9.102 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-05/2.921, allocations: 39.94 kB / 0.8707 GB, free: 9.062 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.395e-05/2.921, allocations: 23.95 kB / 0.8707 GB, free: 9.039 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.612e-05/2.921, allocations: 15.94 kB / 0.8707 GB, free: 9.023 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0743/2.996, allocations: 19.01 MB / 0.8893 GB, free: 5.891 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.906e-05/2.996, allocations: 8 kB / 0.8893 GB, free: 5.883 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005679/3.002, allocations: 0.4954 MB / 0.8898 GB, free: 5.387 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02377/3.025, allocations: 3.606 MB / 0.8933 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001039/3.026, allocations: 67.48 kB / 0.8934 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4066/3.433, allocations: 18.72 MB / 0.9117 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/3.433, allocations: 1.719 kB / 0.9117 GB, free: 167.9 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05131/3.484, allocations: 14.05 MB / 0.9254 GB, free: 167.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004642/3.489, allocations: 1.114 MB / 0.9265 GB, free: 167.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002074/3.491, allocations: 67.92 kB / 0.9265 GB, free: 167.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00661/3.498, allocations: 231.8 kB / 0.9268 GB, free: 167.1 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001602/3.5, allocations: 219.6 kB / 0.927 GB, free: 167.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005353/3.5, allocations: 94.95 kB / 0.9271 GB, free: 167.1 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01181/3.512, allocations: 3.704 MB / 0.9307 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.314e-06/3.512, allocations: 0 / 0.9307 GB, free: 166.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01299/3.525, allocations: 1.836 MB / 0.9325 GB, free: 166.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (264): * Single equations (assignments): 259 * 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.04792/3.573, allocations: 14.9 MB / 0.947 GB, free: 165.1 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02324/3.596, allocations: 9.133 MB / 0.9559 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/3.596, allocations: 2.594 kB / 0.9559 GB, free: 162.1 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.009825/3.606, allocations: 3.624 MB / 0.9595 GB, free: 160.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007042/3.613, allocations: 0.7194 MB / 0.9602 GB, free: 160.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0521/3.665, allocations: 15.26 MB / 0.9751 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01213/3.678, allocations: 4.993 MB / 0.98 GB, free: 153.5 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.01438/3.692, allocations: 2.795 MB / 0.9827 GB, free: 153.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008012/3.7, allocations: 3.256 MB / 0.9859 GB, free: 150.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.874e-06/3.7, allocations: 0 / 0.9859 GB, free: 150.7 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6834/4.384, allocations: 140.7 MB / 1.123 GB, free: 148.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002683/4.384, allocations: 179.5 kB / 1.123 GB, free: 148.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.591/12.97, allocations: 0 / 1.123 GB, free: 148.3 MB / 0.5417 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