Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.762/1.762, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.429e-05/2.438e-05, allocations: 4 kB / 219.6 MB, free: 7.32 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2607, allocations: 38.76 MB / 258.3 MB, free: 12.16 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1682/0.429, allocations: 95.27 MB / 353.6 MB, free: 14.59 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003202/0.4293, allocations: 87.94 kB / 353.7 MB, free: 14.51 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.319/1.748, allocations: 228.6 MB / 0.5686 GB, free: 18.84 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.505e-06/1.748, allocations: 4 kB / 0.5686 GB, free: 18.84 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0006775/1.749, allocations: 230.7 kB / 0.5688 GB, free: 18.62 MB / 330.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.0563/1.805, allocations: 12.28 MB / 0.5808 GB, free: 6.266 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/1.805, allocations: 8.031 kB / 0.5808 GB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03362/1.839, allocations: 3.998 MB / 0.5847 GB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04978/1.889, allocations: 12.17 MB / 0.5966 GB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008618/1.89, allocations: 392 kB / 0.597 GB, free: 5.738 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007114/1.897, allocations: 0.695 MB / 0.5976 GB, free: 5.043 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.6072/2.504, allocations: 21.49 MB / 0.6186 GB, free: 40.57 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0741/2.578, allocations: 26.42 MB / 0.6444 GB, free: 35.84 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007133/2.579, allocations: 100.4 kB / 0.6445 GB, free: 35.84 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006126/2.585, allocations: 56.94 kB / 0.6446 GB, free: 35.84 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005811/2.591, allocations: 2.58 MB / 0.6471 GB, free: 35.82 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2191/2.81, allocations: 116.8 MB / 0.7612 GB, free: 12.84 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02322/2.833, allocations: 10.5 MB / 0.7714 GB, free: 3.051 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3217/3.155, allocations: 9.354 MB / 0.7806 GB, free: 89.42 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06708/3.222, allocations: 30.88 MB / 0.8107 GB, free: 81.44 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.802e-05/3.222, allocations: 93.36 kB / 0.8108 GB, free: 81.39 MB / 410.8 MB Notification: Performance of pre-optimization done (n=483): time 9.257e-06/3.222, allocations: 0 / 0.8108 GB, free: 81.39 MB / 410.8 MB Notification: Performance of matching and sorting (n=708): time 0.8338/4.056, allocations: 115.2 MB / 0.9233 GB, free: 83.08 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/4.056, allocations: 200.7 kB / 0.9235 GB, free: 82.92 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01692/4.073, allocations: 6.085 MB / 0.9294 GB, free: 82.57 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002703/4.076, allocations: 29.48 kB / 0.9295 GB, free: 82.54 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006296/4.082, allocations: 7.025 MB / 0.9363 GB, free: 79.55 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005311/4.088, allocations: 2.427 MB / 0.9387 GB, free: 78.03 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004051/4.092, allocations: 0 / 0.9387 GB, free: 78.03 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.002059/4.094, allocations: 0.9166 MB / 0.9396 GB, free: 77.68 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02313/4.117, allocations: 9.7 MB / 0.9491 GB, free: 77.65 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02833/4.146, allocations: 16.54 MB / 0.9652 GB, free: 69 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03606/4.182, allocations: 12.92 MB / 0.9778 GB, free: 65.05 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000392/4.182, allocations: 67.38 kB / 0.9779 GB, free: 65.05 MB / 410.8 MB Notification: Performance of matching and sorting (n=1887) (initialization): time 0.07651/4.259, allocations: 25.61 MB / 1.003 GB, free: 55.37 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000225/4.259, allocations: 105.8 kB / 1.003 GB, free: 55.37 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000417/4.259, allocations: 240.2 kB / 1.003 GB, free: 55.37 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004519/4.26, allocations: 365.6 kB / 1.004 GB, free: 55.36 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03661/4.296, allocations: 4.302 MB / 1.008 GB, free: 54.97 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004923/4.297, allocations: 484.6 kB / 1.008 GB, free: 54.87 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02206/4.319, allocations: 0.9524 MB / 1.009 GB, free: 54.84 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004563/4.324, allocations: 0.7596 MB / 1.01 GB, free: 54.72 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1086 * 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 (1857): * Single equations (assignments): 1851 * 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.007412/4.331, allocations: 0.7694 MB / 1.011 GB, free: 54.1 MB / 410.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04214/4.373, allocations: 17.33 MB / 1.028 GB, free: 41.76 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004422/4.378, allocations: 0.7444 MB / 1.028 GB, free: 41 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05017/4.428, allocations: 18.51 MB / 1.046 GB, free: 24.92 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001032/4.428, allocations: 72.53 kB / 1.046 GB, free: 24.86 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.098e-05/4.428, allocations: 0 / 1.046 GB, free: 24.86 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001658/4.428, allocations: 44 kB / 1.047 GB, free: 24.85 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4111/4.84, allocations: 38.71 MB / 1.084 GB, free: 74.39 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-05/4.84, allocations: 6.359 kB / 1.084 GB, free: 74.39 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02466/4.864, allocations: 2.112 MB / 1.086 GB, free: 74.39 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001201/4.864, allocations: 23.25 kB / 1.086 GB, free: 74.39 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002152/4.867, allocations: 20.31 kB / 1.086 GB, free: 74.39 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-05/4.867, allocations: 25.06 kB / 1.086 GB, free: 74.39 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/4.867, allocations: 3.375 kB / 1.086 GB, free: 74.39 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06654/4.933, allocations: 31.9 MB / 1.118 GB, free: 66.14 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009928/4.943, allocations: 2.624 MB / 1.12 GB, free: 65.1 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004581/4.948, allocations: 5.766 kB / 1.12 GB, free: 65.1 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01401/4.962, allocations: 0.6521 MB / 1.121 GB, free: 65.1 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003047/4.965, allocations: 362.9 kB / 1.121 GB, free: 65.05 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00176/4.967, allocations: 173.3 kB / 1.121 GB, free: 65 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.01084/4.978, allocations: 4.047 MB / 1.125 GB, free: 63.52 MB / 410.8 MB Notification: Performance of sort global known variables: time 6.71e-07/4.978, allocations: 0 / 1.125 GB, free: 63.52 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.0207/4.999, allocations: 2.748 MB / 1.128 GB, free: 63.52 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (692): * Single equations (assignments): 689 * 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.07167/5.07, allocations: 32.89 MB / 1.16 GB, free: 42.95 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.04853/5.119, allocations: 22.06 MB / 1.182 GB, free: 23.18 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 1.43e-05/5.119, allocations: 3.266 kB / 1.182 GB, free: 23.18 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02042/5.139, allocations: 9.52 MB / 1.191 GB, free: 14.42 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007972/5.147, allocations: 0.6418 MB / 1.192 GB, free: 13.88 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4581/5.605, allocations: 34.18 MB / 1.225 GB, free: 94.36 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.05467/5.66, allocations: 8.236 MB / 1.233 GB, free: 93.37 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02301/5.683, allocations: 5.674 MB / 1.238 GB, free: 93.36 MB / 426.8 MB Notification: Performance of SimCode: time 2.545e-06/5.683, allocations: 2.375 kB / 1.238 GB, free: 93.36 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.011/12.69, allocations: 248.1 MB / 1.481 GB, free: 22.54 MB / 426.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat