Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.849/1.849, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003558, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.07908, allocations: 44.5 MB / 308.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.3366/0.4158, allocations: 90.82 MB / 399.2 MB, free: 6.965 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04768/0.4635, allocations: 21.4 MB / 420.6 MB, free: 1.266 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02055/0.4841, allocations: 453.6 kB / 421 MB, free: 1.203 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01389/0.498, allocations: 4.599 MB / 425.6 MB, free: 13.85 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04316/0.5413, allocations: 12.33 MB / 437.9 MB, free: 5.84 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008996/0.5503, allocations: 2.056 MB / 440 MB, free: 3.781 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01265/0.563, allocations: 5.618 MB / 445.6 MB, free: 14.16 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03565/0.5987, allocations: 18.27 MB / 463.9 MB, free: 11.79 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006742/0.6055, allocations: 2.999 MB / 466.9 MB, free: 8.785 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007916/0.6134, allocations: 3.934 MB / 470.8 MB, free: 4.84 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002472/0.616, allocations: 468 kB / 471.3 MB, free: 4.383 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005359/0.6214, allocations: 1.604 MB / 472.9 MB, free: 2.777 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007029/0.6284, allocations: 4.388 MB / 477.3 MB, free: 14.38 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004347/0.6328, allocations: 2.307 MB / 479.6 MB, free: 12.06 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02777/0.6606, allocations: 18.5 MB / 498.1 MB, free: 9.516 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.445e-06/0.6607, allocations: 0 / 498.1 MB, free: 9.516 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.6607, allocations: 0 / 498.1 MB, free: 9.516 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004888/0.6612, allocations: 0 / 498.1 MB, free: 9.516 MB / 394.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.03701/0.6982, allocations: 12.45 MB / 0.4986 GB, free: 12.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.6983, allocations: 8.031 kB / 0.4986 GB, free: 12.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02065/0.7189, allocations: 3.725 MB / 0.5022 GB, free: 9.215 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0205/0.7395, allocations: 7.864 MB / 0.5099 GB, free: 1.273 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009702/0.7405, allocations: 0.7457 MB / 0.5106 GB, free: 0.5273 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004929/0.7454, allocations: 1.101 MB / 0.5117 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.528/1.273, allocations: 35 MB / 0.5459 GB, free: 135.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004148/1.274, allocations: 83.06 kB / 0.5459 GB, free: 135.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003189/1.277, allocations: 453.1 kB / 0.5464 GB, free: 135.4 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007139/1.284, allocations: 4.309 MB / 0.5506 GB, free: 133.8 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08455/1.369, allocations: 32.92 MB / 0.5827 GB, free: 106.6 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4039/1.773, allocations: 113.9 MB / 0.694 GB, free: 112.8 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07205/1.845, allocations: 18.68 MB / 0.7122 GB, free: 112 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05484/1.9, allocations: 32.73 MB / 0.7442 GB, free: 93.38 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.896e-05/1.9, allocations: 77.95 kB / 0.7443 GB, free: 93.3 MB / 426.8 MB Notification: Performance of pre-optimization done (n=489): time 1.087e-05/1.9, allocations: 0 / 0.7443 GB, free: 93.3 MB / 426.8 MB Notification: Performance of matching and sorting (n=726): time 1.042/2.942, allocations: 171.6 MB / 0.9119 GB, free: 109.2 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.486e-05/2.942, allocations: 208.3 kB / 0.9121 GB, free: 109 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01527/2.958, allocations: 8.347 MB / 0.9202 GB, free: 100.6 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001859/2.96, allocations: 138.6 kB / 0.9204 GB, free: 100.5 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004369/2.964, allocations: 6.804 MB / 0.927 GB, free: 93.68 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003754/2.968, allocations: 2.583 MB / 0.9295 GB, free: 91.12 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002362/2.97, allocations: 289.5 kB / 0.9298 GB, free: 90.84 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0009976/2.971, allocations: 0.9026 MB / 0.9307 GB, free: 89.92 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01994/2.991, allocations: 10.53 MB / 0.941 GB, free: 79.39 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02363/3.015, allocations: 17.13 MB / 0.9577 GB, free: 59.34 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02439/3.039, allocations: 13.19 MB / 0.9706 GB, free: 46.13 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001823/3.04, allocations: 64 kB / 0.9706 GB, free: 46.07 MB / 442.8 MB Notification: Performance of matching and sorting (n=1862) (initialization): time 0.05814/3.098, allocations: 27.79 MB / 0.9978 GB, free: 18.23 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000183/3.098, allocations: 100 kB / 0.9979 GB, free: 18.14 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002665/3.098, allocations: 224.5 kB / 0.9981 GB, free: 17.92 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003516/3.099, allocations: 344 kB / 0.9984 GB, free: 17.58 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.271/3.37, allocations: 4.458 MB / 1.003 GB, free: 124.9 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006583/3.37, allocations: 464.6 kB / 1.003 GB, free: 124.9 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01631/3.387, allocations: 1.138 MB / 1.004 GB, free: 124.9 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003812/3.391, allocations: 0.7468 MB / 1.005 GB, free: 124.9 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1018 * 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 (1832): * Single equations (assignments): 1826 * 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.01421/3.405, allocations: 5.441 MB / 1.01 GB, free: 123.5 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002913/3.408, allocations: 0.8 MB / 1.011 GB, free: 123.5 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04335/3.451, allocations: 19.92 MB / 1.031 GB, free: 114.3 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.033e-05/3.451, allocations: 69.38 kB / 1.031 GB, free: 114.3 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-05/3.451, allocations: 0 / 1.031 GB, free: 114.3 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001371/3.451, allocations: 37.89 kB / 1.031 GB, free: 114.3 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09266/3.544, allocations: 43.02 MB / 1.073 GB, free: 89.48 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.265e-05/3.544, allocations: 8 kB / 1.073 GB, free: 89.48 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01651/3.561, allocations: 2.405 MB / 1.075 GB, free: 87.07 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.292e-05/3.561, allocations: 28 kB / 1.075 GB, free: 87.04 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00191/3.563, allocations: 135.9 kB / 1.075 GB, free: 86.91 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.074e-05/3.563, allocations: 31.94 kB / 1.075 GB, free: 86.88 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-06/3.563, allocations: 8 kB / 1.075 GB, free: 86.87 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05839/3.621, allocations: 33.39 MB / 1.108 GB, free: 53.71 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007854/3.629, allocations: 2.749 MB / 1.111 GB, free: 51.28 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003241/3.632, allocations: 117.2 kB / 1.111 GB, free: 51.16 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009454/3.642, allocations: 0.7487 MB / 1.111 GB, free: 50.42 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002418/3.644, allocations: 392.3 kB / 1.112 GB, free: 50.04 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001741/3.646, allocations: 180.8 kB / 1.112 GB, free: 49.86 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.01074/3.657, allocations: 5.278 MB / 1.117 GB, free: 44.59 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.56e-06/3.657, allocations: 0 / 1.117 GB, free: 44.59 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.01604/3.673, allocations: 3.177 MB / 1.12 GB, free: 41.43 MB / 442.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.002719/3.676, allocations: 415.3 kB / 1.121 GB, free: 41.04 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.04212/3.718, allocations: 23.56 MB / 1.144 GB, free: 17.55 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 9.903e-06/3.718, allocations: 0 / 1.144 GB, free: 17.55 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01878/3.737, allocations: 9.966 MB / 1.153 GB, free: 7.586 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006683/3.744, allocations: 0.866 MB / 1.154 GB, free: 6.734 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3182/4.062, allocations: 39.08 MB / 1.192 GB, free: 123.9 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01754/4.079, allocations: 8.276 MB / 1.2 GB, free: 121.3 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00951/4.089, allocations: 0.7123 MB / 1.201 GB, free: 121.2 MB / 442.8 MB Notification: Performance of SimCode: time 1.638e-06/4.089, allocations: 3.281 kB / 1.201 GB, free: 121.2 MB / 442.8 MB Notification: Performance of Templates: time 0.5315/4.621, allocations: 187 MB / 1.384 GB, free: 81.29 MB / 442.8 MB