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 2.05/2.05, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.716e-05/3.722e-05, allocations: 4 kB / 255.5 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09683/0.09691, allocations: 44.5 MB / 300 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4533/0.5502, allocations: 101.7 MB / 401.6 MB, free: 11.4 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.5506, allocations: 93.86 kB / 401.7 MB, free: 11.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.215/1.766, allocations: 234 MB / 0.6208 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.896e-06/1.766, allocations: 3.656 kB / 0.6208 GB, free: 54.65 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000738/1.767, allocations: 234.2 kB / 0.621 GB, free: 54.64 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.06254/1.829, allocations: 12.3 MB / 0.633 GB, free: 42.43 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.665e-05/1.83, allocations: 8.031 kB / 0.633 GB, free: 42.42 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01126/1.841, allocations: 2 MB / 0.635 GB, free: 40.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03479/1.876, allocations: 3.975 MB / 0.6389 GB, free: 36.47 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04687/1.923, allocations: 12.19 MB / 0.6508 GB, free: 24.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001113/1.924, allocations: 0.8885 MB / 0.6516 GB, free: 23.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007188/1.931, allocations: 1.184 MB / 0.6528 GB, free: 22.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7935/2.725, allocations: 33.37 MB / 0.6854 GB, free: 37.55 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001008/2.726, allocations: 92.28 kB / 0.6855 GB, free: 37.55 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006854/2.732, allocations: 0.5361 MB / 0.686 GB, free: 37.55 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006409/2.739, allocations: 2.583 MB / 0.6885 GB, free: 37.53 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.108/2.847, allocations: 30.23 MB / 0.718 GB, free: 37.49 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2362/3.083, allocations: 120.4 MB / 0.8356 GB, free: 7.492 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4636/3.547, allocations: 18.89 MB / 0.854 GB, free: 93.04 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02609/3.573, allocations: 8.724 MB / 0.8625 GB, free: 92.99 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0839/3.657, allocations: 31.09 MB / 0.8929 GB, free: 85.32 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.861e-05/3.657, allocations: 86.95 kB / 0.893 GB, free: 85.28 MB / 458.8 MB Notification: Performance of pre-optimization done (n=489): time 7.825e-06/3.657, allocations: 1.781 kB / 0.893 GB, free: 85.28 MB / 458.8 MB Notification: Performance of matching and sorting (n=726): time 1.07/4.727, allocations: 122.2 MB / 1.012 GB, free: 85.6 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001642/4.728, allocations: 201.1 kB / 1.013 GB, free: 85.43 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02234/4.75, allocations: 6.903 MB / 1.019 GB, free: 85 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002648/4.753, allocations: 138.4 kB / 1.019 GB, free: 84.97 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007306/4.76, allocations: 6.827 MB / 1.026 GB, free: 82.3 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005992/4.766, allocations: 2.582 MB / 1.029 GB, free: 80.73 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004138/4.77, allocations: 286.8 kB / 1.029 GB, free: 80.73 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001441/4.772, allocations: 0.9137 MB / 1.03 GB, free: 80.39 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0244/4.796, allocations: 10.09 MB / 1.04 GB, free: 80.36 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03049/4.827, allocations: 16.61 MB / 1.056 GB, free: 72.13 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03049/4.857, allocations: 12.88 MB / 1.068 GB, free: 69.17 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003418/4.858, allocations: 65.84 kB / 1.068 GB, free: 69.17 MB / 458.8 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.07309/4.931, allocations: 26.35 MB / 1.094 GB, free: 59.18 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002155/4.931, allocations: 102.7 kB / 1.094 GB, free: 59.18 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003804/4.931, allocations: 225.3 kB / 1.095 GB, free: 59.18 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004939/4.932, allocations: 352 kB / 1.095 GB, free: 59.18 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03783/4.97, allocations: 4.262 MB / 1.099 GB, free: 58.8 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005788/4.97, allocations: 467 kB / 1.099 GB, free: 58.7 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02354/4.994, allocations: 1.221 MB / 1.101 GB, free: 58.45 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004558/4.999, allocations: 0.7451 MB / 1.101 GB, free: 58.34 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.007715/5.006, allocations: 1.138 MB / 1.102 GB, free: 57.43 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003521/5.01, allocations: 0.8039 MB / 1.103 GB, free: 56.98 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05027/5.06, allocations: 19.38 MB / 1.122 GB, free: 48.22 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001039/5.06, allocations: 71.31 kB / 1.122 GB, free: 48.22 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.541e-05/5.06, allocations: 3 kB / 1.122 GB, free: 48.22 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001738/5.061, allocations: 34.89 kB / 1.122 GB, free: 48.22 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1161/5.177, allocations: 42.32 MB / 1.164 GB, free: 13.99 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.293e-05/5.177, allocations: 12.08 kB / 1.164 GB, free: 13.98 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02601/5.203, allocations: 2.147 MB / 1.166 GB, free: 12.48 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001332/5.203, allocations: 28 kB / 1.166 GB, free: 12.45 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002343/5.205, allocations: 136.6 kB / 1.166 GB, free: 12.33 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.592e-05/5.205, allocations: 31.94 kB / 1.166 GB, free: 12.3 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.422e-06/5.205, allocations: 4 kB / 1.166 GB, free: 12.29 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4317/5.637, allocations: 34.38 MB / 1.199 GB, free: 76.57 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01019/5.647, allocations: 2.713 MB / 1.202 GB, free: 76.47 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003709/5.651, allocations: 121.1 kB / 1.202 GB, free: 76.47 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01487/5.666, allocations: 0.7573 MB / 1.203 GB, free: 76.47 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002758/5.669, allocations: 392.1 kB / 1.203 GB, free: 76.46 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001117/5.67, allocations: 180.7 kB / 1.204 GB, free: 76.46 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01216/5.682, allocations: 4.775 MB / 1.208 GB, free: 76.18 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.383e-06/5.682, allocations: 3 kB / 1.208 GB, free: 76.18 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.02067/5.703, allocations: 3.168 MB / 1.211 GB, free: 76.18 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.07479/5.778, allocations: 35.34 MB / 1.246 GB, free: 60.82 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.05051/5.828, allocations: 22.56 MB / 1.268 GB, free: 51.95 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/5.828, allocations: 0 / 1.268 GB, free: 51.95 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02191/5.85, allocations: 9.692 MB / 1.277 GB, free: 47.47 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009174/5.86, allocations: 0.8436 MB / 1.278 GB, free: 46.74 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1179/5.977, allocations: 34.02 MB / 1.311 GB, free: 17.09 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02261/6, allocations: 8.263 MB / 1.319 GB, free: 11.08 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02277/6.023, allocations: 5.689 MB / 1.325 GB, free: 5.781 MB / 458.8 MB Notification: Performance of SimCode: time 1.893e-06/6.023, allocations: 3.25 kB / 1.325 GB, free: 5.781 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.503/13.53, allocations: 252 MB / 1.571 GB, free: 98.07 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