Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.082/2.082, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.407e-05/2.418e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1128, allocations: 48.7 MB / 316.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4916/0.6045, allocations: 98.4 MB / 414.7 MB, free: 10.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002928/0.6048, allocations: 71.52 kB / 414.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9082/1.513, allocations: 133 MB / 0.5349 GB, free: 84.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.513, allocations: 0 / 0.5349 GB, free: 84.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004774/1.514, allocations: 130.5 kB / 0.535 GB, free: 84.39 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.03033/1.544, allocations: 7.037 MB / 0.5419 GB, free: 81.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/1.544, allocations: 7.562 kB / 0.5419 GB, free: 81.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05618/1.6, allocations: 7.562 MB / 0.5493 GB, free: 78.1 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03433/1.635, allocations: 9.769 MB / 0.5588 GB, free: 71.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003756/1.635, allocations: 209.7 kB / 0.559 GB, free: 71.1 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00347/1.638, allocations: 399.7 kB / 0.5594 GB, free: 70.71 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.023/1.662, allocations: 9.659 MB / 0.5689 GB, free: 61.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0441/1.706, allocations: 14.2 MB / 0.5827 GB, free: 45.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005824/1.706, allocations: 99.08 kB / 0.5828 GB, free: 45.31 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003418/1.71, allocations: 44 kB / 0.5829 GB, free: 45.27 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004774/1.715, allocations: 1.58 MB / 0.5844 GB, free: 43.69 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4786/2.193, allocations: 73.58 MB / 0.6563 GB, free: 51.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01175/2.205, allocations: 5.128 MB / 0.6613 GB, free: 50.75 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008308/2.213, allocations: 3.706 MB / 0.6649 GB, free: 50.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003814/2.217, allocations: 2.259 MB / 0.6671 GB, free: 48.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.992e-05/2.217, allocations: 65.25 kB / 0.6672 GB, free: 48.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=295): time 7.464e-06/2.217, allocations: 0 / 0.6672 GB, free: 48.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=374): time 0.1739/2.391, allocations: 39.62 MB / 0.7058 GB, free: 39.53 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/2.392, allocations: 272.7 kB / 0.7061 GB, free: 39.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01199/2.404, allocations: 4.64 MB / 0.7106 GB, free: 37.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001174/2.405, allocations: 31.27 kB / 0.7107 GB, free: 37.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00445/2.409, allocations: 4.62 MB / 0.7152 GB, free: 33.99 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002442/2.412, allocations: 1.333 MB / 0.7165 GB, free: 32.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001342/2.413, allocations: 0 / 0.7165 GB, free: 32.99 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007786/2.414, allocations: 0.7113 MB / 0.7172 GB, free: 32.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009038/2.423, allocations: 3.619 MB / 0.7207 GB, free: 31.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01318/2.436, allocations: 8.886 MB / 0.7294 GB, free: 22.44 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01287/2.449, allocations: 5.551 MB / 0.7348 GB, free: 18.09 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000225/2.449, allocations: 52 kB / 0.7349 GB, free: 18.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.05525/2.505, allocations: 15.34 MB / 0.7498 GB, free: 5.742 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001399/2.505, allocations: 88 kB / 0.7499 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003111/2.505, allocations: 184.9 kB / 0.7501 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02354/2.529, allocations: 4.127 MB / 0.7541 GB, free: 2.621 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01388/2.543, allocations: 2.103 MB / 0.7562 GB, free: 0.7852 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05852/2.601, allocations: 21.05 MB / 0.7767 GB, free: 14.76 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01219/2.613, allocations: 388.4 kB / 0.7771 GB, free: 14.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002858/2.616, allocations: 0.5456 MB / 0.7776 GB, free: 13.93 MB / 458.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.003098/2.62, allocations: 0.5838 MB / 0.7782 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04232/2.662, allocations: 9.841 MB / 0.7878 GB, free: 3.812 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002528/2.664, allocations: 0.5439 MB / 0.7884 GB, free: 3.262 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04288/2.707, allocations: 9.552 MB / 0.7977 GB, free: 9.648 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001169/2.708, allocations: 36 kB / 0.7977 GB, free: 9.613 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.697e-05/2.708, allocations: 16 kB / 0.7977 GB, free: 9.598 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001122/2.708, allocations: 22.38 kB / 0.7978 GB, free: 9.578 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07345/2.781, allocations: 18.1 MB / 0.8154 GB, free: 7.355 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.982e-05/2.781, allocations: 0 / 0.8154 GB, free: 7.355 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005668/2.787, allocations: 0.5188 MB / 0.8159 GB, free: 6.836 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02347/2.81, allocations: 3.56 MB / 0.8194 GB, free: 3.266 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001083/2.812, allocations: 15.98 kB / 0.8194 GB, free: 3.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3794/3.191, allocations: 17.66 MB / 0.8367 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.148e-05/3.191, allocations: 5.281 kB / 0.8367 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04637/3.237, allocations: 14.25 MB / 0.8506 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004599/3.242, allocations: 1.079 MB / 0.8516 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00242/3.245, allocations: 7.859 kB / 0.8517 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006499/3.251, allocations: 182.8 kB / 0.8518 GB, free: 139 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001773/3.253, allocations: 235.6 kB / 0.8521 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004659/3.254, allocations: 101.3 kB / 0.8522 GB, free: 138.9 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008557/3.262, allocations: 3.127 MB / 0.8552 GB, free: 137.8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.072e-06/3.262, allocations: 0 / 0.8552 GB, free: 137.8 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01352/3.276, allocations: 1.601 MB / 0.8568 GB, free: 137.8 MB / 490.7 MB 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.04718/3.323, allocations: 15.45 MB / 0.8719 GB, free: 131.7 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02246/3.345, allocations: 9.157 MB / 0.8808 GB, free: 128.6 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/3.346, allocations: 0 / 0.8808 GB, free: 128.6 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009283/3.355, allocations: 3.626 MB / 0.8843 GB, free: 127 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006365/3.361, allocations: 0.5856 MB / 0.8849 GB, free: 126.8 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05278/3.414, allocations: 15.67 MB / 0.9002 GB, free: 120.3 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01195/3.426, allocations: 5.002 MB / 0.9051 GB, free: 116.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00814/3.434, allocations: 3.302 MB / 0.9083 GB, free: 113.6 MB / 490.7 MB Notification: Performance of SimCode: time 2.174e-06/3.434, allocations: 6.594 kB / 0.9083 GB, free: 113.5 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.767/9.201, allocations: 183.3 MB / 1.087 GB, free: 94.76 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat