Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.JointUSR,fileNamePrefix="ModelicaTest_3_2_2_cs_ModelicaTest_MultiBody_Joints_JointUSR",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(ModelicaTest): time 2.643/2.643, allocations: 235.1 MB / 242.3 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.161e-05/3.17e-05, allocations: 4 kB / 299.6 MB, free: 208 kB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4213/0.4214, allocations: 54.85 MB / 354.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2443/0.6658, allocations: 100.2 MB / 454.7 MB, free: 10.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.6662, allocations: 75.97 kB / 454.7 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7269/1.393, allocations: 73.93 MB / 0.5163 GB, free: 49.04 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.567e-06/1.393, allocations: 3.984 kB / 0.5163 GB, free: 49.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001896/1.393, allocations: 68 kB / 0.5163 GB, free: 48.96 MB / 394.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.01707/1.41, allocations: 3.793 MB / 0.52 GB, free: 45.11 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/1.411, allocations: 8.031 kB / 0.52 GB, free: 45.11 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006552/1.417, allocations: 0.6738 MB / 0.5207 GB, free: 44.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008322/1.425, allocations: 2.208 MB / 0.5229 GB, free: 42.17 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/1.426, allocations: 124 kB / 0.523 GB, free: 42.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001793/1.428, allocations: 224 kB / 0.5232 GB, free: 41.83 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01364/1.441, allocations: 5.453 MB / 0.5285 GB, free: 36.38 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0201/1.461, allocations: 7.117 MB / 0.5355 GB, free: 28.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001304/1.462, allocations: 19.81 kB / 0.5355 GB, free: 28.86 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008928/1.462, allocations: 16 kB / 0.5355 GB, free: 28.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002826/1.465, allocations: 0.8387 MB / 0.5363 GB, free: 28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06222/1.528, allocations: 27.68 MB / 0.5634 GB, free: 15.64 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003969/1.532, allocations: 1.361 MB / 0.5647 GB, free: 14.24 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002579/1.534, allocations: 1.013 MB / 0.5657 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01919/1.553, allocations: 7.33 MB / 0.5728 GB, free: 5.344 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.217e-05/1.554, allocations: 43.06 kB / 0.5729 GB, free: 5.293 MB / 410.7 MB Notification: Performance of pre-optimization done (n=74): time 5.24e-06/1.554, allocations: 0 / 0.5729 GB, free: 5.293 MB / 410.7 MB Notification: Performance of matching and sorting (n=87): time 0.02874/1.582, allocations: 6.156 MB / 0.5789 GB, free: 15.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/1.582, allocations: 137.3 kB / 0.579 GB, free: 14.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005393/1.588, allocations: 1.969 MB / 0.5809 GB, free: 12.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000231/1.588, allocations: 29.7 kB / 0.581 GB, free: 12.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003064/1.591, allocations: 2.49 MB / 0.5834 GB, free: 10.36 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006497/1.592, allocations: 363.6 kB / 0.5837 GB, free: 10 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/1.592, allocations: 0 / 0.5837 GB, free: 10 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004212/1.593, allocations: 470.6 kB / 0.5842 GB, free: 9.535 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002814/1.595, allocations: 0.9724 MB / 0.5851 GB, free: 8.555 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005379/1.601, allocations: 3.431 MB / 0.5885 GB, free: 3.859 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007746/1.609, allocations: 1.924 MB / 0.5904 GB, free: 1.934 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/1.609, allocations: 28 kB / 0.5904 GB, free: 1.906 MB / 426.7 MB Notification: Performance of matching and sorting (n=513) (initialization): time 0.01558/1.624, allocations: 4.002 MB / 0.5943 GB, free: 13.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-05/1.625, allocations: 48.06 kB / 0.5943 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/1.625, allocations: 91.98 kB / 0.5944 GB, free: 13.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002205/1.625, allocations: 132 kB / 0.5946 GB, free: 13.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006875/1.632, allocations: 0.963 MB / 0.5955 GB, free: 12.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00022/1.632, allocations: 175.4 kB / 0.5957 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004349/1.636, allocations: 119.8 kB / 0.5958 GB, free: 12.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008838/1.637, allocations: 244 kB / 0.596 GB, free: 12.14 MB / 442.7 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.0009312/1.638, allocations: 343.9 kB / 0.5963 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003012/1.641, allocations: 1.068 MB / 0.5974 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005038/1.642, allocations: 201.4 kB / 0.5976 GB, free: 10.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003359/1.645, allocations: 1.115 MB / 0.5987 GB, free: 9.391 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.787e-05/1.645, allocations: 8 kB / 0.5987 GB, free: 9.383 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/1.645, allocations: 4 kB / 0.5987 GB, free: 9.379 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/1.645, allocations: 3.984 kB / 0.5987 GB, free: 9.375 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/1.659, allocations: 4.618 MB / 0.6032 GB, free: 4.449 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-05/1.659, allocations: 20.03 kB / 0.6032 GB, free: 4.43 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/1.66, allocations: 223.6 kB / 0.6034 GB, free: 4.211 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.654e-05/1.661, allocations: 24 kB / 0.6034 GB, free: 4.188 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.847e-05/1.661, allocations: 23.94 kB / 0.6035 GB, free: 4.164 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.925e-05/1.661, allocations: 35.86 kB / 0.6035 GB, free: 4.129 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.875e-05/1.661, allocations: 27.88 kB / 0.6035 GB, free: 4.102 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004459/1.665, allocations: 2.963 MB / 0.6064 GB, free: 364 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008461/1.666, allocations: 290.3 kB / 0.6067 GB, free: 52 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005747/1.667, allocations: 27.94 kB / 0.6067 GB, free: 24 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001816/1.669, allocations: 28.02 kB / 0.6068 GB, free: 15.99 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003242/1.669, allocations: 124 kB / 0.6069 GB, free: 15.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.669, allocations: 51.98 kB / 0.6069 GB, free: 15.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003649/1.673, allocations: 1.285 MB / 0.6082 GB, free: 14.52 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.673, allocations: 0 / 0.6082 GB, free: 14.52 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005615/1.678, allocations: 0.582 MB / 0.6087 GB, free: 13.94 MB / 458.7 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.007426/1.686, allocations: 8.068 MB / 0.6166 GB, free: 5.344 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006419/1.692, allocations: 2.237 MB / 0.6188 GB, free: 3.133 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-05/1.692, allocations: 4.938 kB / 0.6188 GB, free: 3.129 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001351/1.694, allocations: 0.5001 MB / 0.6193 GB, free: 2.633 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/1.696, allocations: 210.3 kB / 0.6195 GB, free: 2.426 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3792/2.075, allocations: 6.327 MB / 0.6257 GB, free: 120.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005778/2.081, allocations: 2.804 MB / 0.6284 GB, free: 119.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005894/2.087, allocations: 1.019 MB / 0.6294 GB, free: 119.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003461/2.09, allocations: 1.463 MB / 0.6308 GB, free: 119.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.522e-06/2.09, allocations: 0 / 0.6308 GB, free: 119.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1525/2.243, allocations: 44.44 MB / 0.6742 GB, free: 102.6 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0001976/2.243, allocations: 128.1 kB / 0.6744 GB, free: 102.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.43/6.673, allocations: 3.938 kB / 0.6744 GB, free: 102.4 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cs_ModelicaTest.MultiBody.Joints.JointUSR_res.mat does not exist to compare? outputFormat=mat