Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.142/2.142, allocations: 209.3 MB / 221.9 MB, free: 1.941 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.052e-05/4.084e-05, allocations: 8 kB / 273.1 MB, free: 0.6484 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1073, allocations: 48.71 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4601/0.5674, allocations: 94.35 MB / 416.2 MB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000339/0.5678, allocations: 79.95 kB / 416.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3184/0.8863, allocations: 75.72 MB / 492 MB, free: 15.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.8863, allocations: 0 / 492 MB, free: 15.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000228/0.8866, allocations: 72 kB / 492.1 MB, free: 15.07 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1300 * Number of variables: 1300 Notification: Performance of Generate backend data structure: time 0.01768/0.9043, allocations: 3.796 MB / 495.8 MB, free: 11.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.801e-05/0.9043, allocations: 8.031 kB / 495.9 MB, free: 11.2 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003463/0.9078, allocations: 0.6634 MB / 496.5 MB, free: 10.53 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006562/0.9144, allocations: 0.6776 MB / 497.2 MB, free: 9.848 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009431/0.9239, allocations: 2.208 MB / 499.4 MB, free: 7.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004992/0.9245, allocations: 295.7 kB / 499.7 MB, free: 7.301 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002299/0.9268, allocations: 383.8 kB / 0.4883 GB, free: 6.926 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3335/1.26, allocations: 8.823 MB / 0.497 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002534/1.261, allocations: 15.06 kB / 0.497 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001913/1.263, allocations: 171.8 kB / 0.4971 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003408/1.266, allocations: 0.8411 MB / 0.498 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02884/1.295, allocations: 7.157 MB / 0.505 GB, free: 100.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0656/1.361, allocations: 29.02 MB / 0.5333 GB, free: 87.68 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01298/1.374, allocations: 2.271 MB / 0.5355 GB, free: 87.05 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002509/1.376, allocations: 1.055 MB / 0.5365 GB, free: 86.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01602/1.392, allocations: 7.596 MB / 0.544 GB, free: 81.58 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.205e-05/1.393, allocations: 46.2 kB / 0.544 GB, free: 81.54 MB / 426.7 MB Notification: Performance of pre-optimization done (n=81): time 5.11e-06/1.393, allocations: 3.938 kB / 0.544 GB, free: 81.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=97): time 0.03989/1.432, allocations: 6.474 MB / 0.5503 GB, free: 78.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000151/1.433, allocations: 140.3 kB / 0.5505 GB, free: 78.77 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005567/1.438, allocations: 2.315 MB / 0.5527 GB, free: 77.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002645/1.439, allocations: 45.58 kB / 0.5528 GB, free: 77.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001948/1.441, allocations: 2.385 MB / 0.5551 GB, free: 75.97 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005794/1.441, allocations: 396.3 kB / 0.5555 GB, free: 75.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004431/1.442, allocations: 78.31 kB / 0.5555 GB, free: 75.63 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002613/1.442, allocations: 476.8 kB / 0.556 GB, free: 75.26 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003858/1.446, allocations: 1.04 MB / 0.557 GB, free: 74.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007848/1.454, allocations: 3.424 MB / 0.5604 GB, free: 71.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005976/1.46, allocations: 1.832 MB / 0.5621 GB, free: 70.73 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.403e-05/1.46, allocations: 26.16 kB / 0.5622 GB, free: 70.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=497) (initialization): time 0.01151/1.471, allocations: 4.273 MB / 0.5663 GB, free: 69.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.55e-05/1.472, allocations: 41.5 kB / 0.5664 GB, free: 69.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001271/1.472, allocations: 92.44 kB / 0.5665 GB, free: 69.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000159/1.472, allocations: 123.5 kB / 0.5666 GB, free: 69.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005905/1.478, allocations: 0.9428 MB / 0.5675 GB, free: 68.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001721/1.478, allocations: 174 kB / 0.5677 GB, free: 68.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004149/1.482, allocations: 198.4 kB / 0.5679 GB, free: 68.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007582/1.483, allocations: 232.4 kB / 0.5681 GB, free: 68.81 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 388 * Number of states: 0 () * Number of discrete variables: 40 (jointUSR.revolute.positiveBranch,prism.color[3],prism.color[2],prism.color[1],rRod2.color[3],rRod2.color[2],rRod2.color[1],rRod1.color[3],rRod1.color[2],rRod1.color[1],n2_ia.color[3],n2_ia.color[2],n2_ia.color[1],n1_a.color[3],n1_a.color[2],n1_a.color[1],jointUSR.rod1Color[3],jointUSR.rod1Color[2],jointUSR.rod1Color[1],jointUSR.cylinderColor[3],jointUSR.cylinderColor[2],jointUSR.cylinderColor[1],jointUSR.sphereColor[3],jointUSR.sphereColor[2],jointUSR.sphereColor[1],jointUSR.revoluteColor[3],jointUSR.revoluteColor[2],jointUSR.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 (497): * Single equations (assignments): 497 * 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.0007734/1.484, allocations: 425 kB / 0.5685 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005582/1.484, allocations: 225.5 kB / 0.5687 GB, free: 68.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/1.488, allocations: 1.359 MB / 0.57 GB, free: 67.76 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/1.488, allocations: 12.47 kB / 0.57 GB, free: 67.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/1.488, allocations: 0 / 0.57 GB, free: 67.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/1.488, allocations: 7.562 kB / 0.5701 GB, free: 67.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01744/1.505, allocations: 6.159 MB / 0.5761 GB, free: 64.72 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.278e-05/1.505, allocations: 16.12 kB / 0.5761 GB, free: 64.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02335/1.529, allocations: 242.1 kB / 0.5763 GB, free: 64.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.085e-05/1.529, allocations: 29.05 kB / 0.5763 GB, free: 64.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002534/1.529, allocations: 55.83 kB / 0.5764 GB, free: 64.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.432e-05/1.529, allocations: 32.28 kB / 0.5764 GB, free: 64.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.691e-05/1.529, allocations: 25.16 kB / 0.5765 GB, free: 64.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004852/1.534, allocations: 3.55 MB / 0.5799 GB, free: 61.36 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01546/1.549, allocations: 324.7 kB / 0.5802 GB, free: 61.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008593/1.55, allocations: 49.72 kB / 0.5803 GB, free: 61.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001854/1.552, allocations: 48.33 kB / 0.5803 GB, free: 61.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002854/1.553, allocations: 138.4 kB / 0.5805 GB, free: 61.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/1.553, allocations: 52.25 kB / 0.5805 GB, free: 61.03 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003877/1.557, allocations: 1.634 MB / 0.5821 GB, free: 60.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.557, allocations: 3.625 kB / 0.5821 GB, free: 60.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004924/1.562, allocations: 0.6866 MB / 0.5828 GB, free: 60.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 130 * 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.005228/1.567, allocations: 8.654 MB / 0.5912 GB, free: 51.99 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005715/1.573, allocations: 2.483 MB / 0.5936 GB, free: 49.88 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-05/1.573, allocations: 8.062 kB / 0.5937 GB, free: 49.87 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/1.574, allocations: 0.6023 MB / 0.5942 GB, free: 49.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002285/1.576, allocations: 309 kB / 0.5945 GB, free: 49.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02032/1.597, allocations: 6.998 MB / 0.6014 GB, free: 42.68 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00501/1.602, allocations: 2.807 MB / 0.6041 GB, free: 40.52 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004082/1.606, allocations: 1.481 MB / 0.6056 GB, free: 39.15 MB / 426.7 MB Notification: Performance of SimCode: time 1.493e-06/1.606, allocations: 0 / 0.6056 GB, free: 39.15 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.585/5.191, allocations: 58.5 MB / 0.6627 GB, free: 0.8945 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat