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.796/1.796, allocations: 171.2 MB / 183.8 MB, free: 12.02 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.04e-05/4.052e-05, allocations: 0 / 225.1 MB, free: 2.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3084/0.3085, allocations: 38.77 MB / 263.8 MB, free: 9.77 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1726/0.4812, allocations: 95.93 MB / 359.8 MB, free: 9.691 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003312/0.4816, allocations: 83.95 kB / 359.8 MB, free: 9.609 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.346/1.827, allocations: 234 MB / 0.5799 GB, free: 30.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.827, allocations: 0 / 0.5799 GB, free: 30.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007214/1.828, allocations: 234.6 kB / 0.5801 GB, free: 30.37 MB / 346.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.05671/1.885, allocations: 12.3 MB / 0.5921 GB, free: 19.45 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/1.885, allocations: 8.031 kB / 0.5922 GB, free: 19.44 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01029/1.895, allocations: 2 MB / 0.5941 GB, free: 17.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03435/1.93, allocations: 3.985 MB / 0.598 GB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04615/1.976, allocations: 12.19 MB / 0.6099 GB, free: 1.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001121/1.977, allocations: 0.8892 MB / 0.6108 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007536/1.985, allocations: 1.181 MB / 0.6119 GB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6922/2.677, allocations: 33.51 MB / 0.6446 GB, free: 28.98 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008998/2.678, allocations: 103.8 kB / 0.6447 GB, free: 28.98 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007241/2.685, allocations: 0.535 MB / 0.6453 GB, free: 28.98 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006024/2.691, allocations: 2.582 MB / 0.6478 GB, free: 28.96 MB / 362.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1247/2.816, allocations: 30.6 MB / 0.6777 GB, free: 27.17 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6126/3.428, allocations: 120.4 MB / 0.7952 GB, free: 27.79 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08895/3.517, allocations: 17.26 MB / 0.8121 GB, free: 27.09 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01889/3.536, allocations: 8.728 MB / 0.8206 GB, free: 27.04 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07306/3.61, allocations: 31.09 MB / 0.8509 GB, free: 19.17 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.34e-05/3.61, allocations: 88.64 kB / 0.851 GB, free: 19.1 MB / 410.8 MB Notification: Performance of pre-optimization done (n=489): time 8.957e-06/3.61, allocations: 0 / 0.851 GB, free: 19.1 MB / 410.8 MB Notification: Performance of matching and sorting (n=726): time 1.1/4.71, allocations: 122.2 MB / 0.9704 GB, free: 136.2 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/4.71, allocations: 200.4 kB / 0.9706 GB, free: 136 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01864/4.728, allocations: 6.916 MB / 0.9773 GB, free: 135.4 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002634/4.731, allocations: 135.9 kB / 0.9775 GB, free: 135.4 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00631/4.737, allocations: 6.829 MB / 0.9841 GB, free: 131.5 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005177/4.743, allocations: 2.582 MB / 0.9867 GB, free: 130 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003868/4.747, allocations: 291.7 kB / 0.9869 GB, free: 130 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001765/4.748, allocations: 0.9127 MB / 0.9878 GB, free: 129.6 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02607/4.775, allocations: 10.09 MB / 0.9977 GB, free: 129.6 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03114/4.806, allocations: 16.7 MB / 1.014 GB, free: 118 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03125/4.837, allocations: 12.86 MB / 1.027 GB, free: 113.1 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003085/4.838, allocations: 66.81 kB / 1.027 GB, free: 113.1 MB / 474.8 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.07523/4.913, allocations: 26.99 MB / 1.053 GB, free: 102.5 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001876/4.913, allocations: 103.5 kB / 1.053 GB, free: 102.5 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00038/4.913, allocations: 228.6 kB / 1.053 GB, free: 102.5 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004345/4.914, allocations: 350.8 kB / 1.054 GB, free: 102.5 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03775/4.952, allocations: 4.259 MB / 1.058 GB, free: 102.1 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005886/4.952, allocations: 457.2 kB / 1.058 GB, free: 102 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02303/4.975, allocations: 1.227 MB / 1.059 GB, free: 101.8 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004521/4.98, allocations: 0.7437 MB / 1.06 GB, free: 101.7 MB / 474.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.008119/4.988, allocations: 1.139 MB / 1.061 GB, free: 100.8 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004122/4.992, allocations: 0.7999 MB / 1.062 GB, free: 100.2 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05283/5.045, allocations: 19.39 MB / 1.081 GB, free: 83.34 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.4e-05/5.045, allocations: 75.61 kB / 1.081 GB, free: 83.27 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-05/5.045, allocations: 6.297 kB / 1.081 GB, free: 83.27 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001791/5.045, allocations: 35.06 kB / 1.081 GB, free: 83.27 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1141/5.159, allocations: 42.32 MB / 1.122 GB, free: 47.84 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.382e-05/5.16, allocations: 8 kB / 1.122 GB, free: 47.83 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02561/5.185, allocations: 2.151 MB / 1.125 GB, free: 46.33 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001285/5.185, allocations: 32 kB / 1.125 GB, free: 46.3 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002436/5.188, allocations: 123 kB / 1.125 GB, free: 46.18 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.655e-05/5.188, allocations: 39.22 kB / 1.125 GB, free: 46.14 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/5.188, allocations: 8 kB / 1.125 GB, free: 46.14 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4128/5.601, allocations: 34.98 MB / 1.159 GB, free: 128.6 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01055/5.611, allocations: 2.713 MB / 1.162 GB, free: 128.5 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004466/5.616, allocations: 126.1 kB / 1.162 GB, free: 128.5 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01547/5.631, allocations: 0.7569 MB / 1.162 GB, free: 128.5 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003393/5.635, allocations: 393.1 kB / 1.163 GB, free: 128.5 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001583/5.637, allocations: 183.5 kB / 1.163 GB, free: 128.5 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01351/5.65, allocations: 4.78 MB / 1.168 GB, free: 127.8 MB / 474.8 MB Notification: Performance of sort global known variables: time 8.61e-07/5.65, allocations: 0 / 1.168 GB, free: 127.8 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.02013/5.67, allocations: 3.171 MB / 1.171 GB, free: 127.5 MB / 474.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.08023/5.751, allocations: 35.34 MB / 1.205 GB, free: 110.3 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.05283/5.803, allocations: 22.91 MB / 1.228 GB, free: 99.85 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.518e-05/5.803, allocations: 4 kB / 1.228 GB, free: 99.84 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02209/5.826, allocations: 9.721 MB / 1.237 GB, free: 90.93 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008737/5.834, allocations: 0.8474 MB / 1.238 GB, free: 90.2 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1162/5.951, allocations: 34.07 MB / 1.271 GB, free: 60.5 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02152/5.972, allocations: 8.269 MB / 1.279 GB, free: 54.48 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03687/6.009, allocations: 5.685 MB / 1.285 GB, free: 49.18 MB / 474.8 MB Notification: Performance of SimCode: time 2.395e-06/6.009, allocations: 4 kB / 1.285 GB, free: 49.18 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.676/13.68, allocations: 254.3 MB / 1.533 GB, free: 61.43 MB / 474.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