Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Constraints_SphericalConstraint",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.805/1.805, allocations: 171.2 MB / 178.8 MB, free: 168 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.6e-05/2.613e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2645, allocations: 38.76 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1964/0.461, allocations: 99.95 MB / 358.3 MB, free: 9.824 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/0.4614, allocations: 87.95 kB / 358.4 MB, free: 9.738 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6812/1.143, allocations: 124.3 MB / 482.7 MB, free: 9.613 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.143, allocations: 4 kB / 482.7 MB, free: 9.609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0005435/1.143, allocations: 140 kB / 482.8 MB, free: 9.473 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2366 * Number of variables: 2366 Notification: Performance of Generate backend data structure: time 0.03693/1.18, allocations: 7.052 MB / 489.9 MB, free: 2.344 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/1.18, allocations: 8.031 kB / 489.9 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.522/1.702, allocations: 2.892 MB / 492.8 MB, free: 33.65 MB / 330.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02961/1.732, allocations: 8.117 MB / 0.4892 GB, free: 33.24 MB / 330.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005001/1.732, allocations: 231.8 kB / 0.4894 GB, free: 33.24 MB / 330.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003962/1.736, allocations: 420.6 kB / 0.4898 GB, free: 33.23 MB / 330.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02873/1.765, allocations: 10.03 MB / 0.4996 GB, free: 33.2 MB / 330.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04176/1.807, allocations: 14.68 MB / 0.5139 GB, free: 29.55 MB / 330.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000448/1.808, allocations: 83.08 kB / 0.514 GB, free: 29.55 MB / 330.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003213/1.811, allocations: 43.41 kB / 0.514 GB, free: 29.55 MB / 330.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003653/1.814, allocations: 1.494 MB / 0.5155 GB, free: 29.54 MB / 330.8 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.1217/1.936, allocations: 74.11 MB / 0.5879 GB, free: 11.21 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009455/1.946, allocations: 4.462 MB / 0.5922 GB, free: 7.848 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007309/1.953, allocations: 3.244 MB / 0.5954 GB, free: 4.859 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001555/1.955, allocations: 0.6907 MB / 0.5961 GB, free: 4.121 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.268e-05/1.955, allocations: 64.5 kB / 0.5961 GB, free: 4.051 MB / 362.8 MB Notification: Performance of pre-optimization done (n=259): time 7.103e-06/1.955, allocations: 1.594 kB / 0.5961 GB, free: 4.051 MB / 362.8 MB Notification: Performance of matching and sorting (n=278): time 0.0998/2.055, allocations: 23.76 MB / 0.6193 GB, free: 0 / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.307/2.362, allocations: 156.6 kB / 0.6195 GB, free: 77.3 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01464/2.376, allocations: 4.597 MB / 0.624 GB, free: 77.03 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008012/2.377, allocations: 26.89 kB / 0.624 GB, free: 77 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004149/2.381, allocations: 4.759 MB / 0.6286 GB, free: 75.32 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001855/2.383, allocations: 1.058 MB / 0.6297 GB, free: 74.71 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/2.384, allocations: 1.031 kB / 0.6297 GB, free: 74.71 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0007456/2.385, allocations: 0.6971 MB / 0.6304 GB, free: 74.38 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007517/2.393, allocations: 3.17 MB / 0.6335 GB, free: 74.36 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0115/2.404, allocations: 8.65 MB / 0.6419 GB, free: 67.23 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01127/2.416, allocations: 5.162 MB / 0.6469 GB, free: 67.19 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002116/2.416, allocations: 57.03 kB / 0.647 GB, free: 67.19 MB / 378.8 MB Notification: Performance of matching and sorting (n=1194) (initialization): time 0.0368/2.453, allocations: 12.37 MB / 0.6591 GB, free: 66.3 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001531/2.453, allocations: 88.38 kB / 0.6592 GB, free: 66.3 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01701/2.47, allocations: 5.609 MB / 0.6646 GB, free: 65.87 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01018/2.48, allocations: 2.054 MB / 0.6666 GB, free: 65.82 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01401/2.494, allocations: 2.198 MB / 0.6688 GB, free: 65.62 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02024/2.515, allocations: 13.44 MB / 0.6819 GB, free: 57.47 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01153/2.526, allocations: 413.5 kB / 0.6823 GB, free: 57.45 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002346/2.529, allocations: 0.5458 MB / 0.6828 GB, free: 57.38 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 899 * 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.sphereColor[3],joint.sphereColor[2],joint.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1143): * Single equations (assignments): 1129 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 3,(3,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002735/2.531, allocations: 0.6006 MB / 0.6834 GB, free: 56.89 MB / 378.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02025/2.552, allocations: 6.522 MB / 0.6898 GB, free: 54.56 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001932/2.554, allocations: 499.4 kB / 0.6903 GB, free: 54.29 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02075/2.574, allocations: 6.365 MB / 0.6965 GB, free: 51.97 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02387/2.598, allocations: 5.515 MB / 0.7019 GB, free: 50.06 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.02199/2.62, allocations: 5.367 MB / 0.7071 GB, free: 45.85 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001053/2.62, allocations: 17.31 kB / 0.7071 GB, free: 45.85 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05239/2.673, allocations: 16.28 MB / 0.723 GB, free: 32.89 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.36e-05/2.673, allocations: 12.22 kB / 0.723 GB, free: 32.88 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005035/2.678, allocations: 0.5137 MB / 0.7235 GB, free: 32.47 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009528/2.688, allocations: 1.784 MB / 0.7253 GB, free: 31.3 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008331/2.688, allocations: 38.23 kB / 0.7253 GB, free: 31.27 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01766/2.706, allocations: 9.447 MB / 0.7346 GB, free: 22.82 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001068/2.707, allocations: 1.418 MB / 0.7359 GB, free: 21.33 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02509/2.732, allocations: 11.05 MB / 0.7467 GB, free: 11.15 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001956/2.734, allocations: 0.5401 MB / 0.7473 GB, free: 10.6 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002212/2.737, allocations: 27.56 kB / 0.7473 GB, free: 10.57 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005541/2.742, allocations: 180.4 kB / 0.7475 GB, free: 10.48 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001162/2.743, allocations: 205.9 kB / 0.7477 GB, free: 10.35 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003743/2.744, allocations: 83.09 kB / 0.7477 GB, free: 10.27 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.007727/2.752, allocations: 3.087 MB / 0.7507 GB, free: 7.609 MB / 378.8 MB Notification: Performance of sort global known variables: time 8.42e-07/2.752, allocations: 0 / 0.7507 GB, free: 7.609 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.01216/2.764, allocations: 1.508 MB / 0.7522 GB, free: 6.117 MB / 378.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * Number of states: 12 ($STATESET4812296584.x[3],$STATESET4812296584.x[2],$STATESET4812296584.x[1],joint.w_rel[1],joint.w_rel[2],joint.w_rel[3],bodyOfConstraint.body.w_a[1],bodyOfConstraint.body.w_a[2],bodyOfConstraint.body.w_a[3],freeMotionScalarInit.derd[1].u,freeMotionScalarInit.derd[2].u,freeMotionScalarInit.derd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,100.0%) 3,(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3128/3.077, allocations: 13.92 MB / 0.7658 GB, free: 60.88 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.02147/3.098, allocations: 8.406 MB / 0.774 GB, free: 60.12 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 1.449e-05/3.098, allocations: 0 / 0.774 GB, free: 60.12 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009423/3.108, allocations: 3.319 MB / 0.7773 GB, free: 59.48 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0068/3.115, allocations: 0.6624 MB / 0.7779 GB, free: 59.45 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05309/3.168, allocations: 15.26 MB / 0.7928 GB, free: 56.49 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01269/3.18, allocations: 4.976 MB / 0.7977 GB, free: 55.64 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008351/3.189, allocations: 3.172 MB / 0.8008 GB, free: 55.63 MB / 378.8 MB Notification: Performance of SimCode: time 1.674e-06/3.189, allocations: 3.938 kB / 0.8008 GB, free: 55.63 MB / 378.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.517/9.706, allocations: 314.6 MB / 1.108 GB, free: 76.12 MB / 410.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.SphericalConstraint_res.mat does not exist to compare? outputFormat=mat