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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.572/1.572, allocations: 171.3 MB / 179.2 MB, free: 8.18 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.481e-05/2.485e-05, allocations: 4 kB / 222.5 MB, free: 8.785 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1081, allocations: 38.76 MB / 261.3 MB, free: 1.941 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3322/0.4404, allocations: 95.29 MB / 356.6 MB, free: 9.32 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002447/0.4407, allocations: 85.33 kB / 356.6 MB, free: 9.277 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.169/1.61, allocations: 228.6 MB / 0.5715 GB, free: 23.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.001e-06/1.61, allocations: 0 / 0.5715 GB, free: 23.01 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006062/1.611, allocations: 236.6 kB / 0.5718 GB, free: 23.01 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.04269/1.654, allocations: 12.28 MB / 0.5838 GB, free: 19.02 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/1.654, allocations: 7.219 kB / 0.5838 GB, free: 19.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02715/1.681, allocations: 3.986 MB / 0.5877 GB, free: 18.24 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03753/1.718, allocations: 12.18 MB / 0.5996 GB, free: 16.94 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006253/1.719, allocations: 385.1 kB / 0.5999 GB, free: 16.94 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005549/1.725, allocations: 0.6994 MB / 0.6006 GB, free: 16.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04394/1.769, allocations: 21.49 MB / 0.6216 GB, free: 15.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06083/1.829, allocations: 26.42 MB / 0.6474 GB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005819/1.83, allocations: 99.75 kB / 0.6475 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004786/1.835, allocations: 52 kB / 0.6475 GB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005017/1.84, allocations: 2.58 MB / 0.6501 GB, free: 8.367 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4421/2.282, allocations: 116.9 MB / 0.7642 GB, free: 26.55 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01657/2.299, allocations: 10.49 MB / 0.7745 GB, free: 23.86 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01354/2.312, allocations: 8.494 MB / 0.7828 GB, free: 19.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06023/2.373, allocations: 30.9 MB / 0.8129 GB, free: 2.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/2.373, allocations: 87.69 kB / 0.813 GB, free: 2.156 MB / 410.7 MB Notification: Performance of pre-optimization done (n=483): time 1.151e-05/2.373, allocations: 0 / 0.813 GB, free: 2.156 MB / 410.7 MB Notification: Performance of matching and sorting (n=708): time 0.647/3.02, allocations: 115 MB / 0.9253 GB, free: 87.41 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.326e-05/3.02, allocations: 201.5 kB / 0.9255 GB, free: 87.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01298/3.033, allocations: 6.09 MB / 0.9314 GB, free: 84.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002163/3.035, allocations: 25.7 kB / 0.9315 GB, free: 84.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004886/3.04, allocations: 7.028 MB / 0.9383 GB, free: 78.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003828/3.044, allocations: 2.434 MB / 0.9407 GB, free: 76.34 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002511/3.046, allocations: 0 / 0.9407 GB, free: 76.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001208/3.048, allocations: 0.915 MB / 0.9416 GB, free: 75.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01782/3.065, allocations: 9.701 MB / 0.9511 GB, free: 66.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02217/3.088, allocations: 16.53 MB / 0.9672 GB, free: 48.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02753/3.115, allocations: 12.92 MB / 0.9798 GB, free: 37.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002187/3.115, allocations: 71.28 kB / 0.9799 GB, free: 37.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=1887) (initialization): time 0.3276/3.443, allocations: 27.06 MB / 1.006 GB, free: 84.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002049/3.443, allocations: 109.8 kB / 1.006 GB, free: 84.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003348/3.444, allocations: 237.7 kB / 1.007 GB, free: 84.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004694/3.444, allocations: 363.5 kB / 1.007 GB, free: 84.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02624/3.47, allocations: 4.3 MB / 1.011 GB, free: 84.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005301/3.471, allocations: 483.5 kB / 1.012 GB, free: 84.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01789/3.489, allocations: 0.9512 MB / 1.013 GB, free: 84.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004046/3.493, allocations: 0.7664 MB / 1.013 GB, free: 84.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1086 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1857): * Single equations (assignments): 1851 * 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.006593/3.5, allocations: 0.7649 MB / 1.014 GB, free: 83.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00333/3.503, allocations: 0.7483 MB / 1.015 GB, free: 83.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04074/3.544, allocations: 18.52 MB / 1.033 GB, free: 83.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.08e-05/3.544, allocations: 69.97 kB / 1.033 GB, free: 83.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.383e-05/3.544, allocations: 0 / 1.033 GB, free: 83.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001433/3.544, allocations: 43.14 kB / 1.033 GB, free: 83.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08349/3.628, allocations: 38.46 MB / 1.071 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-05/3.628, allocations: 0 / 1.071 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01755/3.645, allocations: 2.121 MB / 1.073 GB, free: 68.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001015/3.645, allocations: 22.75 kB / 1.073 GB, free: 68.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001863/3.647, allocations: 13.66 kB / 1.073 GB, free: 68.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.681e-05/3.647, allocations: 22.75 kB / 1.073 GB, free: 68.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.255e-06/3.647, allocations: 7.344 kB / 1.073 GB, free: 68.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05438/3.702, allocations: 31.9 MB / 1.104 GB, free: 45.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007787/3.71, allocations: 2.631 MB / 1.106 GB, free: 42.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003514/3.713, allocations: 1.688 kB / 1.106 GB, free: 42.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01003/3.723, allocations: 0.6518 MB / 1.107 GB, free: 42.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002582/3.726, allocations: 367.8 kB / 1.107 GB, free: 42.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001905/3.728, allocations: 169.3 kB / 1.108 GB, free: 42.04 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009494/3.737, allocations: 4.052 MB / 1.112 GB, free: 38.54 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.125e-06/3.737, allocations: 0 / 1.112 GB, free: 38.54 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01713/3.754, allocations: 2.755 MB / 1.114 GB, free: 35.81 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (692): * Single equations (assignments): 689 * 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.002562/3.757, allocations: 293.6 kB / 1.114 GB, free: 35.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03917/3.796, allocations: 22.06 MB / 1.136 GB, free: 15.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.279e-05/3.796, allocations: 1.219 kB / 1.136 GB, free: 15.22 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2597/4.056, allocations: 9.52 MB / 1.145 GB, free: 91.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006029/4.062, allocations: 0.6318 MB / 1.146 GB, free: 91.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07807/4.14, allocations: 29.49 MB / 1.175 GB, free: 87.47 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02041/4.161, allocations: 8.237 MB / 1.183 GB, free: 86.48 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01066/4.171, allocations: 0.6814 MB / 1.183 GB, free: 86.47 MB / 426.7 MB Notification: Performance of SimCode: time 2.706e-06/4.171, allocations: 0 / 1.183 GB, free: 86.47 MB / 426.7 MB Notification: Performance of Templates: time 0.5756/4.747, allocations: 180.1 MB / 1.359 GB, free: 44.29 MB / 426.7 MB