Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSP,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointSSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.497/2.497, allocations: 235 MB / 247.6 MB, free: 14.32 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.891e-05/3.896e-05, allocations: 4 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5124/0.5125, allocations: 54.85 MB / 359.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2089/0.7214, allocations: 98.91 MB / 458.8 MB, free: 14.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003349/0.7218, allocations: 79.95 kB / 458.8 MB, free: 13.97 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2262/0.948, allocations: 54.51 MB / 0.5013 GB, free: 7.09 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.948, allocations: 0 / 0.5013 GB, free: 7.09 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001585/0.9482, allocations: 52 kB / 0.5014 GB, free: 7.039 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.008719/0.9569, allocations: 2.37 MB / 0.5037 GB, free: 4.613 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.583e-05/0.957, allocations: 12.03 kB / 0.5037 GB, free: 4.602 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00179/0.9588, allocations: 480.8 kB / 0.5042 GB, free: 4.121 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003953/0.9628, allocations: 479.8 kB / 0.5046 GB, free: 3.648 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00536/0.9682, allocations: 1.513 MB / 0.5061 GB, free: 2.086 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003212/0.9686, allocations: 213.7 kB / 0.5063 GB, free: 1.875 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001454/0.9701, allocations: 284 kB / 0.5066 GB, free: 1.598 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02236/0.9925, allocations: 5.889 MB / 0.5123 GB, free: 11.39 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001171/0.9927, allocations: 11.88 kB / 0.5123 GB, free: 11.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005654/0.9932, allocations: 128 kB / 0.5125 GB, free: 11.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001448/0.9947, allocations: 491.9 kB / 0.5129 GB, free: 10.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01843/1.013, allocations: 4.411 MB / 0.5172 GB, free: 6.348 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3811/1.394, allocations: 19.84 MB / 0.5366 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007537/1.402, allocations: 1.228 MB / 0.5378 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001114/1.403, allocations: 373.2 kB / 0.5382 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002593/1.406, allocations: 2.065 MB / 0.5402 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.247e-05/1.406, allocations: 39.98 kB / 0.5402 GB, free: 103.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=66): time 4.097e-06/1.406, allocations: 0 / 0.5402 GB, free: 103.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=110): time 0.0368/1.443, allocations: 5.377 MB / 0.5455 GB, free: 102.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/1.443, allocations: 94.14 kB / 0.5456 GB, free: 102.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004637/1.447, allocations: 1.58 MB / 0.5471 GB, free: 102.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002787/1.448, allocations: 51.53 kB / 0.5472 GB, free: 102.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001564/1.449, allocations: 1.645 MB / 0.5488 GB, free: 101.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005874/1.45, allocations: 407.8 kB / 0.5491 GB, free: 101.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/1.45, allocations: 58.22 kB / 0.5492 GB, free: 101.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002067/1.45, allocations: 429.6 kB / 0.5496 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002029/1.452, allocations: 0.7592 MB / 0.5504 GB, free: 101.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003342/1.456, allocations: 2.283 MB / 0.5526 GB, free: 99.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003473/1.459, allocations: 1.317 MB / 0.5539 GB, free: 99.08 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.827e-05/1.46, allocations: 15.5 kB / 0.5539 GB, free: 99.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=359) (initialization): time 0.00881/1.468, allocations: 2.857 MB / 0.5567 GB, free: 98.96 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.682e-05/1.469, allocations: 32.25 kB / 0.5567 GB, free: 98.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/1.469, allocations: 56.72 kB / 0.5568 GB, free: 98.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000149/1.469, allocations: 81.12 kB / 0.5568 GB, free: 98.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00431/1.473, allocations: 0.646 MB / 0.5575 GB, free: 98.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000129/1.473, allocations: 107.2 kB / 0.5576 GB, free: 98.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003177/1.477, allocations: 119.7 kB / 0.5577 GB, free: 98.89 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005285/1.477, allocations: 161.9 kB / 0.5578 GB, free: 98.89 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 247 * Number of states: 0 () * Number of discrete variables: 31 (jointSSP.prismatic.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],Fixed1.color[3],Fixed1.color[2],Fixed1.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (359): * Single equations (assignments): 359 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006253/1.478, allocations: 332.2 kB / 0.5582 GB, free: 98.68 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004981/1.478, allocations: 168 kB / 0.5583 GB, free: 98.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002854/1.481, allocations: 1.244 MB / 0.5595 GB, free: 98.5 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/1.481, allocations: 14.81 kB / 0.5595 GB, free: 98.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/1.481, allocations: 0.875 kB / 0.5595 GB, free: 98.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/1.481, allocations: 3.75 kB / 0.5595 GB, free: 98.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/1.496, allocations: 6.363 MB / 0.5658 GB, free: 95.77 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-05/1.496, allocations: 20.19 kB / 0.5658 GB, free: 95.77 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/1.497, allocations: 208.7 kB / 0.566 GB, free: 95.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-05/1.497, allocations: 35.16 kB / 0.566 GB, free: 95.75 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.402e-05/1.497, allocations: 42.94 kB / 0.5661 GB, free: 95.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.16e-05/1.497, allocations: 39.88 kB / 0.5661 GB, free: 95.73 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.44e-05/1.497, allocations: 34.56 kB / 0.5661 GB, free: 95.71 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003198/1.501, allocations: 3.156 MB / 0.5692 GB, free: 92.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006489/1.501, allocations: 273.6 kB / 0.5695 GB, free: 91.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003274/1.502, allocations: 47.64 kB / 0.5695 GB, free: 91.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/1.503, allocations: 43.84 kB / 0.5696 GB, free: 91.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/1.503, allocations: 142.6 kB / 0.5697 GB, free: 91.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.664e-05/1.503, allocations: 46.97 kB / 0.5697 GB, free: 91.83 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002562/1.506, allocations: 1.175 MB / 0.5709 GB, free: 91.38 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.022e-06/1.506, allocations: 3.406 kB / 0.5709 GB, free: 91.38 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004138/1.51, allocations: 0.4959 MB / 0.5714 GB, free: 91.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004961/1.515, allocations: 9.45 MB / 0.5806 GB, free: 81.92 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004395/1.519, allocations: 1.681 MB / 0.5822 GB, free: 81.33 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.912e-05/1.52, allocations: 3.938 kB / 0.5822 GB, free: 81.33 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001098/1.521, allocations: 455.2 kB / 0.5827 GB, free: 81.18 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002209/1.523, allocations: 255.9 kB / 0.5829 GB, free: 81.08 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/1.54, allocations: 5.305 MB / 0.5881 GB, free: 78.35 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004034/1.544, allocations: 2.234 MB / 0.5903 GB, free: 77.29 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002336/1.546, allocations: 1.053 MB / 0.5913 GB, free: 76.45 MB / 458.7 MB Notification: Performance of SimCode: time 2.064e-06/1.546, allocations: 0 / 0.5913 GB, free: 76.45 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.278/4.824, allocations: 42.43 MB / 0.6328 GB, free: 48.86 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointSSP_res.mat does not exist to compare? outputFormat=mat