Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.712/1.712, allocations: 171.2 MB / 178.8 MB, free: 8.203 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.419e-05/3.429e-05, allocations: 4 kB / 219.6 MB, free: 11.36 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1107, allocations: 38.75 MB / 258.3 MB, free: 4.531 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.387/0.4978, allocations: 91.64 MB / 350 MB, free: 12.33 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/0.4982, allocations: 85.45 kB / 350 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6867/1.185, allocations: 108 MB / 458 MB, free: 76.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.475e-06/1.185, allocations: 0 / 458 MB, free: 76.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003706/1.185, allocations: 107.7 kB / 458.1 MB, free: 76.68 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.01934/1.205, allocations: 4.914 MB / 463 MB, free: 74.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.313e-05/1.205, allocations: 11.47 kB / 463 MB, free: 74.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04966/1.255, allocations: 6.899 MB / 469.9 MB, free: 73.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02405/1.279, allocations: 6.741 MB / 476.7 MB, free: 70.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003412/1.279, allocations: 167.9 kB / 476.8 MB, free: 70.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002759/1.282, allocations: 322.9 kB / 477.2 MB, free: 70.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01878/1.301, allocations: 7.486 MB / 484.6 MB, free: 64.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02777/1.328, allocations: 10.63 MB / 495.3 MB, free: 52.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003161/1.329, allocations: 63.45 kB / 495.3 MB, free: 52.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002045/1.331, allocations: 28 kB / 495.4 MB, free: 52.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002246/1.333, allocations: 1.047 MB / 496.4 MB, free: 51.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07355/1.407, allocations: 48.35 MB / 0.532 GB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2522/1.659, allocations: 3.145 MB / 0.5351 GB, free: 71.18 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003971/1.663, allocations: 1.79 MB / 0.5368 GB, free: 71.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001877/1.665, allocations: 1.214 MB / 0.538 GB, free: 70.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.323e-05/1.665, allocations: 55.77 kB / 0.5381 GB, free: 70.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=185): time 6.392e-06/1.665, allocations: 0 / 0.5381 GB, free: 70.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=233): time 0.07355/1.739, allocations: 16.16 MB / 0.5538 GB, free: 67.55 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.229e-05/1.739, allocations: 201.2 kB / 0.554 GB, free: 67.32 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007557/1.746, allocations: 3.458 MB / 0.5574 GB, free: 66.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005364/1.747, allocations: 25.7 kB / 0.5574 GB, free: 66.93 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002994/1.75, allocations: 3.522 MB / 0.5609 GB, free: 64.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001285/1.751, allocations: 0.8415 MB / 0.5617 GB, free: 64.4 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007209/1.752, allocations: 0 / 0.5617 GB, free: 64.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004641/1.753, allocations: 0.5834 MB / 0.5623 GB, free: 64.08 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004841/1.757, allocations: 2.049 MB / 0.5643 GB, free: 64 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007606/1.765, allocations: 5.892 MB / 0.57 GB, free: 58.06 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007646/1.773, allocations: 3.474 MB / 0.5734 GB, free: 56.98 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001813/1.773, allocations: 43.02 kB / 0.5734 GB, free: 56.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02432/1.797, allocations: 7.863 MB / 0.5811 GB, free: 54.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/1.797, allocations: 64.81 kB / 0.5812 GB, free: 54.55 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002643/1.798, allocations: 139.3 kB / 0.5813 GB, free: 54.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005597/1.803, allocations: 1.021 MB / 0.5823 GB, free: 54.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008816/1.812, allocations: 1.476 MB / 0.5838 GB, free: 54.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01404/1.826, allocations: 6.507 MB / 0.5901 GB, free: 50.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007504/1.834, allocations: 221.5 kB / 0.5903 GB, free: 50.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001781/1.836, allocations: 390.8 kB / 0.5907 GB, free: 50.59 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (801): * Single equations (assignments): 797 * 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 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002561/1.838, allocations: 457.9 kB / 0.5911 GB, free: 50.22 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01253/1.851, allocations: 3.727 MB / 0.5948 GB, free: 48.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/1.852, allocations: 387.6 kB / 0.5951 GB, free: 48.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01166/1.864, allocations: 3.438 MB / 0.5985 GB, free: 47.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.217e-05/1.864, allocations: 25.06 kB / 0.5985 GB, free: 47.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/1.864, allocations: 11.22 kB / 0.5985 GB, free: 47.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.154e-05/1.864, allocations: 14.81 kB / 0.5985 GB, free: 47.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02793/1.892, allocations: 8.938 MB / 0.6073 GB, free: 40.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.523e-05/1.892, allocations: 8.719 kB / 0.6073 GB, free: 40.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003307/1.896, allocations: 370.2 kB / 0.6076 GB, free: 40.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004924/1.901, allocations: 0.7853 MB / 0.6084 GB, free: 39.67 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004997/1.901, allocations: 15.56 kB / 0.6084 GB, free: 39.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01124/1.912, allocations: 5.243 MB / 0.6135 GB, free: 34.98 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/1.912, allocations: 14.33 kB / 0.6136 GB, free: 34.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01608/1.929, allocations: 6.896 MB / 0.6203 GB, free: 28.61 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002655/1.931, allocations: 0.691 MB / 0.621 GB, free: 27.94 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001426/1.933, allocations: 11.19 kB / 0.621 GB, free: 27.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003622/1.936, allocations: 65.83 kB / 0.621 GB, free: 27.89 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008039/1.937, allocations: 152.1 kB / 0.6212 GB, free: 27.8 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002673/1.938, allocations: 64.62 kB / 0.6212 GB, free: 27.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005993/1.944, allocations: 2.34 MB / 0.6235 GB, free: 25.69 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.22e-07/1.944, allocations: 0 / 0.6235 GB, free: 25.69 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.008585/1.952, allocations: 1.02 MB / 0.6245 GB, free: 24.69 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (185): * Single equations (assignments): 181 * 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 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01741/1.97, allocations: 8.985 MB / 0.6333 GB, free: 16.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01111/1.981, allocations: 5.075 MB / 0.6383 GB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/1.981, allocations: 0 / 0.6383 GB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003808/1.985, allocations: 1.736 MB / 0.6399 GB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004607/1.989, allocations: 445.1 kB / 0.6404 GB, free: 9.727 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0368/2.026, allocations: 11.06 MB / 0.6512 GB, free: 76 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01053/2.037, allocations: 3.979 MB / 0.6551 GB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006798/2.044, allocations: 2.338 MB / 0.6573 GB, free: 10.9 MB / 362.7 MB Notification: Performance of SimCode: time 1.572e-06/2.044, allocations: 0 / 0.6573 GB, free: 10.9 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.988/7.031, allocations: 115.5 MB / 0.7702 GB, free: 11.25 MB / 362.7 MB