Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.209/2.209, allocations: 235 MB / 247.6 MB, free: 14.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.602e-05/3.605e-05, allocations: 4 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3823/0.3824, allocations: 54.86 MB / 359.9 MB, free: 2.312 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1745/0.5569, allocations: 95.93 MB / 455.8 MB, free: 0.9258 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002887/0.5572, allocations: 73.19 kB / 455.9 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6784/1.236, allocations: 85.62 MB / 0.5288 GB, free: 106.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.317e-06/1.236, allocations: 0 / 0.5288 GB, free: 106.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001936/1.236, allocations: 70.8 kB / 0.5289 GB, free: 106.4 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: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.01537/1.251, allocations: 3.656 MB / 0.5324 GB, free: 104.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/1.251, allocations: 12.28 kB / 0.5324 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004234/1.256, allocations: 0.7869 MB / 0.5332 GB, free: 104.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02809/1.284, allocations: 3.514 MB / 0.5366 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01734/1.301, allocations: 4.138 MB / 0.5407 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00055/1.302, allocations: 300.8 kB / 0.541 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002912/1.305, allocations: 389.1 kB / 0.5413 GB, free: 104.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03209/1.337, allocations: 10.17 MB / 0.5513 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001813/1.337, allocations: 28.72 kB / 0.5513 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001589/1.339, allocations: 178.6 kB / 0.5515 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002513/1.341, allocations: 1.208 MB / 0.5527 GB, free: 102.8 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/1.369, allocations: 9.751 MB / 0.5622 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07125/1.44, allocations: 35.47 MB / 0.5968 GB, free: 81.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01412/1.454, allocations: 4.911 MB / 0.6016 GB, free: 78.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004794/1.459, allocations: 2.267 MB / 0.6038 GB, free: 77.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002154/1.461, allocations: 1.882 MB / 0.6057 GB, free: 74.93 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/1.461, allocations: 53.59 kB / 0.6057 GB, free: 74.87 MB / 458.7 MB Notification: Performance of pre-optimization done (n=229): time 8.205e-06/1.461, allocations: 4 kB / 0.6057 GB, free: 74.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=235): time 0.04261/1.504, allocations: 11.24 MB / 0.6167 GB, free: 65.32 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/1.504, allocations: 73.41 kB / 0.6168 GB, free: 65.24 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004489/1.508, allocations: 2.342 MB / 0.6191 GB, free: 63.15 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004876/1.509, allocations: 57.7 kB / 0.6191 GB, free: 63.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001806/1.511, allocations: 2.691 MB / 0.6217 GB, free: 60.67 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/1.512, allocations: 0.8497 MB / 0.6226 GB, free: 59.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004495/1.512, allocations: 100 kB / 0.6227 GB, free: 59.82 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003538/1.513, allocations: 0.539 MB / 0.6232 GB, free: 59.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004926/1.518, allocations: 2.146 MB / 0.6253 GB, free: 57.41 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006862/1.525, allocations: 4.985 MB / 0.6302 GB, free: 51.31 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007138/1.532, allocations: 3.322 MB / 0.6334 GB, free: 48.47 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.57e-05/1.532, allocations: 31.95 kB / 0.6334 GB, free: 48.44 MB / 458.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.02074/1.553, allocations: 7.435 MB / 0.6407 GB, free: 42.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/1.553, allocations: 49.72 kB / 0.6407 GB, free: 42.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000116/1.553, allocations: 100 kB / 0.6408 GB, free: 41.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003876/1.557, allocations: 0.7966 MB / 0.6416 GB, free: 41.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007326/1.564, allocations: 1.195 MB / 0.6428 GB, free: 40.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00849/1.573, allocations: 4.147 MB / 0.6468 GB, free: 35.74 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005372/1.578, allocations: 291.8 kB / 0.6471 GB, free: 35.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001174/1.579, allocations: 308 kB / 0.6474 GB, free: 35.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 461 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.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 (636): * Single equations (assignments): 629 * Array equations: 6 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00118/1.581, allocations: 491.7 kB / 0.6479 GB, free: 34.67 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006363/1.581, allocations: 261.9 kB / 0.6481 GB, free: 34.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01312/1.594, allocations: 4.67 MB / 0.6527 GB, free: 29.72 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001023/1.595, allocations: 43.98 kB / 0.6527 GB, free: 29.68 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/1.595, allocations: 4 kB / 0.6527 GB, free: 29.67 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.694e-05/1.595, allocations: 11.72 kB / 0.6527 GB, free: 29.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03052/1.625, allocations: 10.58 MB / 0.6631 GB, free: 18.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-05/1.625, allocations: 8.109 kB / 0.6631 GB, free: 18.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003212/1.629, allocations: 367.4 kB / 0.6634 GB, free: 18.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003612/1.632, allocations: 0.6521 MB / 0.6641 GB, free: 17.95 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004624/1.633, allocations: 39.98 kB / 0.6641 GB, free: 17.91 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007283/1.64, allocations: 3.59 MB / 0.6676 GB, free: 14.19 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.061e-05/1.64, allocations: 15.89 kB / 0.6676 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01735/1.657, allocations: 7.609 MB / 0.6751 GB, free: 6.277 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002341/1.66, allocations: 0.6459 MB / 0.6757 GB, free: 5.609 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008997/1.661, allocations: 40 kB / 0.6757 GB, free: 5.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002716/1.664, allocations: 135.6 kB / 0.6758 GB, free: 5.441 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000727/1.664, allocations: 139.3 kB / 0.676 GB, free: 5.312 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002725/1.665, allocations: 67.98 kB / 0.676 GB, free: 5.246 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00413/1.669, allocations: 1.591 MB / 0.6776 GB, free: 3.641 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.669, allocations: 0 / 0.6776 GB, free: 3.641 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00654/1.675, allocations: 0.9492 MB / 0.6785 GB, free: 2.691 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (178): * Single equations (assignments): 171 * Array equations: 6 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02159/1.697, allocations: 10.04 MB / 0.6883 GB, free: 8.426 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01389/1.711, allocations: 5.113 MB / 0.6933 GB, free: 3.328 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/1.711, allocations: 0 / 0.6933 GB, free: 3.328 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00535/1.716, allocations: 1.966 MB / 0.6952 GB, free: 1.352 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002797/1.719, allocations: 308.4 kB / 0.6955 GB, free: 1.059 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3496/2.069, allocations: 9.744 MB / 0.7051 GB, free: 109.2 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008937/2.078, allocations: 3.314 MB / 0.7083 GB, free: 108.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005113/2.083, allocations: 1.82 MB / 0.7101 GB, free: 108.4 MB / 474.7 MB Notification: Performance of SimCode: time 2.866e-06/2.083, allocations: 0 / 0.7101 GB, free: 108.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.303/6.386, allocations: 91.13 MB / 0.7991 GB, free: 63.07 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Revolute_res.mat does not exist to compare? outputFormat=mat