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.815/1.815, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.893e-05/3.897e-05, allocations: 4 kB / 225.1 MB, free: 2.598 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2705, allocations: 38.76 MB / 263.9 MB, free: 9.754 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.174/0.4446, allocations: 95.94 MB / 359.8 MB, free: 9.664 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003323/0.445, allocations: 87.94 kB / 359.9 MB, free: 9.578 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.398/1.843, allocations: 234 MB / 0.5799 GB, free: 30.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.843, allocations: 0 / 0.5799 GB, free: 30.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007126/1.843, allocations: 232.6 kB / 0.5802 GB, free: 30.28 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.05592/1.899, allocations: 12.3 MB / 0.5922 GB, free: 19.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.228e-05/1.899, allocations: 12.02 kB / 0.5922 GB, free: 19.36 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009939/1.909, allocations: 1.997 MB / 0.5941 GB, free: 17.41 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03376/1.943, allocations: 3.984 MB / 0.598 GB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04584/1.989, allocations: 12.19 MB / 0.6099 GB, free: 1.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001123/1.99, allocations: 0.8943 MB / 0.6108 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007331/1.998, allocations: 1.179 MB / 0.6119 GB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4215/2.419, allocations: 33.37 MB / 0.6445 GB, free: 30.91 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009088/2.42, allocations: 96 kB / 0.6446 GB, free: 30.91 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007038/2.427, allocations: 0.533 MB / 0.6451 GB, free: 30.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005941/2.433, allocations: 2.588 MB / 0.6477 GB, free: 30.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1099/2.543, allocations: 30.23 MB / 0.6772 GB, free: 29.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5957/3.139, allocations: 120.6 MB / 0.7949 GB, free: 30.31 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08973/3.229, allocations: 17.22 MB / 0.8118 GB, free: 29.64 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0185/3.247, allocations: 8.723 MB / 0.8203 GB, free: 29.59 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07183/3.319, allocations: 31.09 MB / 0.8506 GB, free: 21.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.616e-05/3.319, allocations: 80.98 kB / 0.8507 GB, free: 21.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=489): time 9.287e-06/3.319, allocations: 1.812 kB / 0.8507 GB, free: 21.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=726): time 1.067/4.387, allocations: 122.2 MB / 0.9701 GB, free: 139.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/4.387, allocations: 211.2 kB / 0.9703 GB, free: 139.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01877/4.406, allocations: 6.904 MB / 0.977 GB, free: 139.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002622/4.408, allocations: 136.6 kB / 0.9771 GB, free: 139.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006236/4.415, allocations: 6.844 MB / 0.9838 GB, free: 135.8 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005262/4.42, allocations: 2.57 MB / 0.9863 GB, free: 134.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003847/4.424, allocations: 285.7 kB / 0.9866 GB, free: 134.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001911/4.426, allocations: 0.9187 MB / 0.9875 GB, free: 133.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02608/4.452, allocations: 10.08 MB / 0.9973 GB, free: 133.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03174/4.484, allocations: 16.62 MB / 1.014 GB, free: 122.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03099/4.515, allocations: 12.88 MB / 1.026 GB, free: 117.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000342/4.515, allocations: 63.44 kB / 1.026 GB, free: 117.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.07538/4.591, allocations: 26.36 MB / 1.052 GB, free: 107.3 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002094/4.591, allocations: 105.8 kB / 1.052 GB, free: 107.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004001/4.591, allocations: 226.5 kB / 1.052 GB, free: 107.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000486/4.592, allocations: 345 kB / 1.053 GB, free: 107.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03797/4.63, allocations: 4.259 MB / 1.057 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006395/4.63, allocations: 464.3 kB / 1.057 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02393/4.654, allocations: 1.225 MB / 1.058 GB, free: 106.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005181/4.66, allocations: 0.7425 MB / 1.059 GB, free: 106.4 MB / 474.7 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.008906/4.669, allocations: 1.136 MB / 1.06 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004797/4.673, allocations: 0.7963 MB / 1.061 GB, free: 105.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0542/4.728, allocations: 19.39 MB / 1.08 GB, free: 89.59 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001004/4.728, allocations: 72.7 kB / 1.08 GB, free: 89.52 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.299e-05/4.728, allocations: 0 / 1.08 GB, free: 89.52 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001922/4.728, allocations: 38.22 kB / 1.08 GB, free: 89.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1173/4.845, allocations: 42.32 MB / 1.121 GB, free: 54.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-05/4.845, allocations: 4 kB / 1.121 GB, free: 54.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02608/4.872, allocations: 2.152 MB / 1.123 GB, free: 52.57 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001353/4.872, allocations: 32 kB / 1.124 GB, free: 52.54 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002496/4.874, allocations: 127.9 kB / 1.124 GB, free: 52.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001314/4.874, allocations: 31.95 kB / 1.124 GB, free: 52.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-05/4.874, allocations: 7.938 kB / 1.124 GB, free: 52.38 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4058/5.28, allocations: 33.6 MB / 1.156 GB, free: 129 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01056/5.291, allocations: 2.71 MB / 1.159 GB, free: 128.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004992/5.296, allocations: 121.9 kB / 1.159 GB, free: 128.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01594/5.312, allocations: 0.7611 MB / 1.16 GB, free: 128.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00307/5.315, allocations: 391.9 kB / 1.16 GB, free: 128.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002303/5.317, allocations: 180 kB / 1.161 GB, free: 128.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01428/5.332, allocations: 4.783 MB / 1.165 GB, free: 128.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.011e-06/5.332, allocations: 0 / 1.165 GB, free: 128.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02166/5.353, allocations: 3.167 MB / 1.168 GB, free: 128.6 MB / 474.7 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.08148/5.435, allocations: 35.34 MB / 1.203 GB, free: 111.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.05183/5.487, allocations: 22.57 MB / 1.225 GB, free: 102.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/5.487, allocations: 0 / 1.225 GB, free: 102.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02185/5.509, allocations: 9.677 MB / 1.234 GB, free: 96.07 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009158/5.518, allocations: 0.8648 MB / 1.235 GB, free: 95.34 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1119/5.63, allocations: 34.02 MB / 1.268 GB, free: 65.66 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0209/5.651, allocations: 8.262 MB / 1.276 GB, free: 59.65 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02159/5.673, allocations: 5.688 MB / 1.282 GB, free: 54.35 MB / 474.7 MB Notification: Performance of SimCode: time 1.973e-06/5.673, allocations: 0 / 1.282 GB, free: 54.35 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.611/13.28, allocations: 252 MB / 1.528 GB, free: 64.93 MB / 474.7 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