Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.379/2.379, allocations: 235 MB / 247.6 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.811e-05/3.823e-05, allocations: 4 kB / 305 MB, free: 5.555 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4462/0.4462, allocations: 54.86 MB / 359.9 MB, free: 2.688 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.6451, allocations: 108.3 MB / 468.2 MB, free: 4.566 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.6455, allocations: 77.44 kB / 468.3 MB, free: 4.492 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8453/1.491, allocations: 123.2 MB / 0.5776 GB, free: 106.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.575e-06/1.491, allocations: 0 / 0.5776 GB, free: 106.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003644/1.491, allocations: 102.3 kB / 0.5777 GB, free: 106.6 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1929 * Number of variables: 1929 Notification: Performance of Generate backend data structure: time 0.02398/1.515, allocations: 5.641 MB / 0.5832 GB, free: 103.3 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.263e-05/1.515, allocations: 7.562 kB / 0.5833 GB, free: 103.3 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004872/1.52, allocations: 0.9765 MB / 0.5842 GB, free: 102.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03516/1.555, allocations: 4.727 MB / 0.5888 GB, free: 100.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0238/1.579, allocations: 6.622 MB / 0.5953 GB, free: 95.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000597/1.58, allocations: 444.9 kB / 0.5957 GB, free: 94.97 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003126/1.583, allocations: 0.542 MB / 0.5962 GB, free: 94.46 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08646/1.67, allocations: 14 MB / 0.6099 GB, free: 79.44 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004952/1.67, allocations: 67.34 kB / 0.61 GB, free: 79.38 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003486/1.674, allocations: 265.4 kB / 0.6102 GB, free: 79.15 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00379/1.678, allocations: 1.29 MB / 0.6115 GB, free: 77.86 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04614/1.724, allocations: 11.45 MB / 0.6227 GB, free: 66.41 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1035/1.827, allocations: 59.23 MB / 0.6805 GB, free: 5.633 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02002/1.847, allocations: 4.614 MB / 0.685 GB, free: 0.8594 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006329/1.854, allocations: 2.721 MB / 0.6877 GB, free: 14.13 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03247/1.886, allocations: 12.61 MB / 0.7 GB, free: 1.031 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.973e-05/1.886, allocations: 59.81 kB / 0.7 GB, free: 0.9648 MB / 474.7 MB Notification: Performance of pre-optimization done (n=191): time 5.801e-06/1.886, allocations: 3.938 kB / 0.7 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of matching and sorting (n=242): time 0.5394/2.426, allocations: 32.8 MB / 0.7321 GB, free: 110.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/2.426, allocations: 231.5 kB / 0.7323 GB, free: 110.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009591/2.436, allocations: 4.177 MB / 0.7364 GB, free: 110 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007671/2.436, allocations: 61.58 kB / 0.7364 GB, free: 110 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003341/2.44, allocations: 3.793 MB / 0.7401 GB, free: 107.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00158/2.441, allocations: 0.9115 MB / 0.741 GB, free: 106.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009681/2.442, allocations: 144.6 kB / 0.7412 GB, free: 106.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004449/2.443, allocations: 0.6097 MB / 0.7418 GB, free: 106 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007663/2.451, allocations: 3.153 MB / 0.7448 GB, free: 104.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01032/2.461, allocations: 7.376 MB / 0.7521 GB, free: 97.97 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01036/2.471, allocations: 4.734 MB / 0.7567 GB, free: 96.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001412/2.472, allocations: 42.72 kB / 0.7567 GB, free: 96.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04468/2.516, allocations: 13.07 MB / 0.7695 GB, free: 92.35 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001334/2.516, allocations: 74.22 kB / 0.7696 GB, free: 92.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002714/2.517, allocations: 149.7 kB / 0.7697 GB, free: 92.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02082/2.538, allocations: 3.801 MB / 0.7734 GB, free: 90.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01/2.548, allocations: 1.607 MB / 0.775 GB, free: 88.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04068/2.588, allocations: 18.02 MB / 0.7926 GB, free: 73.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009866/2.598, allocations: 486.5 kB / 0.793 GB, free: 73.21 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001824/2.6, allocations: 433.3 kB / 0.7934 GB, free: 72.79 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 34 (jointUSP.prismatic.positiveBranch,bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 852 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 58} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002559/2.603, allocations: 0.6409 MB / 0.7941 GB, free: 72.15 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001323/2.604, allocations: 433.5 kB / 0.7945 GB, free: 71.72 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03108/2.635, allocations: 8.073 MB / 0.8024 GB, free: 65.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.086e-05/2.635, allocations: 34.67 kB / 0.8024 GB, free: 65.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.276e-05/2.635, allocations: 12 kB / 0.8024 GB, free: 65.53 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.148e-05/2.635, allocations: 18.12 kB / 0.8024 GB, free: 65.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05749/2.693, allocations: 17.38 MB / 0.8194 GB, free: 48.73 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.383e-05/2.693, allocations: 0.5 kB / 0.8194 GB, free: 48.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003791/2.697, allocations: 383.4 kB / 0.8198 GB, free: 48.36 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02102/2.718, allocations: 3.845 MB / 0.8235 GB, free: 44.5 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006862/2.719, allocations: 48.69 kB / 0.8236 GB, free: 44.46 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03719/2.756, allocations: 16.45 MB / 0.8396 GB, free: 27.88 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/2.756, allocations: 0 / 0.8396 GB, free: 27.88 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03878/2.795, allocations: 12.55 MB / 0.8519 GB, free: 15.26 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003498/2.798, allocations: 0.9366 MB / 0.8528 GB, free: 14.3 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00155/2.8, allocations: 36.7 kB / 0.8528 GB, free: 14.27 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005195/2.805, allocations: 216.4 kB / 0.8531 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001099/2.806, allocations: 154.9 kB / 0.8532 GB, free: 13.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000337/2.807, allocations: 61 kB / 0.8533 GB, free: 13.85 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007557/2.814, allocations: 2.901 MB / 0.8561 GB, free: 10.95 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.255e-06/2.814, allocations: 4 kB / 0.8561 GB, free: 10.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01043/2.825, allocations: 1.459 MB / 0.8575 GB, free: 9.5 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (167): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 52} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04225/2.867, allocations: 13.45 MB / 0.8707 GB, free: 12.02 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02119/2.888, allocations: 7.495 MB / 0.878 GB, free: 4.543 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.072e-05/2.888, allocations: 5.469 kB / 0.878 GB, free: 4.539 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3561/3.244, allocations: 2.869 MB / 0.8808 GB, free: 124 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004379/3.249, allocations: 495.9 kB / 0.8813 GB, free: 124 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04649/3.295, allocations: 13.04 MB / 0.894 GB, free: 122 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01157/3.307, allocations: 4.21 MB / 0.8981 GB, free: 121.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006724/3.314, allocations: 2.526 MB / 0.9006 GB, free: 121.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.493e-06/3.314, allocations: 1.062 kB / 0.9006 GB, free: 121.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.764/8.078, allocations: 128.3 MB / 1.026 GB, free: 30.21 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat