Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointSSR,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Joints_JointSSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.489/2.489, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.029e-05/4.049e-05, allocations: 4 kB / 348.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1605, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5994/0.7599, allocations: 108.7 MB / 0.5069 GB, free: 11.2 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000383/0.7604, allocations: 75.95 kB / 0.507 GB, free: 11.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2474/1.008, allocations: 54.47 MB / 0.5602 GB, free: 4.379 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.649e-06/1.008, allocations: 3.984 kB / 0.5602 GB, free: 4.375 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001703/1.008, allocations: 52 kB / 0.5602 GB, free: 4.324 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01097/1.019, allocations: 2.446 MB / 0.5626 GB, free: 1.82 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.31e-05/1.019, allocations: 8.031 kB / 0.5626 GB, free: 1.812 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002245/1.021, allocations: 443 kB / 0.5631 GB, free: 1.367 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004117/1.026, allocations: 444.1 kB / 0.5635 GB, free: 0.9297 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005842/1.031, allocations: 1.485 MB / 0.5649 GB, free: 15.39 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002904/1.032, allocations: 201.1 kB / 0.5651 GB, free: 15.2 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001292/1.033, allocations: 256 kB / 0.5654 GB, free: 14.95 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02609/1.059, allocations: 6.243 MB / 0.5715 GB, free: 8.391 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001491/1.059, allocations: 15.88 kB / 0.5715 GB, free: 8.375 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001216/1.061, allocations: 112 kB / 0.5716 GB, free: 8.266 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001235/1.062, allocations: 464 kB / 0.572 GB, free: 7.809 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02317/1.085, allocations: 5.212 MB / 0.5771 GB, free: 2.586 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04243/1.128, allocations: 20.14 MB / 0.5968 GB, free: 13.9 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01273/1.14, allocations: 1.78 MB / 0.5985 GB, free: 12.1 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001852/1.142, allocations: 0.6553 MB / 0.5992 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01124/1.154, allocations: 4.729 MB / 0.6038 GB, free: 6.309 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.408e-05/1.154, allocations: 43.12 kB / 0.6038 GB, free: 6.258 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=70): time 4.589e-06/1.154, allocations: 0 / 0.6038 GB, free: 6.258 MB / 0.5105 GB Notification: Performance of matching and sorting (n=110): time 0.4095/1.563, allocations: 7.061 MB / 0.6107 GB, free: 143.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.849e-05/1.563, allocations: 63.83 kB / 0.6108 GB, free: 143.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004457/1.568, allocations: 1.611 MB / 0.6124 GB, free: 143.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002882/1.568, allocations: 42.23 kB / 0.6124 GB, free: 143.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001662/1.57, allocations: 1.534 MB / 0.6139 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008359/1.571, allocations: 410 kB / 0.6143 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003642/1.571, allocations: 55.56 kB / 0.6143 GB, free: 142.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002756/1.572, allocations: 423.2 kB / 0.6147 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003055/1.575, allocations: 0.9787 MB / 0.6157 GB, free: 142.3 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003992/1.579, allocations: 2.465 MB / 0.6181 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004008/1.583, allocations: 1.515 MB / 0.6196 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.522e-05/1.583, allocations: 18.91 kB / 0.6196 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=353) (initialization): time 0.01037/1.593, allocations: 3.323 MB / 0.6229 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 7.939e-05/1.593, allocations: 27.94 kB / 0.6229 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/1.593, allocations: 55.56 kB / 0.6229 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001712/1.594, allocations: 80.53 kB / 0.623 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005172/1.599, allocations: 0.6782 MB / 0.6237 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001714/1.599, allocations: 109.8 kB / 0.6238 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00354/1.603, allocations: 152.6 kB / 0.6239 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007037/1.603, allocations: 154.5 kB / 0.6241 GB, free: 140.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 241 * Number of states: 0 () * Number of discrete variables: 38 (jointSSR.revolute.positiveBranch,prism.arrowLine.twoHeadedArrow,prism.headAtOrigin,prism.color[3],prism.color[2],prism.color[1],rRod2.arrowLine.twoHeadedArrow,rRod2.headAtOrigin,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.groundColor[3],world.groundColor[2],world.groundColor[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 (353): * Single equations (assignments): 353 * 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.0007603/1.604, allocations: 338.8 kB / 0.6244 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005842/1.605, allocations: 169.8 kB / 0.6246 GB, free: 139.9 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004947/1.61, allocations: 1.713 MB / 0.6262 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-05/1.61, allocations: 15 kB / 0.6262 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/1.61, allocations: 0.75 kB / 0.6262 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.217e-05/1.61, allocations: 5.156 kB / 0.6262 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01593/1.626, allocations: 5.592 MB / 0.6317 GB, free: 138.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-05/1.626, allocations: 13.44 kB / 0.6317 GB, free: 138.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002099/1.628, allocations: 250.9 kB / 0.632 GB, free: 138.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.312e-05/1.628, allocations: 18.64 kB / 0.632 GB, free: 138.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001706/1.628, allocations: 37.06 kB / 0.632 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.032e-05/1.628, allocations: 26.36 kB / 0.632 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-05/1.628, allocations: 16.34 kB / 0.6321 GB, free: 138.6 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004285/1.633, allocations: 2.541 MB / 0.6345 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008982/1.634, allocations: 255.5 kB / 0.6348 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006439/1.634, allocations: 37.11 kB / 0.6348 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/1.636, allocations: 64.94 kB / 0.6349 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003299/1.636, allocations: 102.4 kB / 0.635 GB, free: 136 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001231/1.637, allocations: 44.03 kB / 0.635 GB, free: 136 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003258/1.64, allocations: 1.17 MB / 0.6362 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.41e-07/1.64, allocations: 0 / 0.6362 GB, free: 135.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.004471/1.644, allocations: 0.5087 MB / 0.6367 GB, free: 135.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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.005423/1.65, allocations: 6.339 MB / 0.6428 GB, free: 129.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005504/1.655, allocations: 2.084 MB / 0.6449 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-05/1.655, allocations: 3.812 kB / 0.6449 GB, free: 128.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00157/1.657, allocations: 0.5898 MB / 0.6455 GB, free: 128.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002437/1.66, allocations: 237.7 kB / 0.6457 GB, free: 128.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01611/1.676, allocations: 4.668 MB / 0.6502 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003689/1.679, allocations: 2.121 MB / 0.6523 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003834/1.683, allocations: 0.7452 MB / 0.653 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002424/1.686, allocations: 0.9638 MB / 0.654 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.562e-06/1.686, allocations: 0 / 0.654 GB, free: 124.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1094/1.795, allocations: 38.27 MB / 0.6914 GB, free: 111.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002216/1.796, allocations: 150.8 kB / 0.6915 GB, free: 111.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.137/5.933, allocations: 0 / 0.6915 GB, free: 111.1 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.JointSSR_res.mat does not exist to compare? outputFormat=mat