Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Universal,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Universal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.064/2.064, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.568e-05/4.574e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1283, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5649/0.6933, allocations: 90.11 MB / 412 MB, free: 15.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003705/0.6938, allocations: 79.94 kB / 412 MB, free: 15.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4671/1.161, allocations: 94.27 MB / 0.4944 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.161, allocations: 0 / 0.4944 GB, free: 0.6016 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002335/1.161, allocations: 87.88 kB / 0.4945 GB, free: 0.5156 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: 1761 * Number of variables: 1761 Notification: Performance of Generate backend data structure: time 0.3179/1.479, allocations: 4.236 MB / 0.4987 GB, free: 96.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.985e-05/1.479, allocations: 11.58 kB / 0.4987 GB, free: 96.61 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00549/1.485, allocations: 0.8785 MB / 0.4995 GB, free: 96.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02982/1.515, allocations: 3.61 MB / 0.5031 GB, free: 96.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01853/1.533, allocations: 4.449 MB / 0.5074 GB, free: 95.93 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007073/1.534, allocations: 338 kB / 0.5077 GB, free: 95.92 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003467/1.537, allocations: 446.5 kB / 0.5082 GB, free: 95.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05007/1.588, allocations: 11.59 MB / 0.5195 GB, free: 94.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000308/1.588, allocations: 34.12 kB / 0.5195 GB, free: 94.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002979/1.591, allocations: 207 kB / 0.5197 GB, free: 94.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002865/1.594, allocations: 1.327 MB / 0.521 GB, free: 94.44 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03223/1.626, allocations: 11.09 MB / 0.5318 GB, free: 94.13 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09441/1.721, allocations: 41.34 MB / 0.5722 GB, free: 69.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01945/1.74, allocations: 5.897 MB / 0.578 GB, free: 66.85 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006297/1.746, allocations: 2.977 MB / 0.5809 GB, free: 65.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002276/1.749, allocations: 1.887 MB / 0.5827 GB, free: 63.06 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.956e-05/1.749, allocations: 56.55 kB / 0.5828 GB, free: 63 MB / 426.7 MB Notification: Performance of pre-optimization done (n=262): time 7.655e-06/1.749, allocations: 0 / 0.5828 GB, free: 63 MB / 426.7 MB Notification: Performance of matching and sorting (n=283): time 0.07254/1.821, allocations: 16.61 MB / 0.599 GB, free: 49.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.495e-05/1.822, allocations: 77.41 kB / 0.5991 GB, free: 49.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006365/1.828, allocations: 2.66 MB / 0.6017 GB, free: 46.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008041/1.829, allocations: 65.67 kB / 0.6017 GB, free: 46.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002516/1.831, allocations: 2.975 MB / 0.6046 GB, free: 44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001886/1.833, allocations: 1.012 MB / 0.6056 GB, free: 43.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000829/1.834, allocations: 119.9 kB / 0.6057 GB, free: 42.99 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004879/1.835, allocations: 0.5706 MB / 0.6063 GB, free: 42.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007047/1.842, allocations: 2.761 MB / 0.609 GB, free: 40 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00933/1.851, allocations: 5.881 MB / 0.6147 GB, free: 33.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009592/1.861, allocations: 4.071 MB / 0.6187 GB, free: 29.65 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001416/1.861, allocations: 28 kB / 0.6187 GB, free: 29.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=787) (initialization): time 0.03879/1.9, allocations: 9.486 MB / 0.628 GB, free: 20.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001414/1.9, allocations: 55.98 kB / 0.628 GB, free: 20.74 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002184/1.9, allocations: 112 kB / 0.6281 GB, free: 20.63 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009086/1.909, allocations: 1.381 MB / 0.6295 GB, free: 19.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01251/1.922, allocations: 1.388 MB / 0.6309 GB, free: 17.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02085/1.943, allocations: 7.178 MB / 0.6379 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007877/1.951, allocations: 415.3 kB / 0.6383 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001619/1.952, allocations: 340 kB / 0.6386 GB, free: 9.812 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 502 * Number of states: 0 () * Number of discrete variables: 27 (axis1.color[3],axis1.color[2],axis1.color[1],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],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],axis2.color[3],axis2.color[2],axis2.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 (717): * Single equations (assignments): 710 * 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 {(3,100.0%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001899/1.954, allocations: 0.5246 MB / 0.6391 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009294/1.955, allocations: 307.5 kB / 0.6394 GB, free: 8.977 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02056/1.976, allocations: 6.58 MB / 0.6458 GB, free: 2.344 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001231/1.976, allocations: 44 kB / 0.6459 GB, free: 2.301 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.678e-05/1.976, allocations: 4 kB / 0.6459 GB, free: 2.297 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.507e-05/1.976, allocations: 11.95 kB / 0.6459 GB, free: 2.285 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04449/2.021, allocations: 13.99 MB / 0.6595 GB, free: 4.168 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.627e-05/2.021, allocations: 8 kB / 0.6595 GB, free: 4.16 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004533/2.025, allocations: 455.3 kB / 0.66 GB, free: 3.715 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006687/2.032, allocations: 1.209 MB / 0.6612 GB, free: 2.504 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000774/2.033, allocations: 55.98 kB / 0.6612 GB, free: 2.449 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3362/2.369, allocations: 6.509 MB / 0.6676 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-05/2.369, allocations: 12.23 kB / 0.6676 GB, free: 100.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02911/2.398, allocations: 10.38 MB / 0.6777 GB, free: 99.41 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003314/2.402, allocations: 0.8195 MB / 0.6785 GB, free: 99.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001438/2.403, allocations: 52.17 kB / 0.6786 GB, free: 99.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004251/2.407, allocations: 202.7 kB / 0.6788 GB, free: 99.32 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/2.409, allocations: 164.8 kB / 0.6789 GB, free: 99.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004776/2.409, allocations: 77.64 kB / 0.679 GB, free: 99.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00572/2.415, allocations: 1.812 MB / 0.6808 GB, free: 99.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.233e-06/2.415, allocations: 0 / 0.6808 GB, free: 99.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008758/2.424, allocations: 1.137 MB / 0.6819 GB, free: 99.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 4 (universal.phi_a,universal.phi_b,universal.w_a,universal.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (218): * Single equations (assignments): 211 * 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 {(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02719/2.451, allocations: 12.77 MB / 0.6943 GB, free: 95.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01633/2.467, allocations: 6.633 MB / 0.7008 GB, free: 94.55 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.075e-05/2.467, allocations: 3.094 kB / 0.7008 GB, free: 94.55 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007084/2.475, allocations: 2.705 MB / 0.7035 GB, free: 93.56 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003939/2.479, allocations: 369.5 kB / 0.7038 GB, free: 93.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04097/2.52, allocations: 11.66 MB / 0.7152 GB, free: 89.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008906/2.529, allocations: 3.678 MB / 0.7188 GB, free: 87.83 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006047/2.535, allocations: 2.135 MB / 0.7209 GB, free: 86.12 MB / 442.7 MB Notification: Performance of SimCode: time 2.685e-06/2.535, allocations: 2.844 kB / 0.7209 GB, free: 86.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.847/7.381, allocations: 106.3 MB / 0.8247 GB, free: 79.16 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Universal_res.mat does not exist to compare? outputFormat=mat