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.943/1.943, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.339e-05/3.356e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1019, allocations: 44.49 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5031/0.605, allocations: 97.71 MB / 397.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002967/0.6054, allocations: 90.72 kB / 397.8 MB, free: 12.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4545/1.06, allocations: 110.4 MB / 0.4962 GB, free: 8.457 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.06, allocations: 0 / 0.4962 GB, free: 8.457 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004251/1.06, allocations: 108 kB / 0.4963 GB, free: 8.352 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.02245/1.083, allocations: 4.913 MB / 0.5011 GB, free: 3.371 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.961e-05/1.083, allocations: 12.03 kB / 0.5011 GB, free: 3.359 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005247/1.088, allocations: 1.036 MB / 0.5021 GB, free: 2.312 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05309/1.141, allocations: 6.9 MB / 0.5089 GB, free: 11.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02755/1.169, allocations: 6.753 MB / 0.5155 GB, free: 4.582 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006551/1.17, allocations: 394.2 kB / 0.5159 GB, free: 4.195 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003016/1.173, allocations: 0.5231 MB / 0.5164 GB, free: 3.672 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3317/1.505, allocations: 12.48 MB / 0.5286 GB, free: 75.99 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003872/1.505, allocations: 59.72 kB / 0.5286 GB, free: 75.99 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00222/1.507, allocations: 244.7 kB / 0.5288 GB, free: 75.99 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002737/1.51, allocations: 1.043 MB / 0.5299 GB, free: 75.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03468/1.545, allocations: 10.2 MB / 0.5398 GB, free: 75.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08108/1.626, allocations: 50.13 MB / 0.5888 GB, free: 46.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02099/1.647, allocations: 4.745 MB / 0.5934 GB, free: 44.69 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003848/1.651, allocations: 1.877 MB / 0.5952 GB, free: 43.89 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01662/1.668, allocations: 7.047 MB / 0.6021 GB, free: 40.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.777e-05/1.668, allocations: 54.31 kB / 0.6022 GB, free: 39.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=179): time 5.911e-06/1.668, allocations: 3.812 kB / 0.6022 GB, free: 39.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.1018/1.77, allocations: 17.09 MB / 0.6189 GB, free: 35.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.993e-05/1.77, allocations: 209.4 kB / 0.6191 GB, free: 35.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01041/1.78, allocations: 3.872 MB / 0.6228 GB, free: 33.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005606/1.781, allocations: 57.64 kB / 0.6229 GB, free: 33.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003366/1.784, allocations: 3.446 MB / 0.6263 GB, free: 30.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00141/1.786, allocations: 0.8381 MB / 0.6271 GB, free: 30.29 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009095/1.787, allocations: 125.9 kB / 0.6272 GB, free: 30.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005929/1.787, allocations: 0.5826 MB / 0.6278 GB, free: 29.75 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005655/1.793, allocations: 2.107 MB / 0.6298 GB, free: 29.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007603/1.8, allocations: 5.802 MB / 0.6355 GB, free: 22.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007638/1.808, allocations: 3.508 MB / 0.6389 GB, free: 19.84 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001384/1.808, allocations: 36 kB / 0.639 GB, free: 19.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=832) (initialization): time 0.02393/1.832, allocations: 8.132 MB / 0.6469 GB, free: 12.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.859e-05/1.832, allocations: 60.97 kB / 0.647 GB, free: 12.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/1.833, allocations: 132 kB / 0.6471 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005539/1.838, allocations: 1.033 MB / 0.6481 GB, free: 11.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008911/1.847, allocations: 1.413 MB / 0.6495 GB, free: 10.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01445/1.862, allocations: 6.871 MB / 0.6562 GB, free: 4.438 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007359/1.869, allocations: 328 kB / 0.6565 GB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001447/1.871, allocations: 388.2 kB / 0.6569 GB, free: 3.773 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.001441/1.872, allocations: 0.5864 MB / 0.6574 GB, free: 3.184 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00108/1.873, allocations: 402.8 kB / 0.6578 GB, free: 2.785 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/1.885, allocations: 3.62 MB / 0.6614 GB, free: 15.84 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.862e-05/1.885, allocations: 26 kB / 0.6614 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.09e-05/1.885, allocations: 8 kB / 0.6614 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.93e-05/1.885, allocations: 10.03 kB / 0.6614 GB, free: 15.81 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03351/1.918, allocations: 9.816 MB / 0.671 GB, free: 7.719 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.085e-05/1.919, allocations: 8 kB / 0.671 GB, free: 7.711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003472/1.922, allocations: 355.3 kB / 0.6713 GB, free: 7.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005138/1.927, allocations: 0.7886 MB / 0.6721 GB, free: 6.883 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004459/1.928, allocations: 43.47 kB / 0.6721 GB, free: 6.844 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01347/1.941, allocations: 5.587 MB / 0.6776 GB, free: 1.848 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-05/1.941, allocations: 16 kB / 0.6776 GB, free: 1.832 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3239/2.265, allocations: 7.196 MB / 0.6846 GB, free: 85.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002902/2.268, allocations: 0.7047 MB / 0.6853 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001365/2.27, allocations: 46.38 kB / 0.6854 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003618/2.273, allocations: 102 kB / 0.6855 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006335/2.274, allocations: 144.5 kB / 0.6856 GB, free: 85.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002441/2.274, allocations: 63.45 kB / 0.6857 GB, free: 85.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008471/2.283, allocations: 2.715 MB / 0.6883 GB, free: 84.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.082e-06/2.283, allocations: 0 / 0.6883 GB, free: 84.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009221/2.292, allocations: 1.177 MB / 0.6895 GB, free: 84.86 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.0194/2.311, allocations: 8.903 MB / 0.6982 GB, free: 81.71 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01228/2.324, allocations: 5.102 MB / 0.7031 GB, free: 81.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.414e-05/2.324, allocations: 0 / 0.7031 GB, free: 81.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004045/2.328, allocations: 1.726 MB / 0.7048 GB, free: 81.44 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004787/2.333, allocations: 0.5083 MB / 0.7053 GB, free: 81.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03651/2.369, allocations: 11.25 MB / 0.7163 GB, free: 79.35 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008904/2.378, allocations: 3.982 MB / 0.7202 GB, free: 78.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005581/2.384, allocations: 2.366 MB / 0.7225 GB, free: 78.53 MB / 426.7 MB Notification: Performance of SimCode: time 1.613e-06/2.384, allocations: 0 / 0.7225 GB, free: 78.53 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.865/7.249, allocations: 116.5 MB / 0.8363 GB, free: 66.54 MB / 426.7 MB