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.989/1.989, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.613e-05/2.624e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.3187, allocations: 44.49 MB / 294.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1776/0.4963, allocations: 97.04 MB / 391.2 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003314/0.4967, allocations: 95.92 kB / 391.3 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6766/1.173, allocations: 107.9 MB / 499.3 MB, free: 50.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.404e-06/1.173, allocations: 0 / 499.3 MB, free: 50.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000447/1.174, allocations: 108 kB / 499.4 MB, free: 50.72 MB / 362.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.02438/1.198, allocations: 4.918 MB / 0.4925 GB, free: 45.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.185e-05/1.198, allocations: 8.031 kB / 0.4925 GB, free: 45.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06141/1.26, allocations: 6.908 MB / 0.4992 GB, free: 38.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02414/1.284, allocations: 6.738 MB / 0.5058 GB, free: 32.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003714/1.284, allocations: 168 kB / 0.506 GB, free: 31.84 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002639/1.287, allocations: 319.8 kB / 0.5063 GB, free: 31.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01805/1.305, allocations: 7.478 MB / 0.5136 GB, free: 24.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02672/1.332, allocations: 10.62 MB / 0.5239 GB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003418/1.332, allocations: 71.33 kB / 0.524 GB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002186/1.335, allocations: 32 kB / 0.524 GB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00232/1.337, allocations: 1.04 MB / 0.5251 GB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3813/1.718, allocations: 48.36 MB / 0.5723 GB, free: 61.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0065/1.725, allocations: 3.146 MB / 0.5754 GB, free: 61.19 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004101/1.729, allocations: 1.792 MB / 0.5771 GB, free: 61.15 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001889/1.731, allocations: 1.213 MB / 0.5783 GB, free: 60.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.844e-05/1.731, allocations: 49.66 kB / 0.5783 GB, free: 60.08 MB / 394.7 MB Notification: Performance of pre-optimization done (n=185): time 6.191e-06/1.731, allocations: 0 / 0.5783 GB, free: 60.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=233): time 0.07232/1.803, allocations: 16.15 MB / 0.5941 GB, free: 57.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.809e-05/1.804, allocations: 201.6 kB / 0.5943 GB, free: 57.21 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008374/1.812, allocations: 3.457 MB / 0.5977 GB, free: 56.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005663/1.813, allocations: 28.89 kB / 0.5977 GB, free: 56.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003213/1.816, allocations: 3.523 MB / 0.6011 GB, free: 54.8 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001406/1.817, allocations: 0.8369 MB / 0.602 GB, free: 54.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008477/1.818, allocations: 3.281 kB / 0.602 GB, free: 54.3 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0006263/1.819, allocations: 0.5916 MB / 0.6025 GB, free: 53.98 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005154/1.824, allocations: 2.046 MB / 0.6045 GB, free: 53.96 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007967/1.832, allocations: 5.886 MB / 0.6103 GB, free: 48.99 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007874/1.84, allocations: 3.479 MB / 0.6137 GB, free: 48.75 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001697/1.84, allocations: 42.22 kB / 0.6137 GB, free: 48.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02385/1.864, allocations: 7.863 MB / 0.6214 GB, free: 46.58 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00014/1.864, allocations: 64.12 kB / 0.6215 GB, free: 46.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002256/1.865, allocations: 138.8 kB / 0.6216 GB, free: 46.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005749/1.87, allocations: 1.028 MB / 0.6226 GB, free: 46.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009196/1.88, allocations: 1.472 MB / 0.624 GB, free: 46.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01378/1.893, allocations: 6.517 MB / 0.6304 GB, free: 42.72 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007371/1.901, allocations: 211.1 kB / 0.6306 GB, free: 42.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001642/1.902, allocations: 391.8 kB / 0.631 GB, free: 42.64 MB / 394.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.00227/1.905, allocations: 460.7 kB / 0.6314 GB, free: 42.27 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01186/1.917, allocations: 3.736 MB / 0.6351 GB, free: 40.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001356/1.918, allocations: 386.4 kB / 0.6354 GB, free: 39.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/1.93, allocations: 3.435 MB / 0.6388 GB, free: 36.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.58e-05/1.93, allocations: 24 kB / 0.6388 GB, free: 36.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.301e-05/1.93, allocations: 13.53 kB / 0.6388 GB, free: 36.9 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.344e-05/1.93, allocations: 9.984 kB / 0.6388 GB, free: 36.9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02844/1.958, allocations: 8.936 MB / 0.6476 GB, free: 29.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.285e-05/1.958, allocations: 8 kB / 0.6476 GB, free: 29.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003302/1.962, allocations: 366.6 kB / 0.6479 GB, free: 29.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004881/1.967, allocations: 0.7863 MB / 0.6487 GB, free: 28.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004324/1.967, allocations: 8 kB / 0.6487 GB, free: 28.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01076/1.978, allocations: 5.242 MB / 0.6538 GB, free: 24.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.24e-05/1.978, allocations: 11.09 kB / 0.6538 GB, free: 24.06 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01587/1.994, allocations: 6.894 MB / 0.6606 GB, free: 17.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002621/1.997, allocations: 0.6909 MB / 0.6612 GB, free: 17.06 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001192/1.998, allocations: 11.42 kB / 0.6612 GB, free: 17.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003367/2.001, allocations: 66.02 kB / 0.6613 GB, free: 17.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006818/2.002, allocations: 164.3 kB / 0.6615 GB, free: 16.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002214/2.002, allocations: 64.94 kB / 0.6615 GB, free: 16.85 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005674/2.008, allocations: 2.332 MB / 0.6638 GB, free: 14.81 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.122e-06/2.008, allocations: 4 kB / 0.6638 GB, free: 14.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008777/2.017, allocations: 1.018 MB / 0.6648 GB, free: 13.8 MB / 394.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.01694/2.034, allocations: 8.967 MB / 0.6736 GB, free: 5.461 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0113/2.045, allocations: 5.084 MB / 0.6785 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.318e-05/2.045, allocations: 0 / 0.6785 GB, free: 0.8203 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006507/2.052, allocations: 1.864 MB / 0.6803 GB, free: 15.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004614/2.056, allocations: 444.3 kB / 0.6808 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04108/2.098, allocations: 11.07 MB / 0.6916 GB, free: 5.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01056/2.108, allocations: 3.977 MB / 0.6955 GB, free: 2.598 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007056/2.115, allocations: 2.341 MB / 0.6977 GB, free: 432 kB / 410.7 MB Notification: Performance of SimCode: time 2.023e-06/2.115, allocations: 0 / 0.6977 GB, free: 432 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.692/6.808, allocations: 115.6 MB / 0.8106 GB, free: 82.73 MB / 442.7 MB