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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.665/1.665, allocations: 171.2 MB / 186.8 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007321/0.0007323, allocations: 8 kB / 233.2 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1316, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.341/0.4726, allocations: 101.1 MB / 373.1 MB, free: 5.195 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003197/0.473, allocations: 92.2 kB / 373.2 MB, free: 5.145 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6517/1.125, allocations: 127.2 MB / 0.4887 GB, free: 62.81 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.431e-06/1.125, allocations: 0 / 0.4887 GB, free: 62.81 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004033/1.125, allocations: 146.7 kB / 0.4889 GB, free: 62.67 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.02799/1.153, allocations: 7.524 MB / 0.4962 GB, free: 55.11 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/1.153, allocations: 8.031 kB / 0.4962 GB, free: 55.1 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01607/1.169, allocations: 2.766 MB / 0.4989 GB, free: 52.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02158/1.191, allocations: 7.538 MB / 0.5063 GB, free: 44.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005631/1.192, allocations: 0.5128 MB / 0.5068 GB, free: 44.31 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003056/1.195, allocations: 0.6875 MB / 0.5075 GB, free: 43.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04294/1.238, allocations: 17.26 MB / 0.5243 GB, free: 25.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003623/1.238, allocations: 79.33 kB / 0.5244 GB, free: 25.04 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002563/1.241, allocations: 331.8 kB / 0.5247 GB, free: 24.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002687/1.243, allocations: 1.491 MB / 0.5262 GB, free: 23.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0355/1.279, allocations: 14.52 MB / 0.5403 GB, free: 8.676 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.32/1.599, allocations: 73.2 MB / 0.6118 GB, free: 28.35 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02931/1.628, allocations: 7.642 MB / 0.6193 GB, free: 27.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03319/1.661, allocations: 15.9 MB / 0.6348 GB, free: 19.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.607e-05/1.662, allocations: 62.62 kB / 0.6349 GB, free: 19.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=261): time 7.931e-06/1.662, allocations: 0 / 0.6349 GB, free: 19.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=335): time 0.1803/1.842, allocations: 45.75 MB / 0.6795 GB, free: 8.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2555/2.097, allocations: 16.09 MB / 0.6953 GB, free: 86.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01219/2.11, allocations: 5.073 MB / 0.7002 GB, free: 86.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008608/2.111, allocations: 78.19 kB / 0.7003 GB, free: 86.64 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003433/2.114, allocations: 4.575 MB / 0.7048 GB, free: 84.6 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001915/2.116, allocations: 1.26 MB / 0.706 GB, free: 83.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001295/2.117, allocations: 181.7 kB / 0.7062 GB, free: 83.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007748/2.118, allocations: 0.6964 MB / 0.7068 GB, free: 83.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008886/2.127, allocations: 4.101 MB / 0.7108 GB, free: 83.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01193/2.139, allocations: 9.309 MB / 0.7199 GB, free: 76.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/2.151, allocations: 6.064 MB / 0.7259 GB, free: 74.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001714/2.151, allocations: 53.28 kB / 0.7259 GB, free: 74.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.04881/2.2, allocations: 17.75 MB / 0.7432 GB, free: 68.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001559/2.2, allocations: 84.88 kB / 0.7433 GB, free: 68.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002402/2.201, allocations: 187.5 kB / 0.7435 GB, free: 68.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02725/2.228, allocations: 4.994 MB / 0.7484 GB, free: 67.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01897/2.247, allocations: 2.003 MB / 0.7503 GB, free: 67.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09086/2.338, allocations: 38.29 MB / 0.7877 GB, free: 38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01032/2.348, allocations: 0.5484 MB / 0.7883 GB, free: 37.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002113/2.35, allocations: 0.562 MB / 0.7888 GB, free: 37.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 838 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1047): * Single equations (assignments): 1036 * 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,(3,77.8%) 12,(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.008579/2.359, allocations: 3.253 MB / 0.792 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001551/2.361, allocations: 0.5236 MB / 0.7925 GB, free: 33.63 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02926/2.39, allocations: 10.47 MB / 0.8027 GB, free: 24.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.072e-05/2.39, allocations: 48 kB / 0.8028 GB, free: 24.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.02587/2.416, allocations: 9.569 MB / 0.8121 GB, free: 14.96 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.807e-05/2.416, allocations: 19.88 kB / 0.8121 GB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2948/2.711, allocations: 23.49 MB / 0.8351 GB, free: 73.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.457e-05/2.711, allocations: 10.44 kB / 0.8351 GB, free: 73.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003017/2.714, allocations: 454.9 kB / 0.8355 GB, free: 73.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0164/2.73, allocations: 3.687 MB / 0.8391 GB, free: 73.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008625/2.731, allocations: 68.25 kB / 0.8392 GB, free: 73.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05458/2.786, allocations: 28.22 MB / 0.8667 GB, free: 64.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02369/2.81, allocations: 12.67 MB / 0.8791 GB, free: 58.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03489/2.845, allocations: 15.14 MB / 0.8939 GB, free: 52.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004589/2.849, allocations: 1.147 MB / 0.895 GB, free: 51.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001747/2.851, allocations: 55.34 kB / 0.8951 GB, free: 51.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004771/2.856, allocations: 227.4 kB / 0.8953 GB, free: 51.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001463/2.857, allocations: 251.3 kB / 0.8955 GB, free: 51.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004855/2.858, allocations: 93.05 kB / 0.8956 GB, free: 51.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008508/2.866, allocations: 3.551 MB / 0.8991 GB, free: 50.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.164e-06/2.866, allocations: 0 / 0.8991 GB, free: 50.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.01257/2.879, allocations: 2.028 MB / 0.9011 GB, free: 48.17 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 4 ($STATESET2.x,$STATESET1.x,joint.phi,bodyOfJoint.body.w_a[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (204): * Single equations (assignments): 196 * 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%) 11,(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.00144/2.88, allocations: 266.3 kB / 0.9013 GB, free: 47.97 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.02021/2.901, allocations: 10.81 MB / 0.9119 GB, free: 38.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/2.901, allocations: 4 kB / 0.9119 GB, free: 38.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008199/2.909, allocations: 4.219 MB / 0.916 GB, free: 34.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005148/2.914, allocations: 0.7523 MB / 0.9167 GB, free: 34.31 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.03823/2.952, allocations: 19.69 MB / 0.936 GB, free: 16.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01118/2.964, allocations: 5.109 MB / 0.941 GB, free: 12.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002138/2.966, allocations: 418.3 kB / 0.9414 GB, free: 12.29 MB / 378.7 MB Notification: Performance of SimCode: time 2.027e-06/2.966, allocations: 0 / 0.9414 GB, free: 12.29 MB / 378.7 MB Notification: Performance of Templates: time 0.8155/3.781, allocations: 244.6 MB / 1.18 GB, free: 72.59 MB / 410.7 MB