Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSP2,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_JointUSP2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.956/1.956, allocations: 209.3 MB / 221.9 MB, free: 1.949 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.731e-05/3.741e-05, allocations: 4 kB / 273.1 MB, free: 0.6523 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1024, allocations: 48.7 MB / 321.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.454/0.5565, allocations: 101.5 MB / 423.3 MB, free: 4.301 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.5569, allocations: 79.94 kB / 423.4 MB, free: 4.223 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8406/1.397, allocations: 123.2 MB / 0.5338 GB, free: 98.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.895e-06/1.398, allocations: 0 / 0.5338 GB, free: 98.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003926/1.398, allocations: 108.9 kB / 0.5339 GB, free: 98.88 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: 1928 * Number of variables: 1928 Notification: Performance of Generate backend data structure: time 0.02373/1.422, allocations: 5.641 MB / 0.5394 GB, free: 96.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.782e-05/1.422, allocations: 11.03 kB / 0.5394 GB, free: 96.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004761/1.427, allocations: 0.9662 MB / 0.5403 GB, free: 96.61 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04822/1.475, allocations: 4.732 MB / 0.5449 GB, free: 96.22 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03137/1.506, allocations: 6.621 MB / 0.5514 GB, free: 95.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007534/1.507, allocations: 444.8 kB / 0.5518 GB, free: 95.22 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003068/1.51, allocations: 0.5395 MB / 0.5524 GB, free: 95.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04202/1.552, allocations: 14.05 MB / 0.5661 GB, free: 88.14 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003234/1.553, allocations: 67.44 kB / 0.5662 GB, free: 88.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002232/1.555, allocations: 261.2 kB / 0.5664 GB, free: 87.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002743/1.558, allocations: 1.297 MB / 0.5677 GB, free: 87.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03655/1.594, allocations: 11.66 MB / 0.5791 GB, free: 77.36 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09768/1.692, allocations: 59.21 MB / 0.6369 GB, free: 16.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01983/1.712, allocations: 4.643 MB / 0.6414 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005222/1.717, allocations: 2.706 MB / 0.6441 GB, free: 9.125 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3474/2.065, allocations: 12.61 MB / 0.6564 GB, free: 89.86 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.011e-05/2.065, allocations: 54.44 kB / 0.6564 GB, free: 89.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 5.43e-06/2.065, allocations: 3.781 kB / 0.6564 GB, free: 89.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=242): time 0.1751/2.24, allocations: 32.81 MB / 0.6885 GB, free: 85.86 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/2.24, allocations: 236 kB / 0.6887 GB, free: 85.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01036/2.25, allocations: 4.175 MB / 0.6928 GB, free: 84.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007411/2.251, allocations: 64.03 kB / 0.6928 GB, free: 84.76 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003207/2.254, allocations: 3.788 MB / 0.6965 GB, free: 81.9 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001507/2.256, allocations: 0.9089 MB / 0.6974 GB, free: 81.24 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008634/2.257, allocations: 146.1 kB / 0.6976 GB, free: 81.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004223/2.257, allocations: 0.6105 MB / 0.6981 GB, free: 80.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007035/2.264, allocations: 3.153 MB / 0.7012 GB, free: 79.53 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009644/2.274, allocations: 7.41 MB / 0.7085 GB, free: 72.67 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/2.284, allocations: 4.739 MB / 0.7131 GB, free: 71.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001242/2.284, allocations: 45.47 kB / 0.7131 GB, free: 71.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.04379/2.328, allocations: 13.5 MB / 0.7263 GB, free: 66.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001119/2.328, allocations: 70.66 kB / 0.7264 GB, free: 66.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001889/2.328, allocations: 147.5 kB / 0.7265 GB, free: 66.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02069/2.349, allocations: 3.803 MB / 0.7302 GB, free: 66.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009818/2.359, allocations: 1.614 MB / 0.7318 GB, free: 64.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03934/2.398, allocations: 18 MB / 0.7494 GB, free: 49.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009412/2.408, allocations: 487.9 kB / 0.7499 GB, free: 49.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001519/2.409, allocations: 433.4 kB / 0.7503 GB, free: 48.71 MB / 426.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.001767/2.411, allocations: 0.6471 MB / 0.7509 GB, free: 48.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001153/2.412, allocations: 437.2 kB / 0.7513 GB, free: 47.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02932/2.442, allocations: 8.079 MB / 0.7592 GB, free: 41.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.757e-05/2.442, allocations: 26.95 kB / 0.7592 GB, free: 41.45 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-05/2.442, allocations: 12 kB / 0.7592 GB, free: 41.44 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.954e-05/2.442, allocations: 10.92 kB / 0.7593 GB, free: 41.44 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05304/2.495, allocations: 17.38 MB / 0.7762 GB, free: 24.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.192e-05/2.495, allocations: 0 / 0.7762 GB, free: 24.69 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003782/2.499, allocations: 388.1 kB / 0.7766 GB, free: 24.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02102/2.52, allocations: 3.847 MB / 0.7804 GB, free: 20.46 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006635/2.52, allocations: 43.95 kB / 0.7804 GB, free: 20.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03608/2.557, allocations: 16.45 MB / 0.7965 GB, free: 3.832 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/2.557, allocations: 3.469 kB / 0.7965 GB, free: 3.832 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04291/2.6, allocations: 12.56 MB / 0.8087 GB, free: 7.215 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004259/2.604, allocations: 0.9367 MB / 0.8096 GB, free: 6.254 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001728/2.606, allocations: 33.17 kB / 0.8097 GB, free: 6.223 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006897/2.613, allocations: 211.7 kB / 0.8099 GB, free: 6.016 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001468/2.614, allocations: 154.2 kB / 0.81 GB, free: 5.867 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005927/2.615, allocations: 61.02 kB / 0.8101 GB, free: 5.809 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.3383/2.953, allocations: 2.902 MB / 0.8129 GB, free: 95.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.22e-07/2.953, allocations: 0 / 0.8129 GB, free: 95.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01036/2.963, allocations: 1.455 MB / 0.8143 GB, free: 95.48 MB / 442.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.04526/3.009, allocations: 13.44 MB / 0.8275 GB, free: 94.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01841/3.027, allocations: 7.732 MB / 0.835 GB, free: 93.91 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.448e-06/3.027, allocations: 0 / 0.835 GB, free: 93.91 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006598/3.034, allocations: 2.917 MB / 0.8379 GB, free: 93.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004281/3.038, allocations: 494.7 kB / 0.8383 GB, free: 93.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03858/3.077, allocations: 13.05 MB / 0.8511 GB, free: 89.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008719/3.086, allocations: 4.213 MB / 0.8552 GB, free: 87.74 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005722/3.091, allocations: 2.525 MB / 0.8577 GB, free: 85.71 MB / 442.7 MB Notification: Performance of SimCode: time 1.513e-06/3.091, allocations: 0 / 0.8577 GB, free: 85.71 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.142/8.233, allocations: 129.4 MB / 0.9841 GB, free: 95.25 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.JointUSP2_res.mat does not exist to compare? outputFormat=mat