Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_RevoluteConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.999/1.999, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.97e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3172, allocations: 44.5 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1903/0.5076, allocations: 106.1 MB / 400.3 MB, free: 7.695 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.508, allocations: 87.95 kB / 400.4 MB, free: 7.609 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7954/1.303, allocations: 124.3 MB / 0.5124 GB, free: 26.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.063e-06/1.303, allocations: 0 / 0.5124 GB, free: 26.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004952/1.304, allocations: 140 kB / 0.5126 GB, free: 26.11 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2355 * Number of variables: 2355 Notification: Performance of Generate backend data structure: time 0.03473/1.339, allocations: 7.078 MB / 0.5195 GB, free: 18.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/1.339, allocations: 12.03 kB / 0.5195 GB, free: 18.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0217/1.361, allocations: 2.764 MB / 0.5222 GB, free: 16.17 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02733/1.388, allocations: 7.484 MB / 0.5295 GB, free: 8.598 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004555/1.388, allocations: 224 kB / 0.5297 GB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00381/1.392, allocations: 416.2 kB / 0.5301 GB, free: 7.973 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02679/1.419, allocations: 10.08 MB / 0.5399 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3301/1.749, allocations: 14.58 MB / 0.5542 GB, free: 48.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006135/1.75, allocations: 78.5 kB / 0.5543 GB, free: 48.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003271/1.753, allocations: 39.09 kB / 0.5543 GB, free: 48.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004191/1.757, allocations: 1.5 MB / 0.5558 GB, free: 48.09 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1163/1.874, allocations: 72.68 MB / 0.6267 GB, free: 23.61 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008492/1.882, allocations: 4.81 MB / 0.6314 GB, free: 21.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006506/1.889, allocations: 3.535 MB / 0.6349 GB, free: 19.77 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001397/1.89, allocations: 0.6994 MB / 0.6356 GB, free: 19.17 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.88e-05/1.89, allocations: 69.78 kB / 0.6356 GB, free: 19.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=270): time 6.452e-06/1.89, allocations: 0 / 0.6356 GB, free: 19.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=353): time 0.1809/2.071, allocations: 41.65 MB / 0.6763 GB, free: 2.996 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/2.072, allocations: 169.8 kB / 0.6765 GB, free: 2.801 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01217/2.084, allocations: 4.463 MB / 0.6808 GB, free: 14.98 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00115/2.085, allocations: 25.7 kB / 0.6808 GB, free: 14.95 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005369/2.09, allocations: 4.653 MB / 0.6854 GB, free: 10.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002736/2.093, allocations: 1.277 MB / 0.6866 GB, free: 9.543 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001368/2.095, allocations: 0 / 0.6866 GB, free: 9.543 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000885/2.095, allocations: 0.7084 MB / 0.6873 GB, free: 8.938 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01086/2.106, allocations: 4.016 MB / 0.6912 GB, free: 5.359 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01632/2.123, allocations: 9.317 MB / 0.7003 GB, free: 10.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01532/2.138, allocations: 6.067 MB / 0.7063 GB, free: 4.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002231/2.138, allocations: 56 kB / 0.7063 GB, free: 4.855 MB / 426.7 MB Notification: Performance of matching and sorting (n=1223) (initialization): time 0.3685/2.507, allocations: 17.24 MB / 0.7232 GB, free: 89.52 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001492/2.507, allocations: 83.97 kB / 0.7232 GB, free: 89.52 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002867/2.507, allocations: 188.7 kB / 0.7234 GB, free: 89.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03258/2.54, allocations: 5.385 MB / 0.7287 GB, free: 89.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01347/2.553, allocations: 2.08 MB / 0.7307 GB, free: 89.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07317/2.627, allocations: 35.48 MB / 0.7654 GB, free: 79.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01301/2.64, allocations: 421.3 kB / 0.7658 GB, free: 79.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002674/2.643, allocations: 0.5849 MB / 0.7663 GB, free: 79.07 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 862 * Number of states: 0 () * Number of discrete variables: 57 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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],springOfConstraint.color[3],springOfConstraint.color[2],springOfConstraint.color[1],springOfConstraint.massColor[3],springOfConstraint.massColor[2],springOfConstraint.massColor[1],springOfJoint.color[3],springOfJoint.color[2],springOfJoint.color[1],springOfJoint.massColor[3],springOfJoint.massColor[2],springOfJoint.massColor[1],bodyOfConstraint.color[3],bodyOfConstraint.color[2],bodyOfConstraint.color[1],bodyOfConstraint.body.sphereColor[3],bodyOfConstraint.body.sphereColor[2],bodyOfConstraint.body.sphereColor[1],bodyOfConstraint.frameTranslation.color[3],bodyOfConstraint.frameTranslation.color[2],bodyOfConstraint.frameTranslation.color[1],bodyOfJoint.color[3],bodyOfJoint.color[2],bodyOfJoint.color[1],bodyOfJoint.body.sphereColor[3],bodyOfJoint.body.sphereColor[2],bodyOfJoint.body.sphereColor[1],bodyOfJoint.frameTranslation.color[3],bodyOfJoint.frameTranslation.color[2],bodyOfJoint.frameTranslation.color[1],sensorConstraintRelative.arrowColor[3],sensorConstraintRelative.arrowColor[2],sensorConstraintRelative.arrowColor[1],constraint.sphereColor[3],constraint.sphereColor[2],constraint.sphereColor[1],joint.cylinderColor[3],joint.cylinderColor[2],joint.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1089): * Single equations (assignments): 1078 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,100.0%) 38,(2,100.0%) 23,(2,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.003341/2.646, allocations: 0.5892 MB / 0.7669 GB, free: 78.89 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05013/2.696, allocations: 11.76 MB / 0.7784 GB, free: 75.62 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002062/2.698, allocations: 0.5048 MB / 0.7789 GB, free: 75.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03773/2.736, allocations: 10.42 MB / 0.7891 GB, free: 72.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001175/2.736, allocations: 51.23 kB / 0.7891 GB, free: 72.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.03236/2.768, allocations: 8.991 MB / 0.7979 GB, free: 68 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001201/2.769, allocations: 19.52 kB / 0.7979 GB, free: 68 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07198/2.841, allocations: 22.73 MB / 0.8201 GB, free: 48.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-05/2.841, allocations: 12.58 kB / 0.8201 GB, free: 48.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004888/2.846, allocations: 471.3 kB / 0.8206 GB, free: 48.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02459/2.87, allocations: 3.799 MB / 0.8243 GB, free: 44.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009853/2.871, allocations: 22.8 kB / 0.8243 GB, free: 44.21 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05494/2.926, allocations: 25.95 MB / 0.8496 GB, free: 17.89 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.04728/2.974, allocations: 11.66 MB / 0.861 GB, free: 6.027 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3986/3.372, allocations: 15.33 MB / 0.876 GB, free: 83.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004298/3.377, allocations: 1.129 MB / 0.8771 GB, free: 83.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002072/3.379, allocations: 18.59 kB / 0.8771 GB, free: 83.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006753/3.386, allocations: 173.2 kB / 0.8773 GB, free: 83.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001844/3.387, allocations: 255.6 kB / 0.8775 GB, free: 83.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007147/3.388, allocations: 94.97 kB / 0.8776 GB, free: 83.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007427/3.396, allocations: 2.989 MB / 0.8805 GB, free: 82.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.42e-07/3.396, allocations: 0 / 0.8805 GB, free: 82.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01328/3.409, allocations: 1.827 MB / 0.8823 GB, free: 82.86 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 ($STATESET140007977980297.x,$STATESET140007977980296.x,joint.R_rel.w[2],joint.constantTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 213 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 12,(3,100.0%) 35,(3,100.0%) 25} * Non-linear torn systems: 1 {3 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.04551/3.455, allocations: 17.32 MB / 0.8992 GB, free: 79.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.02269/3.477, allocations: 10.41 MB / 0.9094 GB, free: 78.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/3.477, allocations: 3.844 kB / 0.9094 GB, free: 78.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009304/3.487, allocations: 4.156 MB / 0.9135 GB, free: 77.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006125/3.493, allocations: 0.6344 MB / 0.9141 GB, free: 76.97 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04964/3.543, allocations: 16.32 MB / 0.93 GB, free: 70.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01214/3.555, allocations: 5.128 MB / 0.935 GB, free: 69.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007938/3.563, allocations: 3.178 MB / 0.9381 GB, free: 66.44 MB / 426.7 MB Notification: Performance of SimCode: time 1.343e-06/3.563, allocations: 0 / 0.9381 GB, free: 66.44 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.329/9.892, allocations: 284 MB / 1.215 GB, free: 112.1 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint_res.mat does not exist to compare? outputFormat=mat