Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Mechanics_MultiBody_Examples_Loops_PlanarLoops_analytic",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.364/2.364, allocations: 195 MB / 202.9 MB, free: 13.76 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.141e-05/3.168e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3843/0.3843, allocations: 44.49 MB / 294.3 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2432/0.6276, allocations: 101 MB / 395.3 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003975/0.628, allocations: 87.95 kB / 395.4 MB, free: 12.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.731/2.36, allocations: 228.5 MB / 0.6093 GB, free: 31.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.655e-06/2.36, allocations: 3.906 kB / 0.6093 GB, free: 31.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008576/2.36, allocations: 230.8 kB / 0.6095 GB, free: 31.79 MB / 378.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.07881/2.439, allocations: 12.29 MB / 0.6215 GB, free: 27.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.93e-05/2.439, allocations: 7.875 kB / 0.6215 GB, free: 27.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07721/2.517, allocations: 3.979 MB / 0.6254 GB, free: 27.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06414/2.581, allocations: 12.18 MB / 0.6373 GB, free: 25.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008497/2.582, allocations: 387.9 kB / 0.6377 GB, free: 25.71 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007518/2.589, allocations: 0.6985 MB / 0.6384 GB, free: 25.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.06236/2.652, allocations: 21.49 MB / 0.6593 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.109/2.761, allocations: 27.42 MB / 0.6861 GB, free: 3.594 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007958/2.762, allocations: 103.1 kB / 0.6862 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006144/2.768, allocations: 52 kB / 0.6863 GB, free: 3.441 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007522/2.775, allocations: 2.578 MB / 0.6888 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7408/3.516, allocations: 116.8 MB / 0.8029 GB, free: 20.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.024/3.54, allocations: 10.49 MB / 0.8131 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02008/3.56, allocations: 8.508 MB / 0.8214 GB, free: 11.16 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08858/3.649, allocations: 30.89 MB / 0.8516 GB, free: 5.949 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/3.649, allocations: 85.31 kB / 0.8517 GB, free: 5.859 MB / 442.7 MB Notification: Performance of pre-optimization done (n=483): time 1.191e-05/3.649, allocations: 0 / 0.8517 GB, free: 5.859 MB / 442.7 MB Notification: Performance of matching and sorting (n=708): time 1.092/4.741, allocations: 114.7 MB / 0.9637 GB, free: 90.13 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/4.741, allocations: 200.9 kB / 0.9639 GB, free: 89.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01825/4.76, allocations: 6.082 MB / 0.9698 GB, free: 84.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002731/4.763, allocations: 25.7 kB / 0.9698 GB, free: 84.71 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006905/4.769, allocations: 7.198 MB / 0.9769 GB, free: 78.33 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005206/4.775, allocations: 2.434 MB / 0.9792 GB, free: 76.12 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00378/4.779, allocations: 0 / 0.9792 GB, free: 76.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001626/4.78, allocations: 0.9096 MB / 0.9801 GB, free: 75.38 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02559/4.806, allocations: 9.701 MB / 0.9896 GB, free: 66.49 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03083/4.837, allocations: 16.53 MB / 1.006 GB, free: 47.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03919/4.876, allocations: 12.92 MB / 1.018 GB, free: 37.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003186/4.876, allocations: 70.44 kB / 1.018 GB, free: 37 MB / 458.7 MB Notification: Performance of matching and sorting (n=1887) (initialization): time 0.5202/5.397, allocations: 25.81 MB / 1.044 GB, free: 92.47 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002474/5.397, allocations: 108.9 kB / 1.044 GB, free: 92.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005777/5.398, allocations: 240.1 kB / 1.044 GB, free: 92.47 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006444/5.398, allocations: 364.7 kB / 1.044 GB, free: 92.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.04742/5.446, allocations: 4.3 MB / 1.049 GB, free: 92.47 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007258/5.446, allocations: 483 kB / 1.049 GB, free: 92.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02792/5.474, allocations: 0.9457 MB / 1.05 GB, free: 92.47 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005511/5.48, allocations: 0.7638 MB / 1.051 GB, free: 92.47 MB / 458.7 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.009403/5.489, allocations: 0.7761 MB / 1.051 GB, free: 92.26 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05793/5.547, allocations: 17.33 MB / 1.068 GB, free: 92.04 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005358/5.553, allocations: 0.7432 MB / 1.069 GB, free: 92.04 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06288/5.616, allocations: 18.52 MB / 1.087 GB, free: 87.65 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001317/5.616, allocations: 77.41 kB / 1.087 GB, free: 87.65 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.81e-05/5.616, allocations: 0 / 1.087 GB, free: 87.65 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001977/5.616, allocations: 33.22 kB / 1.087 GB, free: 87.65 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1215/5.738, allocations: 38.46 MB / 1.125 GB, free: 69.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.029e-05/5.738, allocations: 4 kB / 1.125 GB, free: 69.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.03026/5.768, allocations: 2.119 MB / 1.127 GB, free: 68.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001398/5.768, allocations: 24 kB / 1.127 GB, free: 68.37 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002495/5.771, allocations: 18.09 kB / 1.127 GB, free: 68.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.847e-05/5.771, allocations: 24 kB / 1.127 GB, free: 68.33 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.833e-06/5.771, allocations: 0 / 1.127 GB, free: 68.33 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08173/5.853, allocations: 31.91 MB / 1.158 GB, free: 39.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01767/5.87, allocations: 2.628 MB / 1.161 GB, free: 37.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007304/5.878, allocations: 2.438 kB / 1.161 GB, free: 37.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02571/5.904, allocations: 0.6469 MB / 1.161 GB, free: 37.03 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005691/5.909, allocations: 372.3 kB / 1.162 GB, free: 36.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003776/5.913, allocations: 169.3 kB / 1.162 GB, free: 36.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01969/5.933, allocations: 4.045 MB / 1.166 GB, free: 33.14 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.933e-06/5.933, allocations: 4 kB / 1.166 GB, free: 33.14 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.03492/5.968, allocations: 2.747 MB / 1.168 GB, free: 30.42 MB / 458.7 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.6339/6.602, allocations: 34.18 MB / 1.202 GB, free: 96.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.06069/6.663, allocations: 22.06 MB / 1.223 GB, free: 96.51 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/6.663, allocations: 0 / 1.223 GB, free: 96.51 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.025/6.688, allocations: 9.523 MB / 1.233 GB, free: 96.49 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009014/6.697, allocations: 0.6314 MB / 1.233 GB, free: 96.46 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1629/6.86, allocations: 31.58 MB / 1.264 GB, free: 85.97 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02945/6.889, allocations: 8.234 MB / 1.272 GB, free: 83.41 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.03599/6.925, allocations: 5.144 MB / 1.277 GB, free: 83.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02204/6.947, allocations: 5.566 MB / 1.283 GB, free: 78.28 MB / 458.7 MB Notification: Performance of SimCode: time 1.743e-06/6.947, allocations: 0 / 1.283 GB, free: 78.28 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.379/8.326, allocations: 208.5 MB / 1.486 GB, free: 26.54 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002617/8.327, allocations: 165.2 kB / 1.486 GB, free: 26.34 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 12.31/20.64, allocations: 0 / 1.486 GB, free: 26.34 MB / 458.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic_res.mat does not exist to compare? outputFormat=mat