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.041/2.041, allocations: 209.4 MB / 216.9 MB, free: 6.73 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.218e-05/2.224e-05, allocations: 4 kB / 267.6 MB, free: 5.395 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 48.71 MB / 316.3 MB, free: 4.594 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5066/0.6107, allocations: 93.94 MB / 410.2 MB, free: 14.64 MB / 346.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/0.6111, allocations: 78.33 kB / 410.3 MB, free: 14.61 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.3385/0.9496, allocations: 73.93 MB / 484.3 MB, free: 8.09 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.645e-06/0.9497, allocations: 0 / 484.3 MB, free: 8.09 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0002413/0.9499, allocations: 72 kB / 484.3 MB, free: 8.02 MB / 410.8 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.01721/0.9672, allocations: 3.8 MB / 488.1 MB, free: 4.16 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.049e-05/0.9672, allocations: 8.031 kB / 488.1 MB, free: 4.152 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006553/0.9738, allocations: 0.6737 MB / 488.8 MB, free: 3.473 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009121/0.983, allocations: 2.208 MB / 491 MB, free: 1.219 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003271/0.9834, allocations: 128 kB / 491.1 MB, free: 1.094 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001974/0.9854, allocations: 223.9 kB / 491.4 MB, free: 0.875 MB / 410.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3853/1.371, allocations: 5.456 MB / 496.8 MB, free: 94.68 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02633/1.397, allocations: 7.11 MB / 0.4921 GB, free: 93.61 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001671/1.397, allocations: 17.84 kB / 0.4921 GB, free: 93.61 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009562/1.398, allocations: 13.14 kB / 0.4921 GB, free: 93.61 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003811/1.402, allocations: 0.8392 MB / 0.493 GB, free: 93.6 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06018/1.462, allocations: 27.69 MB / 0.52 GB, free: 80.61 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00301/1.465, allocations: 1.351 MB / 0.5213 GB, free: 79.98 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001787/1.467, allocations: 1.011 MB / 0.5223 GB, free: 79.5 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01312/1.48, allocations: 7.325 MB / 0.5295 GB, free: 74.69 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/1.481, allocations: 46.16 kB / 0.5295 GB, free: 74.64 MB / 410.8 MB Notification: Performance of pre-optimization done (n=74): time 4.398e-06/1.481, allocations: 3.828 kB / 0.5295 GB, free: 74.64 MB / 410.8 MB Notification: Performance of matching and sorting (n=87): time 0.02163/1.502, allocations: 6.153 MB / 0.5355 GB, free: 71.94 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.708e-05/1.502, allocations: 142 kB / 0.5357 GB, free: 71.79 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003911/1.506, allocations: 1.967 MB / 0.5376 GB, free: 70.98 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002519/1.507, allocations: 32.58 kB / 0.5376 GB, free: 70.95 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001794/1.508, allocations: 2.502 MB / 0.5401 GB, free: 68.99 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004619/1.509, allocations: 352.6 kB / 0.5404 GB, free: 68.74 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002735/1.509, allocations: 3.031 kB / 0.5404 GB, free: 68.74 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.000249/1.509, allocations: 479.2 kB / 0.5409 GB, free: 68.36 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002166/1.512, allocations: 0.9729 MB / 0.5418 GB, free: 67.98 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003902/1.516, allocations: 3.437 MB / 0.5452 GB, free: 64.24 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006049/1.522, allocations: 1.912 MB / 0.547 GB, free: 63.71 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.957e-05/1.522, allocations: 25.38 kB / 0.5471 GB, free: 63.71 MB / 410.8 MB Notification: Performance of matching and sorting (n=513) (initialization): time 0.01257/1.534, allocations: 3.957 MB / 0.5509 GB, free: 62.41 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.539e-05/1.535, allocations: 45.94 kB / 0.551 GB, free: 62.41 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001145/1.535, allocations: 88.16 kB / 0.551 GB, free: 62.41 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001631/1.535, allocations: 134.6 kB / 0.5512 GB, free: 62.41 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00589/1.541, allocations: 0.9668 MB / 0.5521 GB, free: 62.29 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001445/1.541, allocations: 179.3 kB / 0.5523 GB, free: 62.25 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00413/1.545, allocations: 116 kB / 0.5524 GB, free: 62.25 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008375/1.546, allocations: 247.5 kB / 0.5526 GB, free: 62.21 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 406 * 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 (513): * Single equations (assignments): 513 * 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.0007635/1.547, allocations: 346.8 kB / 0.553 GB, free: 61.93 MB / 410.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002352/1.549, allocations: 1.071 MB / 0.554 GB, free: 61.46 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004014/1.55, allocations: 201.5 kB / 0.5542 GB, free: 61.36 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002639/1.552, allocations: 1.118 MB / 0.5553 GB, free: 60.89 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.599e-05/1.552, allocations: 13.33 kB / 0.5553 GB, free: 60.88 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/1.552, allocations: 0 / 0.5553 GB, free: 60.88 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/1.552, allocations: 3.891 kB / 0.5553 GB, free: 60.88 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01091/1.563, allocations: 4.611 MB / 0.5598 GB, free: 58.41 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.249e-05/1.563, allocations: 16.62 kB / 0.5598 GB, free: 58.41 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/1.565, allocations: 213.8 kB / 0.56 GB, free: 58.39 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.725e-05/1.565, allocations: 27.58 kB / 0.5601 GB, free: 58.39 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.773e-05/1.565, allocations: 29.27 kB / 0.5601 GB, free: 58.38 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.46e-05/1.565, allocations: 30.72 kB / 0.5601 GB, free: 58.38 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.091e-05/1.565, allocations: 29.58 kB / 0.5601 GB, free: 58.37 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002849/1.568, allocations: 2.966 MB / 0.563 GB, free: 55.28 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006586/1.568, allocations: 293.7 kB / 0.5633 GB, free: 55.06 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004168/1.569, allocations: 24.98 kB / 0.5633 GB, free: 55.06 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/1.57, allocations: 29.22 kB / 0.5634 GB, free: 55.06 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/1.57, allocations: 127.6 kB / 0.5635 GB, free: 55.01 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.317e-05/1.571, allocations: 48.31 kB / 0.5635 GB, free: 55 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.002561/1.573, allocations: 1.292 MB / 0.5648 GB, free: 54.12 MB / 410.8 MB Notification: Performance of sort global known variables: time 9.31e-07/1.573, allocations: 0 / 0.5648 GB, free: 54.12 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.005047/1.578, allocations: 0.5826 MB / 0.5654 GB, free: 53.55 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 120 * 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.004384/1.583, allocations: 8.066 MB / 0.5732 GB, free: 45.08 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.00502/1.588, allocations: 2.234 MB / 0.5754 GB, free: 43.03 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/1.588, allocations: 0 / 0.5754 GB, free: 43.03 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001001/1.589, allocations: 0.5029 MB / 0.5759 GB, free: 42.57 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/1.591, allocations: 216.2 kB / 0.5761 GB, free: 42.38 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01949/1.61, allocations: 6.729 MB / 0.5827 GB, free: 36.28 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005106/1.615, allocations: 2.802 MB / 0.5854 GB, free: 34.12 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003125/1.618, allocations: 1.484 MB / 0.5869 GB, free: 32.74 MB / 410.8 MB Notification: Performance of SimCode: time 1.523e-06/1.618, allocations: 4 kB / 0.5869 GB, free: 32.74 MB / 410.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.691/5.309, allocations: 55.53 MB / 0.6411 GB, free: 88.28 MB / 426.8 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