Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.404/2.404, allocations: 235.2 MB / 242.3 MB, free: 9.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.391e-05/2.382e-05, allocations: 4 kB / 299.6 MB, free: 192 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3686/0.3687, allocations: 54.84 MB / 354.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2167/0.5854, allocations: 105 MB / 459.4 MB, free: 6.156 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004009/0.5858, allocations: 79.94 kB / 459.5 MB, free: 6.078 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9253/1.511, allocations: 133.1 MB / 0.5787 GB, free: 1.191 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.234e-06/1.511, allocations: 4 kB / 0.5787 GB, free: 1.188 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007092/1.512, allocations: 132 kB / 0.5788 GB, free: 1.059 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.04476/1.557, allocations: 7.032 MB / 0.5857 GB, free: 9.949 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.359e-05/1.557, allocations: 8.031 kB / 0.5857 GB, free: 9.941 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0788/1.636, allocations: 7.565 MB / 0.5931 GB, free: 2.355 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04185/1.678, allocations: 9.778 MB / 0.6026 GB, free: 8.492 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005281/1.678, allocations: 208 kB / 0.6028 GB, free: 8.289 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003684/1.682, allocations: 395.7 kB / 0.6032 GB, free: 7.902 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02913/1.711, allocations: 9.659 MB / 0.6126 GB, free: 14.23 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4012/2.112, allocations: 14.2 MB / 0.6265 GB, free: 69.17 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005515/2.113, allocations: 103.7 kB / 0.6266 GB, free: 69.17 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002057/2.115, allocations: 43.84 kB / 0.6266 GB, free: 69.17 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004617/2.12, allocations: 1.571 MB / 0.6282 GB, free: 69.16 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1221/2.242, allocations: 73.62 MB / 0.7001 GB, free: 26.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/2.252, allocations: 5.131 MB / 0.7051 GB, free: 25.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007583/2.26, allocations: 3.707 MB / 0.7087 GB, free: 23.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003872/2.264, allocations: 2.261 MB / 0.7109 GB, free: 21.79 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.537e-05/2.264, allocations: 70.27 kB / 0.711 GB, free: 21.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=295): time 8.807e-06/2.264, allocations: 0 / 0.711 GB, free: 21.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=374): time 0.1809/2.445, allocations: 39.62 MB / 0.7497 GB, free: 8.871 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/2.445, allocations: 273.8 kB / 0.7499 GB, free: 8.582 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01084/2.456, allocations: 4.644 MB / 0.7545 GB, free: 6.664 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001032/2.457, allocations: 25.7 kB / 0.7545 GB, free: 6.633 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004347/2.461, allocations: 4.777 MB / 0.7592 GB, free: 2.449 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002265/2.464, allocations: 1.327 MB / 0.7604 GB, free: 1.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001238/2.465, allocations: 0 / 0.7604 GB, free: 1.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006483/2.466, allocations: 0.7054 MB / 0.7611 GB, free: 0.6523 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02993/2.496, allocations: 4.651 MB / 0.7657 GB, free: 0 / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01678/2.513, allocations: 8.897 MB / 0.7744 GB, free: 5.246 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01547/2.528, allocations: 5.553 MB / 0.7798 GB, free: 0.6641 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002254/2.528, allocations: 56 kB / 0.7798 GB, free: 0.6094 MB / 474.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.07962/2.608, allocations: 16.18 MB / 0.7956 GB, free: 5.621 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001799/2.608, allocations: 85.5 kB / 0.7957 GB, free: 5.539 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003189/2.609, allocations: 191.7 kB / 0.7959 GB, free: 5.355 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02843/2.637, allocations: 4.123 MB / 0.7999 GB, free: 1.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01617/2.653, allocations: 2.09 MB / 0.802 GB, free: 15.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4567/3.11, allocations: 21.05 MB / 0.8225 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01236/3.122, allocations: 388.1 kB / 0.8229 GB, free: 108.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002486/3.125, allocations: 0.5431 MB / 0.8234 GB, free: 108.8 MB / 0.4948 GB 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.002955/3.128, allocations: 0.5771 MB / 0.824 GB, free: 108.7 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04031/3.168, allocations: 9.839 MB / 0.8336 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002116/3.17, allocations: 0.5359 MB / 0.8341 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04059/3.211, allocations: 9.565 MB / 0.8435 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-05/3.211, allocations: 43.42 kB / 0.8435 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.345e-05/3.211, allocations: 15.06 kB / 0.8435 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.042e-05/3.211, allocations: 18.05 kB / 0.8435 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06789/3.279, allocations: 18.09 MB / 0.8612 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.8e-05/3.279, allocations: 3.938 kB / 0.8612 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005858/3.285, allocations: 0.523 MB / 0.8617 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02336/3.309, allocations: 3.559 MB / 0.8652 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008171/3.309, allocations: 14.8 kB / 0.8652 GB, free: 107.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04547/3.355, allocations: 17.68 MB / 0.8825 GB, free: 100 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.108e-05/3.355, allocations: 10.27 kB / 0.8825 GB, free: 100 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04701/3.402, allocations: 14.23 MB / 0.8964 GB, free: 94.68 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004602/3.407, allocations: 1.086 MB / 0.8974 GB, free: 94.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002356/3.409, allocations: 7.578 kB / 0.8975 GB, free: 94.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0066/3.416, allocations: 181.1 kB / 0.8976 GB, free: 94.08 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001639/3.417, allocations: 230.9 kB / 0.8978 GB, free: 94.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005529/3.418, allocations: 98.16 kB / 0.8979 GB, free: 94.02 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008193/3.426, allocations: 3.12 MB / 0.901 GB, free: 92.93 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.303e-06/3.426, allocations: 2.969 kB / 0.901 GB, free: 92.93 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01294/3.439, allocations: 1.607 MB / 0.9026 GB, free: 92.92 MB / 0.4948 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.04935/3.489, allocations: 15.46 MB / 0.9177 GB, free: 80.84 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02221/3.511, allocations: 9.146 MB / 0.9266 GB, free: 73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/3.511, allocations: 4 kB / 0.9266 GB, free: 73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009334/3.52, allocations: 3.632 MB / 0.9301 GB, free: 69.75 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006458/3.527, allocations: 0.5933 MB / 0.9307 GB, free: 69.26 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05036/3.577, allocations: 14.93 MB / 0.9453 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01147/3.589, allocations: 4.997 MB / 0.9502 GB, free: 52.89 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01468/3.603, allocations: 2.864 MB / 0.953 GB, free: 50.88 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007803/3.611, allocations: 3.241 MB / 0.9561 GB, free: 47.63 MB / 0.4948 GB Notification: Performance of SimCode: time 1.943e-06/3.611, allocations: 0 / 0.9561 GB, free: 47.63 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7012/4.312, allocations: 133.5 MB / 1.087 GB, free: 81.08 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002667/4.313, allocations: 152.5 kB / 1.087 GB, free: 80.89 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform dynamic: time 8.31/12.62, allocations: 1.312 kB / 1.087 GB, free: 80.89 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat