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 1.971/1.971, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.756e-05/2.756e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3059/0.306, allocations: 44.49 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1783/0.4843, allocations: 101 MB / 395.2 MB, free: 12.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.4847, allocations: 91.94 kB / 395.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.394/1.879, allocations: 228.5 MB / 0.6092 GB, free: 31.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.996e-06/1.879, allocations: 0 / 0.6092 GB, free: 31.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007404/1.88, allocations: 230.5 kB / 0.6094 GB, free: 31.75 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.05625/1.936, allocations: 12.29 MB / 0.6214 GB, free: 27.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.587e-05/1.936, allocations: 11.53 kB / 0.6214 GB, free: 27.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.035/1.971, allocations: 3.982 MB / 0.6253 GB, free: 26.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04545/2.017, allocations: 12.17 MB / 0.6372 GB, free: 25.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007912/2.017, allocations: 387.5 kB / 0.6376 GB, free: 25.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006892/2.024, allocations: 0.7019 MB / 0.6383 GB, free: 25.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05237/2.077, allocations: 21.48 MB / 0.6592 GB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09175/2.169, allocations: 27.43 MB / 0.686 GB, free: 3.691 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007161/2.169, allocations: 99.08 kB / 0.6861 GB, free: 3.594 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005915/2.175, allocations: 52 kB / 0.6862 GB, free: 3.543 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006572/2.182, allocations: 2.586 MB / 0.6887 GB, free: 0.9609 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.569/2.751, allocations: 116.8 MB / 0.8028 GB, free: 20.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0199/2.771, allocations: 10.5 MB / 0.813 GB, free: 15.18 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01644/2.787, allocations: 8.509 MB / 0.8214 GB, free: 11.08 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07425/2.862, allocations: 30.89 MB / 0.8515 GB, free: 6.086 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001274/2.862, allocations: 80.56 kB / 0.8516 GB, free: 6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=483): time 9.548e-06/2.862, allocations: 0 / 0.8516 GB, free: 6 MB / 442.7 MB Notification: Performance of matching and sorting (n=708): time 0.9006/3.763, allocations: 115.7 MB / 0.9646 GB, free: 92.61 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/3.763, allocations: 202.2 kB / 0.9648 GB, free: 92.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01508/3.778, allocations: 6.089 MB / 0.9707 GB, free: 87.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002422/3.78, allocations: 25.7 kB / 0.9707 GB, free: 87.18 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005856/3.786, allocations: 7.023 MB / 0.9776 GB, free: 80.91 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00464/3.791, allocations: 2.43 MB / 0.98 GB, free: 78.7 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003416/3.794, allocations: 4 kB / 0.98 GB, free: 78.69 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001292/3.796, allocations: 0.9184 MB / 0.9809 GB, free: 77.94 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02168/3.817, allocations: 9.701 MB / 0.9903 GB, free: 69.05 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02676/3.844, allocations: 16.54 MB / 1.006 GB, free: 50.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03417/3.878, allocations: 12.9 MB / 1.019 GB, free: 39.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002821/3.879, allocations: 68 kB / 1.019 GB, free: 39.56 MB / 458.7 MB Notification: Performance of matching and sorting (n=1887) (initialization): time 0.4197/4.299, allocations: 26.36 MB / 1.045 GB, free: 90.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002413/4.299, allocations: 110.1 kB / 1.045 GB, free: 90.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004581/4.299, allocations: 238.2 kB / 1.045 GB, free: 90.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005346/4.3, allocations: 364.4 kB / 1.046 GB, free: 90.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03708/4.337, allocations: 4.303 MB / 1.05 GB, free: 90.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006536/4.338, allocations: 484.5 kB / 1.05 GB, free: 90.84 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02318/4.361, allocations: 0.9464 MB / 1.051 GB, free: 90.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00475/4.366, allocations: 0.7669 MB / 1.052 GB, free: 90.84 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.007697/4.373, allocations: 0.7703 MB / 1.053 GB, free: 90.66 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04364/4.417, allocations: 17.33 MB / 1.07 GB, free: 90.45 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004219/4.421, allocations: 0.7483 MB / 1.07 GB, free: 90.45 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04924/4.471, allocations: 18.52 MB / 1.088 GB, free: 88.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001113/4.471, allocations: 70.25 kB / 1.088 GB, free: 88.16 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/4.471, allocations: 2.656 kB / 1.088 GB, free: 88.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001762/4.471, allocations: 38.33 kB / 1.089 GB, free: 88.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1002/4.571, allocations: 38.46 MB / 1.126 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.582e-05/4.571, allocations: 0 / 1.126 GB, free: 71.48 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02489/4.596, allocations: 2.119 MB / 1.128 GB, free: 71.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/4.596, allocations: 25.62 kB / 1.128 GB, free: 71.44 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001836/4.598, allocations: 19 kB / 1.128 GB, free: 71.43 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-05/4.598, allocations: 22.5 kB / 1.128 GB, free: 71.43 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/4.598, allocations: 10.41 kB / 1.128 GB, free: 71.43 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06279/4.661, allocations: 31.9 MB / 1.159 GB, free: 44.38 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009405/4.671, allocations: 2.627 MB / 1.162 GB, free: 42.04 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003994/4.675, allocations: 4 kB / 1.162 GB, free: 42.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01373/4.688, allocations: 0.6521 MB / 1.163 GB, free: 41.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003111/4.692, allocations: 363.4 kB / 1.163 GB, free: 41.48 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001736/4.693, allocations: 173.2 kB / 1.163 GB, free: 41.32 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01039/4.704, allocations: 4.046 MB / 1.167 GB, free: 37.82 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.433e-06/4.704, allocations: 0 / 1.167 GB, free: 37.82 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01956/4.723, allocations: 2.748 MB / 1.17 GB, free: 35.09 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.06861/4.792, allocations: 32.89 MB / 1.202 GB, free: 5.188 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.3791/5.171, allocations: 23.48 MB / 1.225 GB, free: 100.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.107e-05/5.171, allocations: 0 / 1.225 GB, free: 100.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02012/5.191, allocations: 9.522 MB / 1.234 GB, free: 100.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007586/5.199, allocations: 0.6304 MB / 1.235 GB, free: 100.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1096/5.309, allocations: 32.96 MB / 1.267 GB, free: 92.11 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02171/5.331, allocations: 8.24 MB / 1.275 GB, free: 89.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0224/5.353, allocations: 5.678 MB / 1.28 GB, free: 84.88 MB / 458.7 MB Notification: Performance of SimCode: time 2.013e-06/5.353, allocations: 0 / 1.28 GB, free: 84.88 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.77/12.12, allocations: 248.1 MB / 1.523 GB, free: 13.5 MB / 490.7 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