Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadModel(Modelica): time 1.026/1.026, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002643/0.0002644, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05314/0.05343, allocations: 25.16 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2367/0.2901, allocations: 53.03 MB / 237.1 MB, free: 9.773 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.2905, allocations: 80.33 kB / 237.1 MB, free: 9.73 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.889/7.18, allocations: 0.7431 GB / 0.9747 GB, free: 35.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.574e-06/7.18, allocations: 0 / 0.9747 GB, free: 35.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0004223/7.18, allocations: 160.3 kB / 0.9748 GB, free: 35.04 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3137 * Number of variables: 3137 Notification: Performance of Generate backend data structure: time 0.5045/7.685, allocations: 67.82 MB / 1.041 GB, free: 23.08 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/7.685, allocations: 11.86 kB / 1.041 GB, free: 23.07 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 17.73/25.41, allocations: 1.672 GB / 2.713 GB, free: 34.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1061/25.52, allocations: 28.53 MB / 2.741 GB, free: 29.35 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001039/25.52, allocations: 0.632 MB / 2.741 GB, free: 29.11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.03026/25.55, allocations: 0.8114 MB / 2.742 GB, free: 28.89 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.397/30.95, allocations: 0.5219 GB / 3.264 GB, free: 24.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006645/30.95, allocations: 49.72 kB / 3.264 GB, free: 24.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.02872/30.98, allocations: 376.8 kB / 3.265 GB, free: 24.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01193/30.99, allocations: 3.008 MB / 3.267 GB, free: 23.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 10.46/41.45, allocations: 1.023 GB / 4.29 GB, free: 43.68 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 12.63/54.09, allocations: 1.52 GB / 5.81 GB, free: 40.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 1.439/55.53, allocations: 130.6 MB / 5.938 GB, free: 101.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4933/56.02, allocations: 121.4 MB / 6.057 GB, free: 88.08 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.467e-05/56.02, allocations: 77.84 kB / 6.057 GB, free: 88.04 MB / 362.7 MB Notification: Performance of pre-optimization done (n=451): time 9.799e-06/56.02, allocations: 0 / 6.057 GB, free: 88.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=501): time 3.875/59.89, allocations: 389.3 MB / 6.437 GB, free: 102.3 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/59.89, allocations: 241.5 kB / 6.437 GB, free: 102.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07237/59.97, allocations: 12.57 MB / 6.449 GB, free: 99.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.007934/59.98, allocations: 97.14 kB / 6.449 GB, free: 99.3 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Mechanics/MultiBody/Joints.mo:2345:5-2348:81:writable] Warning: The parameter universalSpherical.rodLength has fixed = false and a binding equation universalSpherical.rodLength = 1.048808848170152, which is probably redundant. The binding equation will be ignored, as it is expected for Modelica 3.1. Notification: Performance of collectInitialEqns (initialization): time 0.005728/59.98, allocations: 5.733 MB / 6.455 GB, free: 94.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.009806/59.99, allocations: 1.836 MB / 6.457 GB, free: 92.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01005/60, allocations: 245.2 kB / 6.457 GB, free: 92.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.001181/60, allocations: 0.8422 MB / 6.458 GB, free: 91.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.13/61.13, allocations: 118 MB / 6.573 GB, free: 85.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.369/62.5, allocations: 124.2 MB / 6.694 GB, free: 89.34 MB / 362.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 1.652/64.15, allocations: 171.7 MB / 6.862 GB, free: 89.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003584/64.15, allocations: 67.34 kB / 6.862 GB, free: 89.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=1615) (initialization): time 2.268/66.42, allocations: 225.7 MB / 7.083 GB, free: 88.24 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000215/66.42, allocations: 108.2 kB / 7.083 GB, free: 88.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004323/66.42, allocations: 235.5 kB / 7.083 GB, free: 88.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04681/66.47, allocations: 6.467 MB / 7.089 GB, free: 87.67 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.6679/67.14, allocations: 50.2 MB / 7.138 GB, free: 88.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06442/67.2, allocations: 27.87 MB / 7.165 GB, free: 81.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.4844/67.69, allocations: 49.51 MB / 7.214 GB, free: 81.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01179/67.7, allocations: 1.969 MB / 7.216 GB, free: 80.88 MB / 362.7 MB Warning: Assuming fixed start value for the following 1 variables: universalSpherical.rodLength:VARIABLE(min = 0.0 start = 1.048808848170152 unit = "m" fixed = true final = true ) "Length of rod (distance between origin of frame_a and origin of frame_b)" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: j1.phi = $START.j1.phi. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1086 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1509): * Single equations (assignments): 1501 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 1 {1 15} Notification: Performance of prepare postOptimizeDAE: time 0.02516/67.72, allocations: 4.129 MB / 7.22 GB, free: 77.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01001/67.73, allocations: 0.6545 MB / 7.22 GB, free: 77.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.195/68.93, allocations: 114 MB / 7.332 GB, free: 73.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002109/68.93, allocations: 72.52 kB / 7.332 GB, free: 73.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-05/68.93, allocations: 12.83 kB / 7.332 GB, free: 73.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001575/68.93, allocations: 26.89 kB / 7.332 GB, free: 72.99 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 1.531/70.46, allocations: 175.5 MB / 7.503 GB, free: 87.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-05/70.46, allocations: 6.375 kB / 7.503 GB, free: 87.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.3824/70.84, allocations: 46.03 MB / 7.548 GB, free: 74.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03281/70.87, allocations: 4.112 MB / 7.552 GB, free: 70.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00803/70.88, allocations: 1.15 MB / 7.553 GB, free: 69.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2879/71.17, allocations: 17.91 MB / 7.571 GB, free: 86.05 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/71.17, allocations: 9.531 kB / 7.571 GB, free: 86.05 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.299/74.47, allocations: 330.7 MB / 7.894 GB, free: 84.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.02819/74.5, allocations: 6.861 MB / 7.9 GB, free: 84.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.01224/74.51, allocations: 81.47 kB / 7.901 GB, free: 84.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.3925/74.9, allocations: 45.25 MB / 7.945 GB, free: 84.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002142/74.9, allocations: 284.6 kB / 7.945 GB, free: 84.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.008288/74.91, allocations: 1.257 MB / 7.946 GB, free: 84.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.06552/74.98, allocations: 9.551 MB / 7.956 GB, free: 84.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.72e-07/74.98, allocations: 0 / 7.956 GB, free: 84.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.03951/75.02, allocations: 4.482 MB / 7.96 GB, free: 84.51 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 2 (j1.phi,j1.w) * 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 (416): * Single equations (assignments): 408 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007401/75.03, allocations: 258.2 kB / 7.96 GB, free: 84.41 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/Mechanics/MultiBody/Joints.mo:269:5-279:3:writable] Warning: Variable j1.phi has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 2.332/77.36, allocations: 232.8 MB / 8.188 GB, free: 90.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.537e-05/77.36, allocations: 3.969 kB / 8.188 GB, free: 90.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.114/78.47, allocations: 112.4 MB / 8.297 GB, free: 91.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01195/78.48, allocations: 0.6243 MB / 8.298 GB, free: 91.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.197/79.68, allocations: 131.8 MB / 8.427 GB, free: 75.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0166/79.7, allocations: 6.178 MB / 8.433 GB, free: 69.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04988/79.75, allocations: 4.306 MB / 8.437 GB, free: 64.99 MB / 362.7 MB Notification: Performance of SimCode: time 1.412e-06/79.75, allocations: 4 kB / 8.437 GB, free: 64.99 MB / 362.7 MB Notification: Performance of Templates: time 2.578/82.32, allocations: 0.5255 GB / 8.962 GB, free: 76.07 MB / 378.7 MB