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.628/1.628, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.774e-05/2.798e-05, allocations: 4 kB / 228.8 MB, free: 15.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2216/0.2216, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3867/0.6084, allocations: 101 MB / 368.6 MB, free: 77.95 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.6087, allocations: 86.39 kB / 368.7 MB, free: 77.9 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.661/1.27, allocations: 127.3 MB / 496 MB, free: 39.55 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.264e-06/1.27, allocations: 0 / 496 MB, free: 39.55 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004306/1.27, allocations: 140.2 kB / 496.2 MB, free: 39.55 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.02639/1.297, allocations: 7.065 MB / 0.4914 GB, free: 38.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/1.297, allocations: 7.5 kB / 0.4914 GB, free: 38.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01595/1.313, allocations: 2.765 MB / 0.4941 GB, free: 38.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02192/1.335, allocations: 7.487 MB / 0.5014 GB, free: 37.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005759/1.335, allocations: 0.5208 MB / 0.502 GB, free: 37.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002941/1.338, allocations: 0.6847 MB / 0.5026 GB, free: 37.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0445/1.383, allocations: 17.13 MB / 0.5194 GB, free: 33.87 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004062/1.383, allocations: 84.75 kB / 0.5194 GB, free: 33.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002524/1.386, allocations: 328.8 kB / 0.5197 GB, free: 33.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002653/1.388, allocations: 1.493 MB / 0.5212 GB, free: 33.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03743/1.426, allocations: 14.32 MB / 0.5352 GB, free: 33.69 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.1048/1.531, allocations: 73.21 MB / 0.6067 GB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0286/1.559, allocations: 7.59 MB / 0.6141 GB, free: 2.203 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2348/1.794, allocations: 4.354 MB / 0.6184 GB, free: 69.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03245/1.827, allocations: 15.91 MB / 0.6339 GB, free: 66.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.673e-05/1.827, allocations: 66.28 kB / 0.634 GB, free: 66.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=261): time 7.45e-06/1.827, allocations: 0 / 0.634 GB, free: 66.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=335): time 0.1506/1.977, allocations: 39.91 MB / 0.6729 GB, free: 61.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02909/2.007, allocations: 15.31 MB / 0.6879 GB, free: 54.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/2.018, allocations: 5.015 MB / 0.6928 GB, free: 52.52 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007838/2.019, allocations: 78.67 kB / 0.6928 GB, free: 52.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003168/2.022, allocations: 4.581 MB / 0.6973 GB, free: 48.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001837/2.024, allocations: 1.253 MB / 0.6985 GB, free: 47.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001166/2.025, allocations: 180.6 kB / 0.6987 GB, free: 47.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0007349/2.026, allocations: 0.6973 MB / 0.6994 GB, free: 47.29 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008732/2.035, allocations: 4.272 MB / 0.7036 GB, free: 45.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01138/2.046, allocations: 9.472 MB / 0.7128 GB, free: 34.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/2.058, allocations: 6.285 MB / 0.719 GB, free: 29.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001513/2.058, allocations: 52 kB / 0.719 GB, free: 29.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.04697/2.105, allocations: 18.09 MB / 0.7367 GB, free: 15.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001549/2.105, allocations: 90.44 kB / 0.7368 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002106/2.105, allocations: 184.9 kB / 0.7369 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02028/2.125, allocations: 4.981 MB / 0.7418 GB, free: 11.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00863/2.134, allocations: 2.027 MB / 0.7438 GB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2974/2.432, allocations: 37.14 MB / 0.7801 GB, free: 50.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01226/2.444, allocations: 0.6358 MB / 0.7807 GB, free: 50.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002145/2.446, allocations: 0.5681 MB / 0.7812 GB, free: 50.85 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 () * 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,(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.003222/2.449, allocations: 0.7933 MB / 0.782 GB, free: 50.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001521/2.451, allocations: 0.5285 MB / 0.7825 GB, free: 50.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03166/2.483, allocations: 11.1 MB / 0.7934 GB, free: 50.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.661e-05/2.483, allocations: 44.38 kB / 0.7934 GB, free: 50.13 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.028/2.511, allocations: 10.15 MB / 0.8033 GB, free: 47.07 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.674e-05/2.511, allocations: 14.44 kB / 0.8033 GB, free: 47.07 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06425/2.575, allocations: 25.24 MB / 0.828 GB, free: 37.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.994e-05/2.575, allocations: 7 kB / 0.828 GB, free: 37.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003112/2.578, allocations: 454.1 kB / 0.8284 GB, free: 37.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01933/2.598, allocations: 4.25 MB / 0.8326 GB, free: 37.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008556/2.599, allocations: 72.39 kB / 0.8326 GB, free: 37.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05333/2.652, allocations: 29.35 MB / 0.8613 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02115/2.673, allocations: 12.59 MB / 0.8736 GB, free: 4.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04677/2.72, allocations: 16.4 MB / 0.8896 GB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004252/2.724, allocations: 1.204 MB / 0.8908 GB, free: 5.199 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001608/2.726, allocations: 59.98 kB / 0.8908 GB, free: 5.141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005569/2.731, allocations: 270.6 kB / 0.8911 GB, free: 4.887 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001401/2.733, allocations: 257.3 kB / 0.8913 GB, free: 4.645 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005833/2.734, allocations: 103.9 kB / 0.8914 GB, free: 4.543 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.2848/3.018, allocations: 3.501 MB / 0.8949 GB, free: 66.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.495e-06/3.018, allocations: 0 / 0.8949 GB, free: 66.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01398/3.032, allocations: 2.377 MB / 0.8972 GB, free: 66.79 MB / 394.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,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 (203): * Single equations (assignments): 195 * 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.001507/3.034, allocations: 264.9 kB / 0.8974 GB, free: 66.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02605/3.06, allocations: 11.1 MB / 0.9083 GB, free: 65.77 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/3.06, allocations: 0 / 0.9083 GB, free: 65.77 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009574/3.07, allocations: 4.6 MB / 0.9128 GB, free: 65.22 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005575/3.075, allocations: 0.7522 MB / 0.9135 GB, free: 65.2 MB / 394.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.03544/3.111, allocations: 14.81 MB / 0.928 GB, free: 62.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0115/3.122, allocations: 5.134 MB / 0.933 GB, free: 61.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002384/3.125, allocations: 436.6 kB / 0.9334 GB, free: 61.5 MB / 394.7 MB Notification: Performance of SimCode: time 2.79e-06/3.125, allocations: 0 / 0.9334 GB, free: 61.5 MB / 394.7 MB Notification: Performance of Templates: time 0.5692/3.694, allocations: 247.9 MB / 1.175 GB, free: 15.45 MB / 426.7 MB