Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.997/1.997, allocations: 209.3 MB / 221.9 MB, free: 1.922 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.945e-05/6.931e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1116, allocations: 48.71 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.437/0.5486, allocations: 93.44 MB / 415.3 MB, free: 12.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.549, allocations: 74.94 kB / 415.4 MB, free: 12.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2372/0.7862, allocations: 56.27 MB / 471.6 MB, free: 3.734 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.7862, allocations: 0 / 471.6 MB, free: 3.734 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001644/0.7864, allocations: 55.98 kB / 471.7 MB, free: 3.68 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 905 * Number of variables: 905 Notification: Performance of Generate backend data structure: time 0.0107/0.7971, allocations: 2.576 MB / 474.3 MB, free: 1.047 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.791e-05/0.7972, allocations: 12.03 kB / 474.3 MB, free: 1.035 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001954/0.7991, allocations: 481.1 kB / 474.7 MB, free: 0.5547 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004304/0.8035, allocations: 491.7 kB / 475.2 MB, free: 72 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005712/0.8093, allocations: 1.536 MB / 476.8 MB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003123/0.8096, allocations: 217.6 kB / 477 MB, free: 14.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001309/0.811, allocations: 276 kB / 477.2 MB, free: 14 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02558/0.8366, allocations: 6.6 MB / 483.8 MB, free: 7.086 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001255/0.8367, allocations: 19.81 kB / 483.9 MB, free: 7.066 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007814/0.8375, allocations: 124 kB / 484 MB, free: 6.945 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001567/0.8391, allocations: 0.5278 MB / 484.5 MB, free: 6.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02255/0.8617, allocations: 5.372 MB / 489.9 MB, free: 1.027 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3338/1.196, allocations: 21.29 MB / 0.4992 GB, free: 103.7 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/1.209, allocations: 1.783 MB / 0.5009 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001661/1.21, allocations: 0.6496 MB / 0.5016 GB, free: 103.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01085/1.221, allocations: 4.894 MB / 0.5064 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/1.221, allocations: 38.12 kB / 0.5064 GB, free: 101.2 MB / 426.7 MB Notification: Performance of pre-optimization done (n=70): time 3.016e-06/1.221, allocations: 0 / 0.5064 GB, free: 101.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=110): time 0.05541/1.277, allocations: 7.485 MB / 0.5137 GB, free: 100.4 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.009e-05/1.277, allocations: 89.8 kB / 0.5138 GB, free: 100.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004326/1.281, allocations: 1.707 MB / 0.5154 GB, free: 100.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003234/1.282, allocations: 43.08 kB / 0.5155 GB, free: 100.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/1.283, allocations: 1.661 MB / 0.5171 GB, free: 99.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006547/1.284, allocations: 411.2 kB / 0.5175 GB, free: 98.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/1.284, allocations: 61.31 kB / 0.5176 GB, free: 98.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002227/1.284, allocations: 432.4 kB / 0.518 GB, free: 98.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002729/1.287, allocations: 0.9986 MB / 0.519 GB, free: 98.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003881/1.291, allocations: 2.574 MB / 0.5215 GB, free: 96.52 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003612/1.295, allocations: 1.569 MB / 0.523 GB, free: 96.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.985e-05/1.295, allocations: 15.81 kB / 0.523 GB, free: 96.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=371) (initialization): time 0.009036/1.304, allocations: 3.363 MB / 0.5263 GB, free: 96.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.317e-05/1.304, allocations: 31.12 kB / 0.5263 GB, free: 96.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.022e-05/1.304, allocations: 55.78 kB / 0.5264 GB, free: 96.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001162/1.304, allocations: 84.25 kB / 0.5265 GB, free: 96.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005052/1.309, allocations: 0.7208 MB / 0.5272 GB, free: 96.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001371/1.309, allocations: 115.7 kB / 0.5273 GB, free: 96.39 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00368/1.313, allocations: 157.1 kB / 0.5274 GB, free: 96.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006938/1.314, allocations: 166.4 kB / 0.5276 GB, free: 96.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 257 * Number of states: 0 () * Number of discrete variables: 31 (jointSSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],jointSSR.rod1Color[3],jointSSR.rod1Color[2],jointSSR.rod1Color[1],jointSSR.rod1.massColor[3],jointSSR.rod1.massColor[2],jointSSR.rod1.massColor[1],jointSSR.sphereColor[3],jointSSR.sphereColor[2],jointSSR.sphereColor[1],jointSSR.revoluteColor[3],jointSSR.revoluteColor[2],jointSSR.revoluteColor[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 (371): * Single equations (assignments): 371 * 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.0007033/1.314, allocations: 345.5 kB / 0.5279 GB, free: 96.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005558/1.315, allocations: 181.9 kB / 0.5281 GB, free: 96.15 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004043/1.319, allocations: 1.694 MB / 0.5297 GB, free: 95.98 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/1.319, allocations: 7.594 kB / 0.5297 GB, free: 95.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/1.319, allocations: 3.875 kB / 0.5297 GB, free: 95.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-05/1.319, allocations: 6.656 kB / 0.5298 GB, free: 95.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01489/1.334, allocations: 5.853 MB / 0.5355 GB, free: 93.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.888e-05/1.334, allocations: 11.66 kB / 0.5355 GB, free: 93.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/1.336, allocations: 250 kB / 0.5357 GB, free: 93.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.299e-05/1.336, allocations: 27.75 kB / 0.5357 GB, free: 93.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001586/1.336, allocations: 31.22 kB / 0.5358 GB, free: 93.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.31e-05/1.336, allocations: 28.08 kB / 0.5358 GB, free: 93.17 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-05/1.336, allocations: 23.19 kB / 0.5358 GB, free: 93.16 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003456/1.34, allocations: 2.613 MB / 0.5384 GB, free: 90.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007761/1.341, allocations: 265.6 kB / 0.5386 GB, free: 90.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005325/1.341, allocations: 36.28 kB / 0.5387 GB, free: 90.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001595/1.343, allocations: 61.14 kB / 0.5387 GB, free: 90.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002394/1.343, allocations: 108 kB / 0.5388 GB, free: 90.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/1.343, allocations: 44.81 kB / 0.5389 GB, free: 90.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00284/1.346, allocations: 1.236 MB / 0.5401 GB, free: 90.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.81e-07/1.346, allocations: 0 / 0.5401 GB, free: 90.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004088/1.35, allocations: 0.5429 MB / 0.5406 GB, free: 89.95 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 110 * 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.00463/1.355, allocations: 6.505 MB / 0.547 GB, free: 83.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005039/1.36, allocations: 2.12 MB / 0.549 GB, free: 83.15 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.559e-05/1.36, allocations: 4.688 kB / 0.549 GB, free: 83.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/1.362, allocations: 0.5838 MB / 0.5496 GB, free: 82.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002041/1.364, allocations: 231.7 kB / 0.5498 GB, free: 82.83 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01652/1.38, allocations: 5.26 MB / 0.555 GB, free: 80.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004571/1.385, allocations: 2.225 MB / 0.5571 GB, free: 79.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002676/1.388, allocations: 1.06 MB / 0.5582 GB, free: 78.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.714e-06/1.388, allocations: 0 / 0.5582 GB, free: 78.44 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.414/4.801, allocations: 45.14 MB / 0.6023 GB, free: 45.81 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointSSR_res.mat does not exist to compare? outputFormat=mat