Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.087/2.087, allocations: 209.4 MB / 216.9 MB, free: 6.668 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.464e-05/2.473e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1027, allocations: 48.69 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4339/0.5367, allocations: 98.51 MB / 414.8 MB, free: 10.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002739/0.537, allocations: 71.91 kB / 414.9 MB, free: 10.04 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8401/1.377, allocations: 133 MB / 0.535 GB, free: 84.64 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.765e-06/1.377, allocations: 0 / 0.535 GB, free: 84.64 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004766/1.378, allocations: 137.5 kB / 0.5351 GB, free: 84.63 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.02927/1.407, allocations: 7.033 MB / 0.542 GB, free: 81.44 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/1.407, allocations: 14.56 kB / 0.542 GB, free: 81.43 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05568/1.463, allocations: 7.559 MB / 0.5494 GB, free: 78.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03452/1.497, allocations: 9.778 MB / 0.5589 GB, free: 71.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004279/1.498, allocations: 213.7 kB / 0.5591 GB, free: 71.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003686/1.502, allocations: 395.7 kB / 0.5595 GB, free: 70.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02366/1.525, allocations: 9.679 MB / 0.569 GB, free: 60.95 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03586/1.561, allocations: 14.24 MB / 0.5829 GB, free: 45.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000457/1.562, allocations: 99.12 kB / 0.583 GB, free: 45.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002688/1.564, allocations: 44 kB / 0.583 GB, free: 45.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003547/1.568, allocations: 1.583 MB / 0.5846 GB, free: 43.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.508/2.076, allocations: 73.66 MB / 0.6565 GB, free: 51.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01661/2.093, allocations: 5.224 MB / 0.6616 GB, free: 50.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01197/2.105, allocations: 3.774 MB / 0.6653 GB, free: 50.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005361/2.11, allocations: 2.259 MB / 0.6675 GB, free: 48.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.857e-05/2.11, allocations: 63.47 kB / 0.6675 GB, free: 48.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=301): time 1.172e-05/2.11, allocations: 0 / 0.6675 GB, free: 48.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=381): time 0.1697/2.28, allocations: 40.66 MB / 0.7073 GB, free: 39.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/2.28, allocations: 277.1 kB / 0.7075 GB, free: 38.75 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01059/2.291, allocations: 4.638 MB / 0.712 GB, free: 37.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009936/2.292, allocations: 28.73 kB / 0.7121 GB, free: 37.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00391/2.296, allocations: 4.622 MB / 0.7166 GB, free: 33.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002288/2.298, allocations: 1.349 MB / 0.7179 GB, free: 32.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001388/2.3, allocations: 0 / 0.7179 GB, free: 32.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007753/2.3, allocations: 0.7148 MB / 0.7186 GB, free: 32.01 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008884/2.309, allocations: 3.645 MB / 0.7222 GB, free: 30.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01239/2.322, allocations: 8.922 MB / 0.7309 GB, free: 21.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01222/2.334, allocations: 5.587 MB / 0.7363 GB, free: 16.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000213/2.334, allocations: 52 kB / 0.7364 GB, free: 16.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.05237/2.387, allocations: 15.34 MB / 0.7514 GB, free: 4.418 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00014/2.387, allocations: 87.14 kB / 0.7514 GB, free: 4.336 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002916/2.387, allocations: 188 kB / 0.7516 GB, free: 4.152 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02255/2.41, allocations: 4.079 MB / 0.7556 GB, free: 1.312 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01412/2.424, allocations: 2.117 MB / 0.7577 GB, free: 15.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.059/2.483, allocations: 21.03 MB / 0.7782 GB, free: 13.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01182/2.495, allocations: 387.1 kB / 0.7786 GB, free: 13.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002763/2.498, allocations: 0.5453 MB / 0.7791 GB, free: 12.66 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 (1121): * Single equations (assignments): 1116 * 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,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003954/2.502, allocations: 0.58 MB / 0.7797 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04177/2.543, allocations: 9.846 MB / 0.7893 GB, free: 2.465 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002456/2.546, allocations: 0.5438 MB / 0.7898 GB, free: 1.914 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05696/2.603, allocations: 9.565 MB / 0.7992 GB, free: 8.289 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001079/2.603, allocations: 37.25 kB / 0.7992 GB, free: 8.254 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-05/2.603, allocations: 23.98 kB / 0.7992 GB, free: 8.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.921e-05/2.603, allocations: 19.89 kB / 0.7992 GB, free: 8.211 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06771/2.671, allocations: 18.14 MB / 0.817 GB, free: 5.934 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.994e-05/2.671, allocations: 4 kB / 0.817 GB, free: 5.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005518/2.677, allocations: 0.5305 MB / 0.8175 GB, free: 5.398 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02188/2.699, allocations: 3.51 MB / 0.8209 GB, free: 1.879 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009356/2.7, allocations: 7.984 kB / 0.8209 GB, free: 1.871 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3554/3.055, allocations: 17.67 MB / 0.8382 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/3.055, allocations: 4.125 kB / 0.8382 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04372/3.099, allocations: 14.29 MB / 0.8521 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004363/3.103, allocations: 1.096 MB / 0.8532 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001998/3.105, allocations: 3.906 kB / 0.8532 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005965/3.111, allocations: 178.2 kB / 0.8534 GB, free: 138.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00163/3.113, allocations: 240.4 kB / 0.8536 GB, free: 138.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005154/3.113, allocations: 96.77 kB / 0.8537 GB, free: 138.8 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007906/3.121, allocations: 3.121 MB / 0.8568 GB, free: 137.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.91e-07/3.121, allocations: 0 / 0.8568 GB, free: 137.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01254/3.134, allocations: 1.61 MB / 0.8583 GB, free: 137.7 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 (284): * Single equations (assignments): 279 * 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.0447/3.179, allocations: 15.51 MB / 0.8735 GB, free: 131.5 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02093/3.2, allocations: 9.233 MB / 0.8825 GB, free: 128.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/3.2, allocations: 0 / 0.8825 GB, free: 128.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008448/3.208, allocations: 3.671 MB / 0.8861 GB, free: 126.8 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005593/3.214, allocations: 0.5862 MB / 0.8866 GB, free: 126.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0625/3.276, allocations: 15.74 MB / 0.902 GB, free: 118.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01486/3.291, allocations: 5.015 MB / 0.9069 GB, free: 115.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01015/3.302, allocations: 3.316 MB / 0.9101 GB, free: 112.2 MB / 490.7 MB Notification: Performance of SimCode: time 2.435e-06/3.302, allocations: 3.938 kB / 0.9102 GB, free: 112.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.819/9.121, allocations: 183.7 MB / 1.09 GB, free: 92.7 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat