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.Loops.PlanarLoops_analytic.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.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 1.622/1.622, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003583, allocations: 12 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0701/0.07049, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3231/0.3937, allocations: 96.02 MB / 368 MB, free: 10.21 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002572/0.394, allocations: 92.39 kB / 368.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.203/1.597, allocations: 233.9 MB / 0.5879 GB, free: 21.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.708e-06/1.597, allocations: 0 / 0.5879 GB, free: 21.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000634/1.597, allocations: 232.2 kB / 0.5881 GB, free: 21.62 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: 4009 * Number of variables: 4009 Notification: Performance of Generate backend data structure: time 0.04644/1.644, allocations: 13.02 MB / 0.6008 GB, free: 17.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/1.644, allocations: 9.75 kB / 0.6008 GB, free: 17.31 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02709/1.671, allocations: 3.982 MB / 0.6047 GB, free: 16.54 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03686/1.708, allocations: 12.22 MB / 0.6167 GB, free: 15.23 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009781/1.709, allocations: 0.8859 MB / 0.6175 GB, free: 15.21 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005574/1.715, allocations: 1.187 MB / 0.6187 GB, free: 15.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09634/1.811, allocations: 33.79 MB / 0.6517 GB, free: 1.312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005453/1.812, allocations: 104.6 kB / 0.6518 GB, free: 1.215 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004986/1.817, allocations: 0.5373 MB / 0.6523 GB, free: 0.7344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008078/1.825, allocations: 2.76 MB / 0.655 GB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09925/1.924, allocations: 31.44 MB / 0.6857 GB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4373/2.361, allocations: 120.3 MB / 0.8032 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06642/2.428, allocations: 17.35 MB / 0.8202 GB, free: 7.75 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06152/2.489, allocations: 31.1 MB / 0.8505 GB, free: 3.98 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001069/2.489, allocations: 89.39 kB / 0.8506 GB, free: 3.887 MB / 426.7 MB Notification: Performance of pre-optimization done (n=489): time 1.011e-05/2.489, allocations: 0 / 0.8506 GB, free: 3.887 MB / 426.7 MB Notification: Performance of matching and sorting (n=726): time 1.378/3.867, allocations: 172 MB / 1.019 GB, free: 91.19 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/3.867, allocations: 203.2 kB / 1.019 GB, free: 91.03 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01784/3.885, allocations: 7.02 MB / 1.026 GB, free: 90.43 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002078/3.887, allocations: 139 kB / 1.026 GB, free: 90.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005192/3.893, allocations: 6.839 MB / 1.033 GB, free: 86.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004101/3.897, allocations: 2.576 MB / 1.035 GB, free: 84.97 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002773/3.9, allocations: 287.1 kB / 1.035 GB, free: 84.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001256/3.901, allocations: 0.9139 MB / 1.036 GB, free: 84.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02235/3.923, allocations: 10.3 MB / 1.046 GB, free: 84.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02648/3.95, allocations: 16.91 MB / 1.063 GB, free: 73.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02631/3.976, allocations: 13.01 MB / 1.075 GB, free: 68.35 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002054/3.976, allocations: 67.5 kB / 1.076 GB, free: 68.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.06401/4.04, allocations: 27.41 MB / 1.102 GB, free: 57.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001847/4.041, allocations: 101.6 kB / 1.102 GB, free: 57.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003108/4.041, allocations: 225.2 kB / 1.103 GB, free: 57.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003961/4.041, allocations: 349.2 kB / 1.103 GB, free: 57.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02596/4.067, allocations: 4.26 MB / 1.107 GB, free: 56.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005159/4.068, allocations: 466.7 kB / 1.108 GB, free: 56.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01765/4.086, allocations: 1.233 MB / 1.109 GB, free: 55.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003929/4.09, allocations: 0.7368 MB / 1.109 GB, free: 54.89 MB / 426.7 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.01566/4.105, allocations: 5.456 MB / 1.115 GB, free: 50.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003349/4.109, allocations: 0.798 MB / 1.116 GB, free: 49.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04441/4.153, allocations: 19.6 MB / 1.135 GB, free: 32.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.449e-05/4.153, allocations: 72 kB / 1.135 GB, free: 32.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/4.153, allocations: 0 / 1.135 GB, free: 32.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000141/4.153, allocations: 40.05 kB / 1.135 GB, free: 32.09 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3698/4.523, allocations: 42.67 MB / 1.177 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.974e-05/4.523, allocations: 4.781 kB / 1.177 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0178/4.541, allocations: 2.153 MB / 1.179 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.81e-05/4.541, allocations: 35.41 kB / 1.179 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002013/4.543, allocations: 127.5 kB / 1.179 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.123e-05/4.543, allocations: 31 kB / 1.179 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.087e-05/4.543, allocations: 16.38 kB / 1.179 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06567/4.609, allocations: 33.93 MB / 1.212 GB, free: 69.63 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008513/4.618, allocations: 2.707 MB / 1.215 GB, free: 68.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003831/4.622, allocations: 122.7 kB / 1.215 GB, free: 68.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0103/4.632, allocations: 0.7617 MB / 1.215 GB, free: 68.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00253/4.634, allocations: 390.5 kB / 1.216 GB, free: 68.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001713/4.636, allocations: 190.6 kB / 1.216 GB, free: 68.3 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01247/4.649, allocations: 4.891 MB / 1.221 GB, free: 66.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.597e-06/4.649, allocations: 7.875 kB / 1.221 GB, free: 66.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01827/4.667, allocations: 3.169 MB / 1.224 GB, free: 66.33 MB / 426.7 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.002776/4.67, allocations: 413 kB / 1.224 GB, free: 66.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.04548/4.715, allocations: 23.23 MB / 1.247 GB, free: 53.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.082e-05/4.715, allocations: 3.406 kB / 1.247 GB, free: 53.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0186/4.734, allocations: 9.831 MB / 1.257 GB, free: 44.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007356/4.741, allocations: 0.8519 MB / 1.257 GB, free: 43.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08752/4.829, allocations: 39.2 MB / 1.296 GB, free: 8.617 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2881/5.117, allocations: 8.312 MB / 1.304 GB, free: 77.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01052/5.128, allocations: 0.7075 MB / 1.304 GB, free: 77.45 MB / 426.7 MB Notification: Performance of SimCode: time 1.609e-06/5.128, allocations: 0 / 1.304 GB, free: 77.45 MB / 426.7 MB Notification: Performance of Templates: time 0.5973/5.725, allocations: 185.7 MB / 1.486 GB, free: 50.98 MB / 426.7 MB