Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint4,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Parts_Rotor1D_GearConstraint4",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.576/2.576, allocations: 270 MB / 282.7 MB, free: 1.824 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.865e-05/3.874e-05, allocations: 4 kB / 347.1 MB, free: 3.102 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4047, allocations: 61.88 MB / 408.9 MB, free: 10.63 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6071/1.012, allocations: 126.3 MB / 0.5227 GB, free: 49.12 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003442/1.012, allocations: 84.97 kB / 0.5228 GB, free: 49.12 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.419/2.431, allocations: 262.1 MB / 0.7787 GB, free: 54.57 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.605e-06/2.431, allocations: 3.594 kB / 0.7787 GB, free: 54.57 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.001345/2.432, allocations: 309.3 kB / 0.779 GB, free: 54.55 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4241 * Number of variables: 4241 Notification: Performance of Generate backend data structure: time 0.09242/2.525, allocations: 15.57 MB / 0.7942 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.952e-05/2.525, allocations: 9 kB / 0.7942 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01026/2.535, allocations: 2.152 MB / 0.7963 GB, free: 49.53 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1219/2.657, allocations: 16.86 MB / 0.8128 GB, free: 48.56 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07108/2.728, allocations: 20.71 MB / 0.833 GB, free: 46.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001415/2.73, allocations: 1.009 MB / 0.834 GB, free: 46.57 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007441/2.737, allocations: 1.385 MB / 0.8354 GB, free: 46.54 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09983/2.837, allocations: 28.92 MB / 0.8636 GB, free: 31.98 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001157/2.838, allocations: 171.5 kB / 0.8638 GB, free: 31.88 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005772/2.844, allocations: 0.6177 MB / 0.8644 GB, free: 31.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005817/2.85, allocations: 2.289 MB / 0.8666 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08324/2.933, allocations: 22.58 MB / 0.8887 GB, free: 10.43 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8036/3.737, allocations: 127.3 MB / 1.013 GB, free: 49.62 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07886/3.816, allocations: 14.59 MB / 1.027 GB, free: 49.53 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0179/3.834, allocations: 9.513 MB / 1.037 GB, free: 49.48 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004908/3.839, allocations: 2.111 MB / 1.039 GB, free: 47.77 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001383/3.839, allocations: 96.92 kB / 1.039 GB, free: 47.72 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=541): time 1.067e-05/3.839, allocations: 3.188 kB / 1.039 GB, free: 47.72 MB / 0.6042 GB Notification: Performance of matching and sorting (n=744): time 0.5519/4.391, allocations: 99.4 MB / 1.136 GB, free: 26.77 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001748/4.391, allocations: 330.8 kB / 1.136 GB, free: 26.39 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02694/4.418, allocations: 9.505 MB / 1.145 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.00244/4.42, allocations: 149.7 kB / 1.145 GB, free: 17.98 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.008013/4.428, allocations: 7.943 MB / 1.153 GB, free: 11.28 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.005947/4.434, allocations: 2.69 MB / 1.156 GB, free: 8.875 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003406/4.438, allocations: 288 kB / 1.156 GB, free: 8.594 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.001528/4.44, allocations: 0.9076 MB / 1.157 GB, free: 7.852 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02349/4.463, allocations: 8.367 MB / 1.165 GB, free: 368 kB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.5226/4.986, allocations: 17.85 MB / 1.183 GB, free: 113.3 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02796/5.014, allocations: 11.16 MB / 1.194 GB, free: 113.1 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005704/5.014, allocations: 65.34 kB / 1.194 GB, free: 113.1 MB / 0.6042 GB Notification: Performance of matching and sorting (n=1825) (initialization): time 0.1101/5.124, allocations: 31.38 MB / 1.224 GB, free: 112.8 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002772/5.125, allocations: 107.6 kB / 1.224 GB, free: 112.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004192/5.125, allocations: 227.5 kB / 1.225 GB, free: 112.8 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05318/5.178, allocations: 10.43 MB / 1.235 GB, free: 112.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02299/5.201, allocations: 3.173 MB / 1.238 GB, free: 112.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1352/5.337, allocations: 52 MB / 1.289 GB, free: 98.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02185/5.359, allocations: 0.955 MB / 1.29 GB, free: 97.79 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004403/5.363, allocations: 0.7871 MB / 1.29 GB, free: 97.68 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1051 * Number of states: 0 () * Number of discrete variables: 160 (cyl4.color[3],cyl4.color[2],cyl4.color[1],cyl4.body.sphereColor[3],cyl4.body.sphereColor[2],cyl4.body.sphereColor[1],cyl3.color[3],cyl3.color[2],cyl3.color[1],cyl3.body.sphereColor[3],cyl3.body.sphereColor[2],cyl3.body.sphereColor[1],absoluteSensor_1D.arrow.arrowLine.twoHeadedArrow,absoluteSensor_1D.arrow.headAtOrigin,absoluteSensor_1D.arrowColor[3],absoluteSensor_1D.arrowColor[2],absoluteSensor_1D.arrowColor[1],absoluteSensor_MBS.arrow.arrowLine.twoHeadedArrow,absoluteSensor_MBS.arrow.headAtOrigin,absoluteSensor_MBS.arrowColor[3],absoluteSensor_MBS.arrowColor[2],absoluteSensor_MBS.arrowColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[1],fixedTranslation8.color[3],fixedTranslation8.color[2],fixedTranslation8.color[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueArrow.arrowLine.twoHeadedArrow,torque3.torqueArrow.headAtOrigin,torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],fixedTranslation7.color[3],fixedTranslation7.color[2],fixedTranslation7.color[1],bodyShape2.color[3],bodyShape2.color[2],bodyShape2.color[1],bodyShape2.body.sphereColor[3],bodyShape2.body.sphereColor[2],bodyShape2.body.sphereColor[1],bodyShape2.frameTranslation.color[3],bodyShape2.frameTranslation.color[2],bodyShape2.frameTranslation.color[1],fixedRotation2.color[3],fixedRotation2.color[2],fixedRotation2.color[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],bodyBox3.color[3],bodyBox3.color[2],bodyBox3.color[1],bodyBox3.body.sphereColor[3],bodyBox3.body.sphereColor[2],bodyBox3.body.sphereColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],freeMotion2.arrowColor[3],freeMotion2.arrowColor[2],freeMotion2.arrowColor[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueArrow.arrowLine.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],bodyShape1.color[3],bodyShape1.color[2],bodyShape1.color[1],bodyShape1.body.sphereColor[3],bodyShape1.body.sphereColor[2],bodyShape1.body.sphereColor[1],bodyShape1.frameTranslation.color[3],bodyShape1.frameTranslation.color[2],bodyShape1.frameTranslation.color[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],freeMotion1.arrowColor[3],freeMotion1.arrowColor[2],freeMotion1.arrowColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1575): * Single equations (assignments): 1567 * Array equations: 2 * 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): 4 {(2,100.0%),(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(10,78.0%) 102,(10,90.0%) 122} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008032/5.371, allocations: 1.16 MB / 1.291 GB, free: 96.91 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004717/5.376, allocations: 1.099 MB / 1.293 GB, free: 96.91 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09351/5.469, allocations: 25.68 MB / 1.318 GB, free: 83.27 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001274/5.47, allocations: 72 kB / 1.318 GB, free: 83.2 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001068/5.47, allocations: 44 kB / 1.318 GB, free: 83.16 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001906/5.47, allocations: 41.44 kB / 1.318 GB, free: 83.16 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1705/5.64, allocations: 51.35 MB / 1.368 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001243/5.641, allocations: 4 kB / 1.368 GB, free: 41.98 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01222/5.653, allocations: 1.158 MB / 1.369 GB, free: 41.06 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04934/5.702, allocations: 9.297 MB / 1.378 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002379/5.705, allocations: 145.8 kB / 1.378 GB, free: 34.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5865/6.291, allocations: 49.6 MB / 1.427 GB, free: 105.8 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.016e-06/6.291, allocations: 5.594 kB / 1.427 GB, free: 105.8 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1078/6.399, allocations: 36.08 MB / 1.462 GB, free: 101.9 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004114/6.403, allocations: 1.06 MB / 1.463 GB, free: 101.7 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005398/6.409, allocations: 140.2 kB / 1.463 GB, free: 101.6 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01434/6.423, allocations: 0.5273 MB / 1.464 GB, free: 101.5 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003854/6.427, allocations: 0.4951 MB / 1.464 GB, free: 101.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002072/6.429, allocations: 189.4 kB / 1.464 GB, free: 101.4 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.01924/6.448, allocations: 6.851 MB / 1.471 GB, free: 99.09 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.223e-06/6.448, allocations: 0 / 1.471 GB, free: 99.09 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.02447/6.473, allocations: 3.782 MB / 1.475 GB, free: 98.72 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 32 (freeMotion1.r_rel_a[1],freeMotion1.r_rel_a[2],freeMotion1.r_rel_a[3],freeMotion1.v_rel_a[1],freeMotion1.v_rel_a[2],freeMotion1.v_rel_a[3],freeMotion1.phi[1],freeMotion1.phi[2],freeMotion1.phi[3],freeMotion1.phi_d[1],freeMotion1.phi_d[2],freeMotion1.phi_d[3],revolute1.phi,revolute1.w,gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,freeMotion2.r_rel_a[1],freeMotion2.r_rel_a[2],freeMotion2.r_rel_a[3],freeMotion2.v_rel_a[1],freeMotion2.v_rel_a[2],freeMotion2.v_rel_a[3],freeMotion2.phi[1],freeMotion2.phi[2],freeMotion2.phi[3],freeMotion2.phi_d[1],freeMotion2.phi_d[2],freeMotion2.phi_d[3],revolute2.phi,revolute2.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (544): * Single equations (assignments): 538 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,97.5%) 111,(12,66.0%) 86} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1099/6.583, allocations: 37.2 MB / 1.511 GB, free: 84.33 MB / 0.6042 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotion.mo:92:3-94:41:writable] Warning: Variable freeMotion1.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotion.mo:92:3-94:41:writable] Warning: Variable freeMotion1.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotion.mo:92:3-94:41:writable] Warning: Variable freeMotion2.phi_d[1] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Mechanics/MultiBody/Joints/FreeMotion.mo:92:3-94:41:writable] Warning: Variable freeMotion2.phi_d[2] has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.05668/6.64, allocations: 21.58 MB / 1.532 GB, free: 70.32 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 9.808e-06/6.64, allocations: 0 / 1.532 GB, free: 70.32 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.02914/6.669, allocations: 10.24 MB / 1.542 GB, free: 61.21 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01621/6.685, allocations: 1.796 MB / 1.544 GB, free: 59.8 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1197/6.805, allocations: 36.61 MB / 1.58 GB, free: 28.89 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02615/6.831, allocations: 9.806 MB / 1.589 GB, free: 21.9 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0188/6.85, allocations: 7.223 MB / 1.596 GB, free: 15.2 MB / 0.6042 GB Notification: Performance of SimCode: time 1.302e-06/6.85, allocations: 0 / 1.596 GB, free: 15.2 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.35/17.2, allocations: 0.5291 GB / 2.125 GB, free: 115 MB / 0.6355 GB