Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 1.927/1.927, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004861/0.0004862, allocations: 12 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 44.51 MB / 309.1 MB, free: 364 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.449/0.5554, allocations: 101.7 MB / 410.8 MB, free: 12.26 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.5558, allocations: 101.9 kB / 410.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.217/1.773, allocations: 235.4 MB / 0.6311 GB, free: 48.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.773, allocations: 0 / 0.6311 GB, free: 48.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008232/1.774, allocations: 237.9 kB / 0.6313 GB, free: 48.57 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.05821/1.832, allocations: 13.07 MB / 0.6441 GB, free: 35.46 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/1.832, allocations: 8.031 kB / 0.6441 GB, free: 35.45 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03321/1.865, allocations: 3.985 MB / 0.648 GB, free: 31.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04551/1.911, allocations: 12.31 MB / 0.66 GB, free: 19.19 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001073/1.912, allocations: 0.8928 MB / 0.6609 GB, free: 18.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007059/1.919, allocations: 1.191 MB / 0.6621 GB, free: 17.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4896/2.409, allocations: 35.35 MB / 0.6966 GB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001059/2.41, allocations: 97.84 kB / 0.6967 GB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006704/2.416, allocations: 0.5349 MB / 0.6972 GB, free: 41.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005795/2.422, allocations: 2.577 MB / 0.6997 GB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.121/2.543, allocations: 33.16 MB / 0.7321 GB, free: 41.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3127/2.856, allocations: 122.7 MB / 0.8519 GB, free: 0.5195 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4391/3.295, allocations: 18.57 MB / 0.87 GB, free: 91.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07129/3.367, allocations: 32.67 MB / 0.9019 GB, free: 82.65 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.716e-05/3.367, allocations: 87.36 kB / 0.902 GB, free: 82.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=489): time 1.024e-05/3.367, allocations: 0 / 0.902 GB, free: 82.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=726): time 1.606/4.973, allocations: 173.2 MB / 1.071 GB, free: 78.14 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/4.973, allocations: 200.8 kB / 1.071 GB, free: 77.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02115/4.994, allocations: 7.882 MB / 1.079 GB, free: 75.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002628/4.997, allocations: 140 kB / 1.079 GB, free: 75.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006653/5.004, allocations: 7.068 MB / 1.086 GB, free: 69.76 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005141/5.009, allocations: 2.576 MB / 1.089 GB, free: 67.82 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003806/5.013, allocations: 287 kB / 1.089 GB, free: 67.59 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001759/5.015, allocations: 0.9126 MB / 1.09 GB, free: 67.03 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02623/5.041, allocations: 10.3 MB / 1.1 GB, free: 62.76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03144/5.072, allocations: 16.91 MB / 1.116 GB, free: 49.85 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03178/5.104, allocations: 13.01 MB / 1.129 GB, free: 44.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002815/5.105, allocations: 62.09 kB / 1.129 GB, free: 44.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.07652/5.181, allocations: 27.67 MB / 1.156 GB, free: 23.02 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001816/5.181, allocations: 104 kB / 1.156 GB, free: 22.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004136/5.182, allocations: 224 kB / 1.156 GB, free: 22.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000405/5.182, allocations: 351.9 kB / 1.157 GB, free: 22.36 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03662/5.219, allocations: 4.233 MB / 1.161 GB, free: 19.02 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000601/5.219, allocations: 466.2 kB / 1.161 GB, free: 18.61 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02397/5.243, allocations: 1.202 MB / 1.162 GB, free: 17.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004507/5.248, allocations: 0.7516 MB / 1.163 GB, free: 17.02 MB / 458.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.01791/5.266, allocations: 5.454 MB / 1.169 GB, free: 12.2 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003525/5.269, allocations: 0.7983 MB / 1.169 GB, free: 11.39 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4241/5.694, allocations: 19.62 MB / 1.188 GB, free: 75.37 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.826e-05/5.694, allocations: 75.67 kB / 1.189 GB, free: 75.37 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.656e-05/5.694, allocations: 3.156 kB / 1.189 GB, free: 75.37 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00016/5.694, allocations: 33.52 kB / 1.189 GB, free: 75.37 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1198/5.814, allocations: 42.52 MB / 1.23 GB, free: 64.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.595e-05/5.814, allocations: 10.22 kB / 1.23 GB, free: 64.96 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02497/5.839, allocations: 2.138 MB / 1.232 GB, free: 64.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001189/5.839, allocations: 28.59 kB / 1.232 GB, free: 64.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002564/5.842, allocations: 129.5 kB / 1.232 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001021/5.842, allocations: 37.66 kB / 1.232 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.396e-05/5.842, allocations: 6.344 kB / 1.232 GB, free: 64.82 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0769/5.919, allocations: 32.9 MB / 1.265 GB, free: 49.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01085/5.93, allocations: 2.71 MB / 1.267 GB, free: 48.66 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004918/5.935, allocations: 120.1 kB / 1.267 GB, free: 48.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01471/5.949, allocations: 0.7458 MB / 1.268 GB, free: 48.49 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003213/5.953, allocations: 390.7 kB / 1.268 GB, free: 48.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002253/5.955, allocations: 181 kB / 1.269 GB, free: 48.39 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01422/5.969, allocations: 4.894 MB / 1.273 GB, free: 46.73 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.465e-06/5.969, allocations: 0 / 1.273 GB, free: 46.73 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0205/5.99, allocations: 3.174 MB / 1.276 GB, free: 46.42 MB / 458.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.003492/5.993, allocations: 417.5 kB / 1.277 GB, free: 46.24 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.05499/6.048, allocations: 23.23 MB / 1.3 GB, free: 29.28 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.38e-05/6.048, allocations: 4 kB / 1.3 GB, free: 29.28 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02249/6.071, allocations: 9.83 MB / 1.309 GB, free: 20.45 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008776/6.08, allocations: 0.8602 MB / 1.31 GB, free: 19.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5088/6.589, allocations: 38.95 MB / 1.348 GB, free: 82.17 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02586/6.615, allocations: 8.274 MB / 1.356 GB, free: 81.18 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.02944/6.644, allocations: 5.056 MB / 1.361 GB, free: 81.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01037/6.655, allocations: 0.6015 MB / 1.362 GB, free: 81.09 MB / 474.7 MB Notification: Performance of SimCode: time 2.064e-06/6.655, allocations: 0 / 1.362 GB, free: 81.09 MB / 474.7 MB Notification: Performance of Templates: time 0.3288/6.983, allocations: 122.4 MB / 1.481 GB, free: 24.38 MB / 474.7 MB