Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bodyOfConstraint.body.w_a.1.|bodyOfConstraint.body.w_a.2.|bodyOfConstraint.body.w_a.3.|bodyOfJoint.body.w_a.2.|joint.phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Constraints.RevoluteConstraint") Notification: Performance of loadModel(Modelica): time 1.557/1.557, allocations: 171.3 MB / 179.2 MB, free: 7.496 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.036e-05/2.057e-05, allocations: 4 kB / 222.5 MB, free: 8.688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06719/0.06723, allocations: 38.77 MB / 261.3 MB, free: 1.832 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3205/0.3877, allocations: 100.4 MB / 361.7 MB, free: 4.254 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.3881, allocations: 87.44 kB / 361.8 MB, free: 4.211 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6256/1.014, allocations: 124.3 MB / 486 MB, free: 65.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.17e-06/1.014, allocations: 0 / 486 MB, free: 65.45 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003634/1.014, allocations: 143.9 kB / 486.2 MB, free: 65.31 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2354 * Number of variables: 2354 Notification: Performance of Generate backend data structure: time 0.0257/1.04, allocations: 7.067 MB / 493.2 MB, free: 58.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/1.04, allocations: 8.031 kB / 493.2 MB, free: 58.18 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01529/1.055, allocations: 2.765 MB / 496 MB, free: 55.4 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02079/1.076, allocations: 7.485 MB / 0.4917 GB, free: 47.9 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003672/1.076, allocations: 224 kB / 0.4919 GB, free: 47.68 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002721/1.079, allocations: 419.8 kB / 0.4923 GB, free: 47.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02075/1.1, allocations: 10.07 MB / 0.5021 GB, free: 37.2 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03086/1.131, allocations: 14.58 MB / 0.5164 GB, free: 21.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003323/1.131, allocations: 83.19 kB / 0.5165 GB, free: 21.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002068/1.133, allocations: 40 kB / 0.5165 GB, free: 21.21 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0025/1.136, allocations: 1.499 MB / 0.518 GB, free: 19.71 MB / 346.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.3057/1.442, allocations: 72.59 MB / 0.5889 GB, free: 18.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007168/1.449, allocations: 4.807 MB / 0.5936 GB, free: 17.91 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005543/1.454, allocations: 3.532 MB / 0.597 GB, free: 17.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009934/1.455, allocations: 0.7021 MB / 0.5977 GB, free: 17.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.822e-05/1.455, allocations: 69.5 kB / 0.5978 GB, free: 17.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=270): time 7.866e-06/1.455, allocations: 0 / 0.5978 GB, free: 17.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=353): time 0.133/1.588, allocations: 41.63 MB / 0.6384 GB, free: 2.672 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.139e-05/1.589, allocations: 162.8 kB / 0.6386 GB, free: 2.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008807/1.597, allocations: 4.446 MB / 0.6429 GB, free: 14.71 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008191/1.598, allocations: 27.45 kB / 0.6429 GB, free: 14.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00471/1.603, allocations: 4.651 MB / 0.6475 GB, free: 10.45 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002207/1.605, allocations: 1.271 MB / 0.6487 GB, free: 9.301 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009002/1.606, allocations: 7.156 kB / 0.6487 GB, free: 9.297 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007917/1.607, allocations: 0.7082 MB / 0.6494 GB, free: 8.691 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008865/1.616, allocations: 4.015 MB / 0.6533 GB, free: 5.117 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01412/1.63, allocations: 9.319 MB / 0.6624 GB, free: 9.934 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01278/1.643, allocations: 6.05 MB / 0.6683 GB, free: 4.914 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001737/1.643, allocations: 52 kB / 0.6684 GB, free: 4.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=1223) (initialization): time 0.271/1.914, allocations: 17.24 MB / 0.6852 GB, free: 81.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001924/1.914, allocations: 86.28 kB / 0.6853 GB, free: 81.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003102/1.915, allocations: 188.7 kB / 0.6855 GB, free: 81.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02382/1.938, allocations: 5.388 MB / 0.6908 GB, free: 81.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009228/1.948, allocations: 2.077 MB / 0.6928 GB, free: 81.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06167/2.009, allocations: 35.51 MB / 0.7275 GB, free: 68.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01105/2.02, allocations: 414.7 kB / 0.7278 GB, free: 68.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002111/2.023, allocations: 0.5878 MB / 0.7284 GB, free: 68.48 MB / 378.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.002148/2.025, allocations: 0.5827 MB / 0.729 GB, free: 68.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001303/2.026, allocations: 0.5065 MB / 0.7295 GB, free: 68.11 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02849/2.055, allocations: 10.42 MB / 0.7397 GB, free: 64.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001003/2.055, allocations: 49.7 kB / 0.7397 GB, free: 64.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.02454/2.079, allocations: 8.995 MB / 0.7485 GB, free: 60.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.215e-05/2.079, allocations: 16.59 kB / 0.7485 GB, free: 60.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05381/2.133, allocations: 22.72 MB / 0.7707 GB, free: 41.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.615e-05/2.133, allocations: 8.844 kB / 0.7707 GB, free: 41.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003009/2.136, allocations: 475.2 kB / 0.7712 GB, free: 41.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01619/2.153, allocations: 3.79 MB / 0.7749 GB, free: 37.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008073/2.153, allocations: 27.86 kB / 0.7749 GB, free: 37.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04356/2.197, allocations: 25.97 MB / 0.8002 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2471/2.444, allocations: 11.63 MB / 0.8116 GB, free: 74.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03698/2.481, allocations: 15.34 MB / 0.8266 GB, free: 72.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00361/2.485, allocations: 1.127 MB / 0.8277 GB, free: 72.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001542/2.486, allocations: 10.2 kB / 0.8277 GB, free: 72.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004926/2.491, allocations: 177 kB / 0.8279 GB, free: 72.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001412/2.493, allocations: 255.3 kB / 0.8281 GB, free: 72.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006188/2.493, allocations: 102.7 kB / 0.8282 GB, free: 72.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007039/2.5, allocations: 2.988 MB / 0.8311 GB, free: 72.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.277e-06/2.501, allocations: 0 / 0.8311 GB, free: 72.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01236/2.513, allocations: 1.825 MB / 0.8329 GB, free: 72.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 4 ($STATESET1.x,$STATESET0.x,joint.phi,joint.R_rel.w[2]) * 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.001395/2.514, allocations: 214.6 kB / 0.8331 GB, free: 72.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01977/2.534, allocations: 10.42 MB / 0.8433 GB, free: 71.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/2.534, allocations: 0 / 0.8433 GB, free: 71.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008058/2.542, allocations: 4.16 MB / 0.8473 GB, free: 70.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004996/2.547, allocations: 0.6353 MB / 0.848 GB, free: 70.61 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:260:5-270:3:writable] Warning: Variable joint.phi has attribute stateSelect=StateSelect.never, but was selected as a state Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03214/2.579, allocations: 14.29 MB / 0.8619 GB, free: 65.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01139/2.591, allocations: 5.132 MB / 0.8669 GB, free: 63.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002185/2.593, allocations: 418.9 kB / 0.8673 GB, free: 63.49 MB / 378.7 MB Notification: Performance of SimCode: time 2.285e-06/2.593, allocations: 0 / 0.8673 GB, free: 63.49 MB / 378.7 MB Notification: Performance of Templates: time 0.7869/3.38, allocations: 243.4 MB / 1.105 GB, free: 110.4 MB / 410.7 MB