Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.069/2.069, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.583e-05/4.617e-05, allocations: 4 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1158, allocations: 50.41 MB / 342.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.6062, allocations: 109.8 MB / 452.4 MB, free: 408 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/0.6065, allocations: 85.39 kB / 452.5 MB, free: 364 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.199/1.805, allocations: 237.7 MB / 0.674 GB, free: 16.15 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.885e-06/1.805, allocations: 0 / 0.674 GB, free: 16.15 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006734/1.806, allocations: 235.9 kB / 0.6743 GB, free: 15.92 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.05525/1.861, allocations: 12.29 MB / 0.6863 GB, free: 3.531 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/1.861, allocations: 8.031 kB / 0.6863 GB, free: 3.523 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009749/1.871, allocations: 2.001 MB / 0.6882 GB, free: 1.512 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3699/2.241, allocations: 3.979 MB / 0.6921 GB, free: 43.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05786/2.299, allocations: 11.76 MB / 0.7036 GB, free: 43.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001948/2.301, allocations: 0.8932 MB / 0.7045 GB, free: 43.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009253/2.31, allocations: 1.18 MB / 0.7056 GB, free: 43.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1299/2.44, allocations: 33.39 MB / 0.7382 GB, free: 38.31 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007662/2.441, allocations: 100.3 kB / 0.7383 GB, free: 38.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006447/2.448, allocations: 0.5359 MB / 0.7388 GB, free: 38.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005733/2.453, allocations: 2.583 MB / 0.7414 GB, free: 38.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1076/2.561, allocations: 30.23 MB / 0.7709 GB, free: 32.94 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6354/3.196, allocations: 120.5 MB / 0.8885 GB, free: 29.57 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08753/3.284, allocations: 17.22 MB / 0.9053 GB, free: 28.88 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01688/3.301, allocations: 8.719 MB / 0.9139 GB, free: 28.84 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06847/3.369, allocations: 31.05 MB / 0.9442 GB, free: 21.17 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.233e-05/3.37, allocations: 85.94 kB / 0.9443 GB, free: 21.12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=489): time 9.177e-06/3.37, allocations: 0 / 0.9443 GB, free: 21.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=726): time 0.8223/4.192, allocations: 123.1 MB / 1.064 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000159/4.192, allocations: 201.8 kB / 1.065 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01913/4.211, allocations: 6.89 MB / 1.071 GB, free: 5.508 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.002503/4.214, allocations: 140.4 kB / 1.072 GB, free: 5.367 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.3629/4.577, allocations: 6.83 MB / 1.078 GB, free: 140.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.005538/4.582, allocations: 2.581 MB / 1.081 GB, free: 139.4 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003548/4.586, allocations: 290.9 kB / 1.081 GB, free: 139.4 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.002047/4.588, allocations: 0.9162 MB / 1.082 GB, free: 139 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02863/4.617, allocations: 10.09 MB / 1.092 GB, free: 139 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03216/4.649, allocations: 16.64 MB / 1.108 GB, free: 130.8 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02939/4.678, allocations: 12.88 MB / 1.121 GB, free: 130.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002684/4.679, allocations: 65.44 kB / 1.121 GB, free: 130.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1878) (initialization): time 0.06956/4.748, allocations: 26.39 MB / 1.146 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002015/4.749, allocations: 105.2 kB / 1.147 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003281/4.749, allocations: 224.1 kB / 1.147 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004569/4.749, allocations: 351.3 kB / 1.147 GB, free: 124.7 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0368/4.786, allocations: 4.266 MB / 1.151 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005343/4.787, allocations: 460.7 kB / 1.152 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02239/4.809, allocations: 1.226 MB / 1.153 GB, free: 124 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004241/4.813, allocations: 0.7449 MB / 1.154 GB, free: 123.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1034 * Number of states: 0 () * Number of discrete variables: 102 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1848): * Single equations (assignments): 1842 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007102/4.821, allocations: 1.139 MB / 1.155 GB, free: 122.9 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003183/4.824, allocations: 0.7923 MB / 1.155 GB, free: 122.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04973/4.874, allocations: 19.38 MB / 1.174 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001059/4.874, allocations: 79.17 kB / 1.174 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.219e-05/4.874, allocations: 7.953 kB / 1.174 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001523/4.874, allocations: 33.33 kB / 1.175 GB, free: 113.7 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1118/4.986, allocations: 42.32 MB / 1.216 GB, free: 89.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.113e-05/4.986, allocations: 6.719 kB / 1.216 GB, free: 89.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02523/5.011, allocations: 2.155 MB / 1.218 GB, free: 88.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001214/5.011, allocations: 28 kB / 1.218 GB, free: 88.38 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002246/5.013, allocations: 131.4 kB / 1.218 GB, free: 88.26 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.464e-05/5.014, allocations: 28 kB / 1.218 GB, free: 88.23 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/5.014, allocations: 10.67 kB / 1.218 GB, free: 88.22 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06858/5.082, allocations: 33.61 MB / 1.251 GB, free: 57.25 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01006/5.092, allocations: 2.705 MB / 1.254 GB, free: 54.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004351/5.097, allocations: 119.9 kB / 1.254 GB, free: 54.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01492/5.112, allocations: 0.7626 MB / 1.254 GB, free: 54.24 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003184/5.115, allocations: 395.5 kB / 1.255 GB, free: 53.99 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002168/5.117, allocations: 182 kB / 1.255 GB, free: 53.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01242/5.13, allocations: 4.762 MB / 1.26 GB, free: 49.6 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.202e-06/5.13, allocations: 0 / 1.26 GB, free: 49.6 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02067/5.15, allocations: 3.164 MB / 1.263 GB, free: 46.46 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (710): * Single equations (assignments): 707 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4639/5.614, allocations: 37.25 MB / 1.299 GB, free: 129.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.06123/5.676, allocations: 22.57 MB / 1.321 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.375e-05/5.676, allocations: 0 / 1.321 GB, free: 128.5 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02823/5.704, allocations: 9.685 MB / 1.331 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0265/5.73, allocations: 0.8562 MB / 1.331 GB, free: 123.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1441/5.875, allocations: 34 MB / 1.365 GB, free: 110.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03213/5.907, allocations: 8.27 MB / 1.373 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03074/5.938, allocations: 5.681 MB / 1.378 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of SimCode: time 2.425e-06/5.938, allocations: 0 / 1.378 GB, free: 103.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.44/13.38, allocations: 252 MB / 1.624 GB, free: 37.97 MB / 0.5417 GB