Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,fileNamePrefix="Modelica_3_2_1_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.787e-05/2.801e-05, allocations: 12 kB / 219.6 MB, free: 6.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2714, allocations: 38.76 MB / 258.3 MB, free: 12.18 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1625/0.434, allocations: 91.3 MB / 349.6 MB, free: 2.441 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.4343, allocations: 87.95 kB / 349.7 MB, free: 2.355 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.636/1.07, allocations: 108 MB / 457.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.424e-06/1.07, allocations: 0 / 457.7 MB, free: 18.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003952/1.071, allocations: 108 kB / 457.8 MB, free: 18.17 MB / 314.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.01922/1.09, allocations: 4.913 MB / 462.7 MB, free: 13.19 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/1.09, allocations: 8.031 kB / 462.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04953/1.14, allocations: 6.9 MB / 469.6 MB, free: 6.262 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02422/1.164, allocations: 6.757 MB / 476.4 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004034/1.164, allocations: 175.9 kB / 476.5 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002744/1.167, allocations: 303.9 kB / 476.8 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02138/1.189, allocations: 7.486 MB / 484.3 MB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2778/1.466, allocations: 10.63 MB / 495 MB, free: 47.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004289/1.467, allocations: 65.69 kB / 495 MB, free: 47.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002096/1.469, allocations: 31.53 kB / 495 MB, free: 47.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002676/1.472, allocations: 1.042 MB / 496.1 MB, free: 47.93 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07507/1.547, allocations: 48.35 MB / 0.5317 GB, free: 20.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006398/1.553, allocations: 3.146 MB / 0.5348 GB, free: 19.86 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005151/1.559, allocations: 1.783 MB / 0.5365 GB, free: 19.08 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002678/1.561, allocations: 1.208 MB / 0.5377 GB, free: 18.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.86e-05/1.561, allocations: 57.19 kB / 0.5377 GB, free: 17.96 MB / 330.7 MB Notification: Performance of pre-optimization done (n=185): time 8.246e-06/1.561, allocations: 0 / 0.5377 GB, free: 17.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=233): time 0.08954/1.651, allocations: 16.15 MB / 0.5535 GB, free: 12.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.429e-05/1.651, allocations: 206.5 kB / 0.5537 GB, free: 12.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00765/1.659, allocations: 3.462 MB / 0.5571 GB, free: 11.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004995/1.659, allocations: 25.7 kB / 0.5571 GB, free: 11.03 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003039/1.662, allocations: 3.607 MB / 0.5606 GB, free: 8.273 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001224/1.664, allocations: 0.8411 MB / 0.5615 GB, free: 7.648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006977/1.664, allocations: 0 / 0.5615 GB, free: 7.648 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0004447/1.665, allocations: 0.5859 MB / 0.562 GB, free: 7.223 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004477/1.669, allocations: 2.045 MB / 0.564 GB, free: 6.465 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007129/1.677, allocations: 5.889 MB / 0.5698 GB, free: 0.5156 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007721/1.684, allocations: 3.475 MB / 0.5732 GB, free: 15.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001398/1.685, allocations: 40.77 kB / 0.5732 GB, free: 15.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.02484/1.709, allocations: 7.995 MB / 0.581 GB, free: 11.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/1.71, allocations: 64 kB / 0.5811 GB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002229/1.71, allocations: 140.8 kB / 0.5812 GB, free: 11.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005581/1.715, allocations: 1.024 MB / 0.5822 GB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009399/1.725, allocations: 1.475 MB / 0.5837 GB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01572/1.741, allocations: 6.508 MB / 0.59 GB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006798/1.747, allocations: 207.2 kB / 0.5902 GB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.749, allocations: 398 kB / 0.5906 GB, free: 3.02 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.001254/1.75, allocations: 459.2 kB / 0.591 GB, free: 2.57 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01216/1.762, allocations: 3.747 MB / 0.5947 GB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001447/1.764, allocations: 383 kB / 0.595 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01203/1.776, allocations: 3.449 MB / 0.5984 GB, free: 12.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.648e-05/1.776, allocations: 24 kB / 0.5984 GB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.94e-05/1.776, allocations: 8 kB / 0.5984 GB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.065e-05/1.776, allocations: 9.938 kB / 0.5985 GB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02895/1.805, allocations: 8.945 MB / 0.6072 GB, free: 4.863 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-05/1.805, allocations: 4 kB / 0.6072 GB, free: 4.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003398/1.808, allocations: 371.2 kB / 0.6075 GB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004955/1.813, allocations: 0.792 MB / 0.6083 GB, free: 4.012 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004148/1.814, allocations: 15.66 kB / 0.6083 GB, free: 4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2645/2.078, allocations: 5.266 MB / 0.6135 GB, free: 75.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.866e-05/2.078, allocations: 10.09 kB / 0.6135 GB, free: 75.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01625/2.095, allocations: 6.899 MB / 0.6202 GB, free: 74.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002436/2.097, allocations: 0.6895 MB / 0.6209 GB, free: 74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001174/2.098, allocations: 11.56 kB / 0.6209 GB, free: 74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002905/2.101, allocations: 67.77 kB / 0.621 GB, free: 74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000517/2.102, allocations: 154.2 kB / 0.6211 GB, free: 73.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002152/2.102, allocations: 71.34 kB / 0.6212 GB, free: 73.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00526/2.107, allocations: 2.333 MB / 0.6235 GB, free: 73.81 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.064e-06/2.107, allocations: 3.344 kB / 0.6235 GB, free: 73.81 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.008136/2.116, allocations: 1.016 MB / 0.6245 GB, free: 73.81 MB / 362.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.01608/2.132, allocations: 8.975 MB / 0.6332 GB, free: 70.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01069/2.142, allocations: 5.072 MB / 0.6382 GB, free: 70.3 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/2.143, allocations: 0.875 kB / 0.6382 GB, free: 70.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003508/2.146, allocations: 1.732 MB / 0.6399 GB, free: 70.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003904/2.15, allocations: 440.4 kB / 0.6403 GB, free: 70.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03322/2.183, allocations: 10.46 MB / 0.6505 GB, free: 68.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008418/2.192, allocations: 3.99 MB / 0.6544 GB, free: 67.3 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.009462/2.201, allocations: 2.016 MB / 0.6564 GB, free: 67.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005174/2.206, allocations: 2.296 MB / 0.6586 GB, free: 65.54 MB / 362.7 MB Notification: Performance of SimCode: time 2.004e-06/2.206, allocations: 0 / 0.6586 GB, free: 65.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1998/2.406, allocations: 85.16 MB / 0.7418 GB, free: 15.02 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003485/2.407, allocations: 150.2 kB / 0.7419 GB, free: 14.83 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.732/8.139, allocations: 4 kB / 0.7419 GB, free: 14.83 MB / 378.7 MB