Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.455e-05/3.469e-05, allocations: 8 kB / 255.4 MB, free: 3.109 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 44.51 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.454/0.5557, allocations: 97.69 MB / 397.6 MB, free: 12.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.556, allocations: 85.83 kB / 397.7 MB, free: 12.64 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4699/1.026, allocations: 110.4 MB / 0.4962 GB, free: 8.535 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.903e-06/1.026, allocations: 192 / 0.4962 GB, free: 8.535 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004054/1.026, allocations: 111.9 kB / 0.4963 GB, free: 8.426 MB / 394.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.02128/1.048, allocations: 4.913 MB / 0.5011 GB, free: 3.445 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.495e-05/1.048, allocations: 15.97 kB / 0.5011 GB, free: 3.43 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005006/1.053, allocations: 1.032 MB / 0.5021 GB, free: 2.387 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05332/1.106, allocations: 6.9 MB / 0.5089 GB, free: 11.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02717/1.133, allocations: 6.749 MB / 0.5154 GB, free: 4.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005989/1.134, allocations: 390.3 kB / 0.5158 GB, free: 4.277 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002967/1.137, allocations: 0.5192 MB / 0.5163 GB, free: 3.758 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3246/1.462, allocations: 12.54 MB / 0.5286 GB, free: 76.04 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003193/1.462, allocations: 61.86 kB / 0.5286 GB, free: 76.04 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001609/1.464, allocations: 242.8 kB / 0.5289 GB, free: 76.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002732/1.466, allocations: 1.046 MB / 0.5299 GB, free: 76.03 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03514/1.502, allocations: 10.37 MB / 0.54 GB, free: 75.98 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08057/1.582, allocations: 50.12 MB / 0.589 GB, free: 46.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02161/1.604, allocations: 4.77 MB / 0.5936 GB, free: 44.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004035/1.608, allocations: 1.88 MB / 0.5955 GB, free: 43.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01831/1.626, allocations: 7.045 MB / 0.6023 GB, free: 40.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.091e-05/1.627, allocations: 54.69 kB / 0.6024 GB, free: 40.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 5.52e-06/1.627, allocations: 0 / 0.6024 GB, free: 40.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.1047/1.731, allocations: 17.1 MB / 0.6191 GB, free: 35.27 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.808e-05/1.731, allocations: 204 kB / 0.6193 GB, free: 35.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01059/1.742, allocations: 3.869 MB / 0.6231 GB, free: 33.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005738/1.743, allocations: 58.92 kB / 0.6231 GB, free: 33.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003422/1.746, allocations: 3.449 MB / 0.6265 GB, free: 30.92 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001427/1.748, allocations: 0.8464 MB / 0.6273 GB, free: 30.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009/1.748, allocations: 125.6 kB / 0.6274 GB, free: 30.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005447/1.749, allocations: 0.5771 MB / 0.628 GB, free: 29.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005711/1.755, allocations: 2.11 MB / 0.6301 GB, free: 29.04 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00851/1.763, allocations: 5.836 MB / 0.6358 GB, free: 22.75 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0081/1.771, allocations: 3.509 MB / 0.6392 GB, free: 19.78 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001292/1.772, allocations: 36 kB / 0.6392 GB, free: 19.74 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02545/1.797, allocations: 8.498 MB / 0.6475 GB, free: 12.35 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/1.797, allocations: 64 kB / 0.6476 GB, free: 12.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000191/1.797, allocations: 132.7 kB / 0.6477 GB, free: 12.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005582/1.803, allocations: 1.028 MB / 0.6487 GB, free: 11.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008974/1.812, allocations: 1.418 MB / 0.6501 GB, free: 10.13 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01486/1.827, allocations: 6.865 MB / 0.6568 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007603/1.835, allocations: 331.7 kB / 0.6571 GB, free: 3.715 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001603/1.836, allocations: 381.8 kB / 0.6575 GB, free: 3.348 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 600 * 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 (768): * Single equations (assignments): 764 * 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.002233/1.839, allocations: 0.6 MB / 0.6581 GB, free: 2.75 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/1.84, allocations: 398.8 kB / 0.6584 GB, free: 2.355 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01279/1.853, allocations: 3.613 MB / 0.662 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001003/1.853, allocations: 24 kB / 0.662 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.727e-05/1.853, allocations: 4 kB / 0.662 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-05/1.853, allocations: 22.23 kB / 0.662 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03545/1.888, allocations: 9.829 MB / 0.6716 GB, free: 7.254 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.535e-05/1.888, allocations: 7.656 kB / 0.6716 GB, free: 7.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003479/1.892, allocations: 350.3 kB / 0.672 GB, free: 6.969 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005257/1.897, allocations: 0.7944 MB / 0.6727 GB, free: 6.418 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004649/1.898, allocations: 40 kB / 0.6728 GB, free: 6.379 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01367/1.911, allocations: 5.583 MB / 0.6782 GB, free: 1.383 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/1.911, allocations: 8 kB / 0.6782 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3225/2.234, allocations: 6.934 MB / 0.685 GB, free: 84.96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002952/2.237, allocations: 0.7098 MB / 0.6857 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001446/2.238, allocations: 43.58 kB / 0.6857 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004005/2.243, allocations: 97.66 kB / 0.6858 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008626/2.243, allocations: 147.8 kB / 0.686 GB, free: 84.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002535/2.244, allocations: 64.27 kB / 0.686 GB, free: 84.87 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008836/2.253, allocations: 2.719 MB / 0.6887 GB, free: 84.66 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.605e-06/2.253, allocations: 0 / 0.6887 GB, free: 84.66 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008745/2.261, allocations: 1.178 MB / 0.6898 GB, free: 84.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * 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 (176): * Single equations (assignments): 172 * 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.01898/2.28, allocations: 8.893 MB / 0.6985 GB, free: 81.52 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01258/2.293, allocations: 5.314 MB / 0.7037 GB, free: 81.35 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.421e-05/2.293, allocations: 0 / 0.7037 GB, free: 81.35 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004203/2.297, allocations: 1.749 MB / 0.7054 GB, free: 81.22 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004853/2.302, allocations: 0.5163 MB / 0.7059 GB, free: 81.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03652/2.339, allocations: 11.27 MB / 0.7169 GB, free: 79.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008964/2.348, allocations: 3.98 MB / 0.7208 GB, free: 78.32 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005716/2.354, allocations: 2.361 MB / 0.7231 GB, free: 78.31 MB / 426.7 MB Notification: Performance of SimCode: time 1.993e-06/2.354, allocations: 0 / 0.7231 GB, free: 78.31 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.844/7.197, allocations: 117.5 MB / 0.8379 GB, free: 69.09 MB / 426.7 MB