Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.923/1.923, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.254e-05, allocations: 4 kB / 255.4 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0976/0.09767, allocations: 44.5 MB / 299.9 MB, free: 6.531 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4762/0.5739, allocations: 101.7 MB / 401.6 MB, free: 11.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002669/0.5742, allocations: 87.2 kB / 401.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.187/1.761, allocations: 234 MB / 0.6207 GB, free: 54.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.762, allocations: 3.938 kB / 0.6208 GB, free: 54.73 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007385/1.762, allocations: 230.9 kB / 0.621 GB, free: 54.73 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.05833/1.821, allocations: 12.29 MB / 0.633 GB, free: 42.57 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.501e-05/1.821, allocations: 16.03 kB / 0.633 GB, free: 42.56 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01105/1.832, allocations: 1.995 MB / 0.6349 GB, free: 40.61 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03442/1.866, allocations: 3.978 MB / 0.6388 GB, free: 36.61 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0466/1.913, allocations: 12.18 MB / 0.6507 GB, free: 24.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001114/1.914, allocations: 0.89 MB / 0.6516 GB, free: 23.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007192/1.921, allocations: 1.192 MB / 0.6528 GB, free: 22.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7381/2.659, allocations: 33.51 MB / 0.6855 GB, free: 37.78 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001045/2.661, allocations: 96.16 kB / 0.6856 GB, free: 37.78 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007203/2.668, allocations: 0.5376 MB / 0.6861 GB, free: 37.78 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006709/2.675, allocations: 2.579 MB / 0.6886 GB, free: 37.76 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1095/2.784, allocations: 30.6 MB / 0.7185 GB, free: 37.68 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2395/3.024, allocations: 120.4 MB / 0.836 GB, free: 7.449 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.491/3.515, allocations: 18.9 MB / 0.8545 GB, free: 93.27 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01978/3.535, allocations: 8.725 MB / 0.863 GB, free: 93.22 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07248/3.607, allocations: 31.09 MB / 0.8934 GB, free: 85.54 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.499e-05/3.607, allocations: 87.7 kB / 0.8935 GB, free: 85.5 MB / 458.8 MB Notification: Performance of pre-optimization done (n=489): time 9.938e-06/3.607, allocations: 0 / 0.8935 GB, free: 85.5 MB / 458.8 MB Notification: Performance of matching and sorting (n=726): time 1.089/4.696, allocations: 122.2 MB / 1.013 GB, free: 86.08 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001761/4.696, allocations: 207.6 kB / 1.013 GB, free: 85.91 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02153/4.718, allocations: 6.905 MB / 1.02 GB, free: 85.48 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002585/4.721, allocations: 142 kB / 1.02 GB, free: 85.45 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00695/4.728, allocations: 6.832 MB / 1.027 GB, free: 82.77 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005284/4.733, allocations: 2.574 MB / 1.029 GB, free: 81.21 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003774/4.737, allocations: 291.1 kB / 1.029 GB, free: 81.21 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001541/4.738, allocations: 0.9168 MB / 1.03 GB, free: 80.87 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0245/4.763, allocations: 10.08 MB / 1.04 GB, free: 80.84 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03084/4.794, allocations: 16.7 MB / 1.056 GB, free: 72.58 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03288/4.827, allocations: 12.87 MB / 1.069 GB, free: 69.56 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003404/4.827, allocations: 64.62 kB / 1.069 GB, free: 69.56 MB / 458.8 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.0735/4.901, allocations: 26.98 MB / 1.095 GB, free: 59.09 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002025/4.901, allocations: 106.6 kB / 1.095 GB, free: 59.08 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003544/4.901, allocations: 227.1 kB / 1.096 GB, free: 59.08 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004693/4.902, allocations: 351 kB / 1.096 GB, free: 59.08 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03743/4.939, allocations: 4.261 MB / 1.1 GB, free: 58.7 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005831/4.94, allocations: 462.5 kB / 1.101 GB, free: 58.61 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02277/4.963, allocations: 1.221 MB / 1.102 GB, free: 58.36 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004515/4.967, allocations: 0.747 MB / 1.103 GB, free: 58.24 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1031 * Number of states: 0 () * Number of discrete variables: 99 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1845): * Single equations (assignments): 1839 * 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.008074/4.975, allocations: 1.138 MB / 1.104 GB, free: 57.33 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003844/4.979, allocations: 0.7987 MB / 1.104 GB, free: 56.89 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05173/5.031, allocations: 19.39 MB / 1.123 GB, free: 48.13 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.916e-05/5.031, allocations: 69.91 kB / 1.123 GB, free: 48.13 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.591e-05/5.031, allocations: 6 kB / 1.123 GB, free: 48.13 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001868/5.031, allocations: 32.91 kB / 1.123 GB, free: 48.13 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1213/5.153, allocations: 42.32 MB / 1.165 GB, free: 13.27 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.533e-05/5.153, allocations: 10.08 kB / 1.165 GB, free: 13.26 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02639/5.179, allocations: 2.15 MB / 1.167 GB, free: 11.75 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001387/5.179, allocations: 31.84 kB / 1.167 GB, free: 11.73 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002629/5.182, allocations: 129.2 kB / 1.167 GB, free: 11.61 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000124/5.182, allocations: 35.55 kB / 1.167 GB, free: 11.57 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/5.182, allocations: 8 kB / 1.167 GB, free: 11.57 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4492/5.631, allocations: 34.79 MB / 1.201 GB, free: 77.39 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0108/5.642, allocations: 2.704 MB / 1.204 GB, free: 77.3 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004522/5.647, allocations: 123.3 kB / 1.204 GB, free: 77.3 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01546/5.662, allocations: 0.7618 MB / 1.205 GB, free: 77.3 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003367/5.666, allocations: 399.4 kB / 1.205 GB, free: 77.29 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002243/5.668, allocations: 178.1 kB / 1.205 GB, free: 77.29 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01389/5.682, allocations: 4.78 MB / 1.21 GB, free: 77 MB / 458.8 MB Notification: Performance of sort global known variables: time 9.11e-07/5.682, allocations: 5.672 kB / 1.21 GB, free: 77 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.02091/5.703, allocations: 3.164 MB / 1.213 GB, free: 77 MB / 458.8 MB 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.1063/5.809, allocations: 35.35 MB / 1.247 GB, free: 61.61 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.0585/5.868, allocations: 22.91 MB / 1.27 GB, free: 52.65 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/5.868, allocations: 3.812 kB / 1.27 GB, free: 52.65 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02239/5.89, allocations: 9.721 MB / 1.279 GB, free: 47.59 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009132/5.9, allocations: 0.8626 MB / 1.28 GB, free: 46.86 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1142/6.014, allocations: 34.05 MB / 1.313 GB, free: 17.17 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02187/6.036, allocations: 8.269 MB / 1.321 GB, free: 11.15 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02307/6.059, allocations: 5.688 MB / 1.327 GB, free: 5.855 MB / 458.8 MB Notification: Performance of SimCode: time 1.402e-06/6.059, allocations: 0 / 1.327 GB, free: 5.855 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.402/13.46, allocations: 254.4 MB / 1.575 GB, free: 90.17 MB / 490.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat