Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 1.787/1.787, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003773, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.103, allocations: 44.5 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4527/0.5558, allocations: 101.7 MB / 410.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.5562, allocations: 96.53 kB / 410.8 MB, free: 11.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.235/1.791, allocations: 235.4 MB / 0.631 GB, free: 49.29 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.986e-06/1.792, allocations: 4 kB / 0.631 GB, free: 49.29 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008894/1.792, allocations: 231.9 kB / 0.6312 GB, free: 49.06 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.05995/1.852, allocations: 13.07 MB / 0.644 GB, free: 35.95 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/1.852, allocations: 8.031 kB / 0.644 GB, free: 35.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03365/1.886, allocations: 3.985 MB / 0.6479 GB, free: 31.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04593/1.932, allocations: 12.32 MB / 0.6599 GB, free: 19.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001099/1.933, allocations: 0.8894 MB / 0.6608 GB, free: 18.83 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00697/1.94, allocations: 1.19 MB / 0.662 GB, free: 17.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7425/2.683, allocations: 35.45 MB / 0.6966 GB, free: 39.38 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008635/2.684, allocations: 96.66 kB / 0.6967 GB, free: 39.38 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006782/2.691, allocations: 0.5344 MB / 0.6972 GB, free: 39.38 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005874/2.697, allocations: 2.579 MB / 0.6997 GB, free: 39.36 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.12/2.817, allocations: 33.15 MB / 0.7321 GB, free: 39.28 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6206/3.437, allocations: 122.9 MB / 0.8521 GB, free: 80.25 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1003/3.538, allocations: 18.55 MB / 0.8702 GB, free: 79.55 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07466/3.612, allocations: 32.68 MB / 0.9021 GB, free: 71 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001243/3.613, allocations: 80.83 kB / 0.9022 GB, free: 70.96 MB / 458.8 MB Notification: Performance of pre-optimization done (n=489): time 9.578e-06/3.613, allocations: 3.375 kB / 0.9022 GB, free: 70.96 MB / 458.8 MB Notification: Performance of matching and sorting (n=726): time 1.718/5.33, allocations: 173.2 MB / 1.071 GB, free: 77.34 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/5.331, allocations: 201.6 kB / 1.072 GB, free: 77.17 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02239/5.353, allocations: 7.869 MB / 1.079 GB, free: 74.41 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002676/5.356, allocations: 141.5 kB / 1.079 GB, free: 74.3 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00624/5.362, allocations: 6.835 MB / 1.086 GB, free: 69.01 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005354/5.367, allocations: 2.579 MB / 1.089 GB, free: 67.07 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003753/5.371, allocations: 288.7 kB / 1.089 GB, free: 66.85 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001538/5.373, allocations: 0.9096 MB / 1.09 GB, free: 66.27 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03835/5.411, allocations: 10.3 MB / 1.1 GB, free: 62 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03695/5.448, allocations: 16.96 MB / 1.116 GB, free: 49.1 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03176/5.48, allocations: 13.01 MB / 1.129 GB, free: 43.52 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003233/5.48, allocations: 64.42 kB / 1.129 GB, free: 43.52 MB / 458.8 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.07522/5.556, allocations: 27.42 MB / 1.156 GB, free: 23.2 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000179/5.556, allocations: 103.9 kB / 1.156 GB, free: 23.1 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004042/5.556, allocations: 224 kB / 1.156 GB, free: 22.88 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004021/5.557, allocations: 348 kB / 1.157 GB, free: 22.54 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03647/5.593, allocations: 4.239 MB / 1.161 GB, free: 19.19 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006105/5.594, allocations: 460.3 kB / 1.161 GB, free: 18.79 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02277/5.617, allocations: 1.206 MB / 1.162 GB, free: 17.92 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004566/5.621, allocations: 0.7433 MB / 1.163 GB, free: 17.2 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1031 * Number of states: 0 () * Number of discrete variables: 99 (body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[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 (1845): * Single equations (assignments): 1839 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01891/5.64, allocations: 5.459 MB / 1.168 GB, free: 12.37 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004377/5.645, allocations: 0.7983 MB / 1.169 GB, free: 11.56 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4342/6.079, allocations: 21.02 MB / 1.19 GB, free: 73.04 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000136/6.079, allocations: 71.12 kB / 1.19 GB, free: 73.04 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-05/6.079, allocations: 4.5 kB / 1.19 GB, free: 73.04 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002336/6.079, allocations: 34.8 kB / 1.19 GB, free: 73.04 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1237/6.203, allocations: 42.53 MB / 1.231 GB, free: 66.47 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-05/6.203, allocations: 6.438 kB / 1.231 GB, free: 66.47 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02556/6.229, allocations: 2.137 MB / 1.233 GB, free: 66.43 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001184/6.229, allocations: 32.06 kB / 1.233 GB, free: 66.43 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00271/6.232, allocations: 129.9 kB / 1.234 GB, free: 66.34 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001162/6.232, allocations: 25.69 kB / 1.234 GB, free: 66.34 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.468e-06/6.232, allocations: 9.875 kB / 1.234 GB, free: 66.34 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07929/6.311, allocations: 32.9 MB / 1.266 GB, free: 51.23 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01028/6.322, allocations: 2.709 MB / 1.268 GB, free: 50.18 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005213/6.327, allocations: 121.1 kB / 1.268 GB, free: 50.09 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01556/6.342, allocations: 0.7423 MB / 1.269 GB, free: 50 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00305/6.346, allocations: 395 kB / 1.27 GB, free: 49.95 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002113/6.348, allocations: 178.5 kB / 1.27 GB, free: 49.9 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.01451/6.362, allocations: 4.895 MB / 1.274 GB, free: 48.25 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.743e-06/6.362, allocations: 3.969 kB / 1.274 GB, free: 48.25 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.0209/6.383, allocations: 3.17 MB / 1.278 GB, free: 47.94 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * Number of states: 2 (rev.phi,rev.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 (710): * Single equations (assignments): 707 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003803/6.387, allocations: 412.1 kB / 1.278 GB, free: 47.76 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.05336/6.44, allocations: 23.24 MB / 1.301 GB, free: 34.43 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.36e-05/6.441, allocations: 3.281 kB / 1.301 GB, free: 34.43 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.02221/6.463, allocations: 9.824 MB / 1.31 GB, free: 25.6 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008709/6.472, allocations: 0.8615 MB / 1.311 GB, free: 24.86 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4798/6.951, allocations: 40.29 MB / 1.35 GB, free: 86.87 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02645/6.978, allocations: 8.271 MB / 1.359 GB, free: 85.87 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01282/6.991, allocations: 0.7037 MB / 1.359 GB, free: 85.87 MB / 474.8 MB Notification: Performance of SimCode: time 1.654e-06/6.991, allocations: 0 / 1.359 GB, free: 85.87 MB / 474.8 MB Notification: Performance of Templates: time 0.7907/7.782, allocations: 185.7 MB / 1.541 GB, free: 46.54 MB / 474.8 MB