Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.668/1.668, allocations: 171.1 MB / 187.3 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.000365, allocations: 12 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0876/0.08799, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4/0.488, allocations: 101.1 MB / 373.7 MB, free: 5.254 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003366/0.4884, allocations: 98.77 kB / 373.8 MB, free: 5.203 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7474/1.236, allocations: 128.1 MB / 0.4901 GB, free: 62 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.025e-06/1.236, allocations: 0 / 0.4901 GB, free: 62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004505/1.236, allocations: 143.4 kB / 0.4902 GB, free: 61.86 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.03621/1.273, allocations: 7.523 MB / 0.4975 GB, free: 54.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/1.273, allocations: 11.97 kB / 0.4976 GB, free: 54.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02135/1.294, allocations: 2.771 MB / 0.5003 GB, free: 51.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02714/1.321, allocations: 7.532 MB / 0.5076 GB, free: 43.98 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006276/1.322, allocations: 0.5148 MB / 0.5081 GB, free: 43.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003765/1.326, allocations: 0.6918 MB / 0.5088 GB, free: 42.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05534/1.381, allocations: 17.31 MB / 0.5257 GB, free: 24.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004949/1.382, allocations: 83.28 kB / 0.5258 GB, free: 24.25 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003697/1.385, allocations: 331.8 kB / 0.5261 GB, free: 23.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003518/1.389, allocations: 1.488 MB / 0.5275 GB, free: 22.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04693/1.436, allocations: 14.52 MB / 0.5417 GB, free: 7.883 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.6685/2.104, allocations: 73.2 MB / 0.6132 GB, free: 26.8 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0375/2.142, allocations: 7.627 MB / 0.6207 GB, free: 25.27 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0414/2.183, allocations: 15.91 MB / 0.6362 GB, free: 17.43 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.24e-05/2.184, allocations: 65.95 kB / 0.6363 GB, free: 17.37 MB / 362.8 MB Notification: Performance of pre-optimization done (n=261): time 8.145e-06/2.184, allocations: 3.609 kB / 0.6363 GB, free: 17.37 MB / 362.8 MB Notification: Performance of matching and sorting (n=335): time 0.2482/2.432, allocations: 45.52 MB / 0.6807 GB, free: 6.105 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3245/2.756, allocations: 16.09 MB / 0.6964 GB, free: 83.86 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0142/2.771, allocations: 5.705 MB / 0.702 GB, free: 83.54 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001045/2.772, allocations: 74.3 kB / 0.7021 GB, free: 83.51 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00394/2.776, allocations: 4.579 MB / 0.7065 GB, free: 81.46 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00231/2.778, allocations: 1.255 MB / 0.7078 GB, free: 80.74 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/2.779, allocations: 179.4 kB / 0.7079 GB, free: 80.74 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.000623/2.78, allocations: 0.7017 MB / 0.7086 GB, free: 80.4 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01033/2.79, allocations: 4.112 MB / 0.7126 GB, free: 80.38 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01384/2.804, allocations: 9.34 MB / 0.7218 GB, free: 73 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01438/2.819, allocations: 6.056 MB / 0.7277 GB, free: 70.82 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002348/2.819, allocations: 51.31 kB / 0.7277 GB, free: 70.82 MB / 378.8 MB Notification: Performance of matching and sorting (n=1181) (initialization): time 0.07024/2.889, allocations: 17.76 MB / 0.7451 GB, free: 64.91 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001561/2.889, allocations: 85.22 kB / 0.7451 GB, free: 64.91 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002985/2.89, allocations: 184.4 kB / 0.7453 GB, free: 64.91 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02977/2.92, allocations: 4.997 MB / 0.7502 GB, free: 63.98 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01265/2.932, allocations: 1.998 MB / 0.7522 GB, free: 63.75 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07792/3.01, allocations: 38.28 MB / 0.7895 GB, free: 33.8 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01259/3.023, allocations: 0.5546 MB / 0.7901 GB, free: 33.34 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002454/3.025, allocations: 0.5558 MB / 0.7906 GB, free: 32.82 MB / 378.8 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.01028/3.036, allocations: 3.251 MB / 0.7938 GB, free: 29.95 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001624/3.037, allocations: 0.5317 MB / 0.7943 GB, free: 29.42 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04081/3.078, allocations: 10.48 MB / 0.8045 GB, free: 20.16 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001026/3.078, allocations: 47.88 kB / 0.8046 GB, free: 20.12 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.03595/3.114, allocations: 9.569 MB / 0.8139 GB, free: 10.42 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001042/3.114, allocations: 11.95 kB / 0.8139 GB, free: 10.41 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3892/3.504, allocations: 23.5 MB / 0.8369 GB, free: 70.1 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-05/3.504, allocations: 5.75 kB / 0.8369 GB, free: 70.1 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004756/3.509, allocations: 456.7 kB / 0.8373 GB, free: 70.1 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02286/3.531, allocations: 3.685 MB / 0.8409 GB, free: 70.07 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001139/3.533, allocations: 70.42 kB / 0.841 GB, free: 70.06 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06628/3.599, allocations: 28.23 MB / 0.8686 GB, free: 61.2 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.03044/3.629, allocations: 12.65 MB / 0.8809 GB, free: 54.62 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04876/3.678, allocations: 14.27 MB / 0.8949 GB, free: 49.52 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004538/3.683, allocations: 1.15 MB / 0.896 GB, free: 49.13 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002252/3.685, allocations: 57.62 kB / 0.896 GB, free: 49.1 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00681/3.692, allocations: 226.5 kB / 0.8963 GB, free: 49.06 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001792/3.694, allocations: 249.3 kB / 0.8965 GB, free: 49.02 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005995/3.695, allocations: 93.36 kB / 0.8966 GB, free: 49 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.009635/3.704, allocations: 3.553 MB / 0.9001 GB, free: 47.82 MB / 378.8 MB Notification: Performance of sort global known variables: time 9.72e-07/3.704, allocations: 2.062 kB / 0.9001 GB, free: 47.82 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.0134/3.718, allocations: 2.033 MB / 0.902 GB, free: 45.89 MB / 378.8 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.001824/3.72, allocations: 263.6 kB / 0.9023 GB, free: 45.7 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.02482/3.744, allocations: 10.81 MB / 0.9128 GB, free: 36.46 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 1.209e-05/3.744, allocations: 1.656 kB / 0.9129 GB, free: 36.46 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009947/3.754, allocations: 4.223 MB / 0.917 GB, free: 32.65 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006772/3.761, allocations: 0.7468 MB / 0.9177 GB, free: 32.04 MB / 378.8 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.04506/3.806, allocations: 19.74 MB / 0.937 GB, free: 14.14 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01229/3.819, allocations: 5.111 MB / 0.942 GB, free: 10.37 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002751/3.821, allocations: 422.5 kB / 0.9424 GB, free: 9.969 MB / 378.8 MB Notification: Performance of SimCode: time 1.092e-06/3.821, allocations: 3.938 kB / 0.9424 GB, free: 9.965 MB / 378.8 MB Notification: Performance of Templates: time 1.027/4.848, allocations: 244.6 MB / 1.181 GB, free: 88.1 MB / 426.8 MB