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.983/1.983, allocations: 209.4 MB / 216.9 MB, free: 6.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.694e-05/2.69e-05, allocations: 4 kB / 267.6 MB, free: 5.32 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1097, allocations: 48.7 MB / 316.3 MB, free: 4.527 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4529/0.5627, allocations: 101.1 MB / 417.4 MB, free: 7.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002511/0.563, allocations: 78.19 kB / 417.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8106/1.374, allocations: 120.7 MB / 0.5255 GB, free: 91.73 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.918e-06/1.374, allocations: 0 / 0.5255 GB, free: 91.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003965/1.374, allocations: 116.1 kB / 0.5256 GB, free: 91.72 MB / 410.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.02329/1.397, allocations: 5.626 MB / 0.5311 GB, free: 89.53 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/1.398, allocations: 10.78 kB / 0.5311 GB, free: 89.53 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0344/1.432, allocations: 4.727 MB / 0.5358 GB, free: 89.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02408/1.456, allocations: 6.617 MB / 0.5422 GB, free: 86.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005063/1.457, allocations: 261.5 kB / 0.5425 GB, free: 86.07 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003156/1.46, allocations: 324.8 kB / 0.5428 GB, free: 86.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02105/1.481, allocations: 8.456 MB / 0.551 GB, free: 80.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03068/1.512, allocations: 12.04 MB / 0.5628 GB, free: 67.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003001/1.512, allocations: 63.41 kB / 0.5629 GB, free: 67.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001771/1.514, allocations: 42.5 kB / 0.5629 GB, free: 67.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002592/1.516, allocations: 1.297 MB / 0.5642 GB, free: 65.91 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08761/1.604, allocations: 57.53 MB / 0.6203 GB, free: 6.906 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007869/1.612, allocations: 3.93 MB / 0.6242 GB, free: 2.828 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006017/1.618, allocations: 2.619 MB / 0.6267 GB, free: 204 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03565/1.654, allocations: 11.74 MB / 0.6382 GB, free: 3.988 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.756e-05/1.654, allocations: 51.88 kB / 0.6383 GB, free: 3.93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 0.0001111/1.654, allocations: 4 kB / 0.6383 GB, free: 3.926 MB / 426.7 MB Notification: Performance of matching and sorting (n=242): time 0.5142/2.168, allocations: 33.52 MB / 0.671 GB, free: 96.35 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.436e-05/2.168, allocations: 236.3 kB / 0.6712 GB, free: 96.1 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008417/2.177, allocations: 3.653 MB / 0.6748 GB, free: 95.57 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007716/2.178, allocations: 27.78 kB / 0.6748 GB, free: 95.54 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003416/2.181, allocations: 3.884 MB / 0.6786 GB, free: 92.51 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001624/2.183, allocations: 0.8883 MB / 0.6795 GB, free: 91.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001048/2.184, allocations: 2.562 kB / 0.6795 GB, free: 91.86 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000548/2.185, allocations: 0.621 MB / 0.6801 GB, free: 91.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006755/2.191, allocations: 3.057 MB / 0.6831 GB, free: 90.24 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009624/2.201, allocations: 7.437 MB / 0.6903 GB, free: 83.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/2.211, allocations: 4.656 MB / 0.6949 GB, free: 81.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000234/2.212, allocations: 45.7 kB / 0.6949 GB, free: 81.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=965) (initialization): time 0.04336/2.255, allocations: 12.69 MB / 0.7073 GB, free: 77.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001321/2.255, allocations: 71.19 kB / 0.7074 GB, free: 77.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002472/2.255, allocations: 155.2 kB / 0.7075 GB, free: 77.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02056/2.276, allocations: 3.78 MB / 0.7112 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01037/2.286, allocations: 1.664 MB / 0.7128 GB, free: 76.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03707/2.324, allocations: 16.52 MB / 0.729 GB, free: 63.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009502/2.333, allocations: 350.7 kB / 0.7293 GB, free: 63.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001976/2.335, allocations: 446.9 kB / 0.7297 GB, free: 62.63 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 713 * 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 (882): * Single equations (assignments): 878 * 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.001788/2.337, allocations: 497.4 kB / 0.7302 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02914/2.366, allocations: 7.913 MB / 0.7379 GB, free: 55.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001627/2.368, allocations: 410.8 kB / 0.7383 GB, free: 55.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02955/2.397, allocations: 7.878 MB / 0.746 GB, free: 49.54 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.137e-05/2.397, allocations: 28.53 kB / 0.7461 GB, free: 49.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.165e-05/2.397, allocations: 12 kB / 0.7461 GB, free: 49.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.947e-05/2.398, allocations: 18.02 kB / 0.7461 GB, free: 49.49 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05406/2.452, allocations: 16.22 MB / 0.7619 GB, free: 33.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.792e-05/2.452, allocations: 11.33 kB / 0.7619 GB, free: 33.26 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003795/2.456, allocations: 383.4 kB / 0.7623 GB, free: 32.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02099/2.477, allocations: 3.828 MB / 0.766 GB, free: 29.05 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007014/2.477, allocations: 11.98 kB / 0.766 GB, free: 29.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03873/2.516, allocations: 15 MB / 0.7807 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.568e-06/2.516, allocations: 0 / 0.7807 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03782/2.554, allocations: 12.35 MB / 0.7928 GB, free: 1.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/2.557, allocations: 0.8979 MB / 0.7936 GB, free: 0.5781 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001682/2.559, allocations: 3.984 kB / 0.7936 GB, free: 0.5742 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007638/2.567, allocations: 179.7 kB / 0.7938 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001933/2.569, allocations: 142.2 kB / 0.7939 GB, free: 264 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006188/2.569, allocations: 68.05 kB / 0.794 GB, free: 196 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01071/2.58, allocations: 2.439 MB / 0.7964 GB, free: 13.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.713e-06/2.58, allocations: 0 / 0.7964 GB, free: 13.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01414/2.594, allocations: 1.266 MB / 0.7976 GB, free: 12.5 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.3828/2.977, allocations: 13.22 MB / 0.8105 GB, free: 104.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01849/2.996, allocations: 7.406 MB / 0.8178 GB, free: 104.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.067e-05/2.996, allocations: 2.922 kB / 0.8178 GB, free: 104.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006705/3.003, allocations: 2.843 MB / 0.8206 GB, free: 104 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004253/3.007, allocations: 405.4 kB / 0.8209 GB, free: 104 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04725/3.054, allocations: 12.75 MB / 0.8334 GB, free: 99.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02531/3.08, allocations: 4.201 MB / 0.8375 GB, free: 98.33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02072/3.1, allocations: 2.517 MB / 0.84 GB, free: 96.29 MB / 442.7 MB Notification: Performance of SimCode: time 1.914e-06/3.1, allocations: 0 / 0.84 GB, free: 96.29 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.136/8.236, allocations: 126.7 MB / 0.9637 GB, free: 81.86 MB / 442.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