Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_FourbarVariants_SphericalSpherical",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.368/2.368, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.463e-05/5.465e-05, allocations: 8 kB / 305 MB, free: 5.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.388, allocations: 54.86 MB / 359.9 MB, free: 2.711 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2021/0.5902, allocations: 100.2 MB / 460 MB, free: 12.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003053/0.5906, allocations: 71.97 kB / 460.1 MB, free: 12.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7623/1.353, allocations: 94.7 MB / 0.5418 GB, free: 102.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.194e-06/1.353, allocations: 1 kB / 0.5418 GB, free: 102.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004684/1.354, allocations: 86 kB / 0.5419 GB, free: 102.8 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.02533/1.379, allocations: 4.611 MB / 0.5464 GB, free: 101 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.458e-05/1.379, allocations: 10 kB / 0.5464 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005845/1.385, allocations: 0.9167 MB / 0.5473 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06421/1.449, allocations: 6.74 MB / 0.5539 GB, free: 100.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02295/1.472, allocations: 6.296 MB / 0.56 GB, free: 99.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004121/1.473, allocations: 324.3 kB / 0.5603 GB, free: 99.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002383/1.475, allocations: 443.3 kB / 0.5607 GB, free: 99.87 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03275/1.508, allocations: 10.92 MB / 0.5714 GB, free: 96.08 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002976/1.508, allocations: 73.09 kB / 0.5715 GB, free: 96.07 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001711/1.51, allocations: 209.6 kB / 0.5717 GB, free: 95.96 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002137/1.512, allocations: 1.019 MB / 0.5727 GB, free: 95.78 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02843/1.54, allocations: 8.982 MB / 0.5814 GB, free: 93.06 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06988/1.61, allocations: 47.58 MB / 0.6279 GB, free: 54.56 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02241/1.633, allocations: 4.091 MB / 0.6319 GB, free: 50.98 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005645/1.639, allocations: 1.785 MB / 0.6336 GB, free: 49.33 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02312/1.662, allocations: 7.519 MB / 0.641 GB, free: 42.05 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.159e-05/1.662, allocations: 51.56 kB / 0.641 GB, free: 41.99 MB / 458.7 MB Notification: Performance of pre-optimization done (n=180): time 7.825e-06/1.662, allocations: 0 / 0.641 GB, free: 41.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=236): time 0.1554/1.817, allocations: 25.69 MB / 0.6661 GB, free: 16.29 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.138e-05/1.817, allocations: 213.9 kB / 0.6663 GB, free: 16.04 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00839/1.826, allocations: 3.756 MB / 0.67 GB, free: 12.27 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007275/1.827, allocations: 61.7 kB / 0.67 GB, free: 12.2 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002637/1.829, allocations: 3.108 MB / 0.6731 GB, free: 9.094 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001409/1.831, allocations: 0.8738 MB / 0.6739 GB, free: 8.227 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009116/1.832, allocations: 132 kB / 0.6741 GB, free: 8.098 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004216/1.832, allocations: 0.5714 MB / 0.6746 GB, free: 7.516 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007419/1.839, allocations: 3.355 MB / 0.6779 GB, free: 4.156 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01084/1.85, allocations: 6.937 MB / 0.6847 GB, free: 11.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01153/1.862, allocations: 4.742 MB / 0.6893 GB, free: 6.688 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001141/1.862, allocations: 40 kB / 0.6893 GB, free: 6.648 MB / 474.7 MB Notification: Performance of matching and sorting (n=820) (initialization): time 0.06686/1.929, allocations: 14.82 MB / 0.7038 GB, free: 7.824 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001229/1.929, allocations: 60 kB / 0.7039 GB, free: 7.766 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002287/1.929, allocations: 124 kB / 0.704 GB, free: 7.645 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04406/1.974, allocations: 5.927 MB / 0.7098 GB, free: 1.707 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01017/1.984, allocations: 1.427 MB / 0.7112 GB, free: 284 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3994/2.383, allocations: 24.96 MB / 0.7355 GB, free: 114 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008875/2.392, allocations: 389.3 kB / 0.7359 GB, free: 113.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001645/2.394, allocations: 381.5 kB / 0.7363 GB, free: 113.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 578 * Number of states: 0 () * Number of discrete variables: 39 (b3.color[3],b3.color[2],b3.color[1],sphericalSpherical.massColor[3],sphericalSpherical.massColor[2],sphericalSpherical.massColor[1],sphericalSpherical.sphereColor[3],sphericalSpherical.sphereColor[2],sphericalSpherical.sphereColor[1],sphericalSpherical.rodColor[3],sphericalSpherical.rodColor[2],sphericalSpherical.rodColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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 (743): * Single equations (assignments): 738 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 51} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002007/2.396, allocations: 0.5693 MB / 0.7368 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/2.397, allocations: 404.6 kB / 0.7372 GB, free: 113.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04963/2.447, allocations: 10.76 MB / 0.7477 GB, free: 110.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.491e-05/2.447, allocations: 26.19 kB / 0.7477 GB, free: 110.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.021e-05/2.447, allocations: 9.781 kB / 0.7478 GB, free: 110.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.126e-05/2.447, allocations: 10.88 kB / 0.7478 GB, free: 110.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07236/2.519, allocations: 20.13 MB / 0.7674 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.46e-05/2.519, allocations: 7.484 kB / 0.7674 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003852/2.523, allocations: 380.2 kB / 0.7678 GB, free: 102.6 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03658/2.56, allocations: 4.993 MB / 0.7727 GB, free: 101.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007005/2.561, allocations: 50.44 kB / 0.7727 GB, free: 101.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04221/2.603, allocations: 20.14 MB / 0.7924 GB, free: 92.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.084e-05/2.603, allocations: 7.766 kB / 0.7924 GB, free: 92.26 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05199/2.655, allocations: 14.51 MB / 0.8066 GB, free: 83.36 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003565/2.659, allocations: 0.9514 MB / 0.8075 GB, free: 82.39 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001657/2.66, allocations: 45.17 kB / 0.8075 GB, free: 82.34 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00519/2.666, allocations: 169.1 kB / 0.8077 GB, free: 82.18 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001068/2.667, allocations: 160.3 kB / 0.8079 GB, free: 82.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003429/2.667, allocations: 62.03 kB / 0.8079 GB, free: 81.98 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006347/2.673, allocations: 2.643 MB / 0.8105 GB, free: 79.32 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.022e-06/2.673, allocations: 0 / 0.8105 GB, free: 79.32 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008526/2.682, allocations: 1.317 MB / 0.8118 GB, free: 78.02 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 2 (j1.phi,j1.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): 162 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 45} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06992/2.752, allocations: 16.29 MB / 0.8277 GB, free: 61.65 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02338/2.775, allocations: 7.656 MB / 0.8352 GB, free: 54.32 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/2.775, allocations: 3.812 kB / 0.8352 GB, free: 54.32 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007246/2.783, allocations: 3.05 MB / 0.8381 GB, free: 51.29 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004391/2.787, allocations: 498.3 kB / 0.8386 GB, free: 50.83 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03402/2.821, allocations: 11.9 MB / 0.8502 GB, free: 38.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0067/2.828, allocations: 3.601 MB / 0.8538 GB, free: 35.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004862/2.833, allocations: 2.111 MB / 0.8558 GB, free: 33.19 MB / 490.7 MB Notification: Performance of SimCode: time 1.663e-06/2.833, allocations: 0 / 0.8558 GB, free: 33.19 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.94/7.773, allocations: 131.1 MB / 0.9838 GB, free: 89.3 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.FourbarVariants.SphericalSpherical_res.mat does not exist to compare? outputFormat=mat