Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.032/2.032, allocations: 209.3 MB / 221.9 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.62e-05/4.635e-05, allocations: 4 kB / 273.1 MB, free: 0.6445 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 48.7 MB / 321.8 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.426/0.5301, allocations: 93.55 MB / 415.4 MB, free: 12.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003027/0.5304, allocations: 81.16 kB / 415.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3742/0.9047, allocations: 74.5 MB / 490 MB, free: 1.148 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.9047, allocations: 3.938 kB / 490 MB, free: 1.145 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002815/0.905, allocations: 72 kB / 490 MB, free: 1.074 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: 1289 * Number of variables: 1289 Notification: Performance of Generate backend data structure: time 0.03933/0.9444, allocations: 3.581 MB / 493.6 MB, free: 13.43 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.601e-05/0.9445, allocations: 8.031 kB / 493.6 MB, free: 13.43 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00725/0.9517, allocations: 0.6631 MB / 494.3 MB, free: 12.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01257/0.9644, allocations: 0.666 MB / 495 MB, free: 12.08 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009193/0.9736, allocations: 2.189 MB / 497.1 MB, free: 9.844 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004759/0.9741, allocations: 295.8 kB / 497.4 MB, free: 9.555 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001973/0.9761, allocations: 395.8 kB / 497.8 MB, free: 9.168 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03176/1.008, allocations: 8.447 MB / 0.4944 GB, free: 344 kB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001559/1.008, allocations: 23.8 kB / 0.4944 GB, free: 320 kB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001481/1.01, allocations: 171.9 kB / 0.4946 GB, free: 148 kB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.278/1.288, allocations: 0.78 MB / 0.4953 GB, free: 105.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02495/1.313, allocations: 6.634 MB / 0.5018 GB, free: 105.8 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05715/1.37, allocations: 27.73 MB / 0.5289 GB, free: 93.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01013/1.38, allocations: 1.928 MB / 0.5308 GB, free: 93.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001753/1.382, allocations: 0.8108 MB / 0.5316 GB, free: 92.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0116/1.394, allocations: 6.337 MB / 0.5378 GB, free: 88.53 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.829e-05/1.394, allocations: 52.95 kB / 0.5378 GB, free: 88.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=77): time 3.677e-06/1.394, allocations: 3.312 kB / 0.5378 GB, free: 88.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=95): time 0.02559/1.419, allocations: 5.82 MB / 0.5435 GB, free: 86.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.92e-05/1.419, allocations: 140.8 kB / 0.5436 GB, free: 85.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004123/1.423, allocations: 2.174 MB / 0.5458 GB, free: 85.03 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002178/1.424, allocations: 41.17 kB / 0.5458 GB, free: 84.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001601/1.425, allocations: 2.373 MB / 0.5481 GB, free: 83.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004455/1.426, allocations: 394.9 kB / 0.5485 GB, free: 82.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002312/1.426, allocations: 74.28 kB / 0.5486 GB, free: 82.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002188/1.426, allocations: 473.8 kB / 0.549 GB, free: 82.42 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/1.428, allocations: 0.9081 MB / 0.5499 GB, free: 82.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003161/1.432, allocations: 3.203 MB / 0.553 GB, free: 78.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003624/1.435, allocations: 1.67 MB / 0.5547 GB, free: 78.22 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.377e-05/1.435, allocations: 27.78 kB / 0.5547 GB, free: 78.22 MB / 426.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.009497/1.445, allocations: 3.92 MB / 0.5585 GB, free: 76.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.051e-05/1.445, allocations: 40.28 kB / 0.5586 GB, free: 76.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-05/1.445, allocations: 84.41 kB / 0.5586 GB, free: 76.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001451/1.445, allocations: 118.2 kB / 0.5587 GB, free: 76.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005144/1.45, allocations: 0.8935 MB / 0.5596 GB, free: 76.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001479/1.451, allocations: 163.4 kB / 0.5598 GB, free: 76.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003612/1.454, allocations: 171.8 kB / 0.5599 GB, free: 76.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006263/1.455, allocations: 225.8 kB / 0.5602 GB, free: 76.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * Number of states: 0 () * Number of discrete variables: 37 (jointUSP.prismatic.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],jointUSP.rod1Color[3],jointUSP.rod1Color[2],jointUSP.rod1Color[1],jointUSP.cylinderColor[3],jointUSP.cylinderColor[2],jointUSP.cylinderColor[1],jointUSP.sphereColor[3],jointUSP.sphereColor[2],jointUSP.sphereColor[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 (480): * Single equations (assignments): 480 * 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.0006735/1.456, allocations: 412.1 kB / 0.5605 GB, free: 76.19 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004918/1.456, allocations: 219.2 kB / 0.5608 GB, free: 76.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002476/1.459, allocations: 1.098 MB / 0.5618 GB, free: 75.61 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.504e-05/1.459, allocations: 10.62 kB / 0.5618 GB, free: 75.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/1.459, allocations: 3.875 kB / 0.5618 GB, free: 75.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/1.459, allocations: 3.375 kB / 0.5618 GB, free: 75.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01325/1.472, allocations: 6.144 MB / 0.5678 GB, free: 72.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-05/1.472, allocations: 25.3 kB / 0.5679 GB, free: 72.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001471/1.474, allocations: 241 kB / 0.5681 GB, free: 72.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.642e-05/1.474, allocations: 27.38 kB / 0.5681 GB, free: 72.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.735e-05/1.474, allocations: 48.75 kB / 0.5682 GB, free: 72.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.177e-05/1.474, allocations: 49.14 kB / 0.5682 GB, free: 72.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.123e-05/1.474, allocations: 29.72 kB / 0.5682 GB, free: 72.49 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003176/1.477, allocations: 3.739 MB / 0.5719 GB, free: 68.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007692/1.478, allocations: 331.1 kB / 0.5722 GB, free: 68.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004128/1.478, allocations: 46.58 kB / 0.5723 GB, free: 68.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/1.48, allocations: 51 kB / 0.5723 GB, free: 68.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002164/1.48, allocations: 147 kB / 0.5724 GB, free: 68.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.701e-05/1.48, allocations: 56.66 kB / 0.5725 GB, free: 68.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003428/1.483, allocations: 1.577 MB / 0.574 GB, free: 67.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.52e-07/1.483, allocations: 0 / 0.574 GB, free: 67.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004343/1.488, allocations: 0.647 MB / 0.5747 GB, free: 67.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 89 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 133 * 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.004587/1.492, allocations: 9.608 MB / 0.5841 GB, free: 58.38 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004996/1.497, allocations: 2.264 MB / 0.5863 GB, free: 57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.969e-05/1.498, allocations: 4 kB / 0.5863 GB, free: 57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001196/1.499, allocations: 0.5614 MB / 0.5868 GB, free: 56.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/1.501, allocations: 305.4 kB / 0.5871 GB, free: 56.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/1.52, allocations: 7.031 MB / 0.594 GB, free: 49.78 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004634/1.525, allocations: 2.814 MB / 0.5967 GB, free: 47.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002855/1.528, allocations: 1.487 MB / 0.5982 GB, free: 46.24 MB / 426.7 MB Notification: Performance of SimCode: time 1.243e-06/1.528, allocations: 0 / 0.5982 GB, free: 46.24 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.574/5.102, allocations: 56.8 MB / 0.6536 GB, free: 10.44 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSP_res.mat does not exist to compare? outputFormat=mat