Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadModel(Modelica): time 1.728/1.728, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003619, allocations: 8 kB / 233.9 MB, free: 296 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08933, allocations: 38.77 MB / 272.6 MB, free: 9.438 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4113/0.5007, allocations: 96.02 MB / 368.6 MB, free: 2.578 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003599/0.5011, allocations: 98.08 kB / 368.7 MB, free: 2.484 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.48/1.981, allocations: 235.4 MB / 0.59 GB, free: 24.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.737e-06/1.981, allocations: 0 / 0.59 GB, free: 24.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007934/1.982, allocations: 235 kB / 0.5902 GB, free: 24.18 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.06179/2.044, allocations: 13.07 MB / 0.603 GB, free: 19.84 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/2.044, allocations: 12.97 kB / 0.603 GB, free: 19.83 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03446/2.078, allocations: 3.983 MB / 0.6069 GB, free: 19.06 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04797/2.126, allocations: 12.31 MB / 0.6189 GB, free: 17.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001203/2.128, allocations: 0.8936 MB / 0.6198 GB, free: 17.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007613/2.135, allocations: 1.176 MB / 0.6209 GB, free: 17.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1374/2.273, allocations: 35.36 MB / 0.6554 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009602/2.274, allocations: 114.4 kB / 0.6555 GB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007004/2.281, allocations: 0.5384 MB / 0.6561 GB, free: 9.949 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006449/2.287, allocations: 2.582 MB / 0.6586 GB, free: 7.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4674/2.755, allocations: 33.14 MB / 0.691 GB, free: 46.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2401/2.995, allocations: 122.7 MB / 0.8107 GB, free: 10.54 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.09807/3.093, allocations: 18.57 MB / 0.8289 GB, free: 3.879 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3998/3.493, allocations: 32.68 MB / 0.8608 GB, free: 82.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001176/3.493, allocations: 87.16 kB / 0.8609 GB, free: 82.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=489): time 1.373e-05/3.493, allocations: 2.25 kB / 0.8609 GB, free: 82.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=726): time 1.747/5.24, allocations: 173.2 MB / 1.03 GB, free: 74.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/5.24, allocations: 204 kB / 1.03 GB, free: 73.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03217/5.273, allocations: 7.872 MB / 1.038 GB, free: 71.17 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003835/5.276, allocations: 138.1 kB / 1.038 GB, free: 71.05 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.009628/5.286, allocations: 7.071 MB / 1.045 GB, free: 65.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00762/5.294, allocations: 2.578 MB / 1.047 GB, free: 63.78 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005156/5.299, allocations: 284.4 kB / 1.048 GB, free: 63.55 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.002443/5.302, allocations: 0.9062 MB / 1.049 GB, free: 62.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0396/5.341, allocations: 10.3 MB / 1.059 GB, free: 58.72 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04547/5.387, allocations: 16.91 MB / 1.075 GB, free: 45.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04485/5.432, allocations: 13.02 MB / 1.088 GB, free: 35.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002742/5.432, allocations: 64 kB / 1.088 GB, free: 35.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=1875) (initialization): time 0.07589/5.508, allocations: 27.67 MB / 1.115 GB, free: 10.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001861/5.508, allocations: 100 kB / 1.115 GB, free: 10.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000427/5.509, allocations: 228 kB / 1.115 GB, free: 10.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000399/5.509, allocations: 350.1 kB / 1.116 GB, free: 10.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.3944/5.903, allocations: 4.392 MB / 1.12 GB, free: 69.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008538/5.904, allocations: 462.4 kB / 1.12 GB, free: 69.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0233/5.928, allocations: 1.199 MB / 1.122 GB, free: 69.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005302/5.933, allocations: 0.7496 MB / 1.122 GB, free: 69.18 MB / 410.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.021/5.954, allocations: 5.454 MB / 1.128 GB, free: 69 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004771/5.959, allocations: 0.8017 MB / 1.128 GB, free: 69 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05756/6.016, allocations: 19.62 MB / 1.148 GB, free: 68.68 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001105/6.017, allocations: 71.67 kB / 1.148 GB, free: 68.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-05/6.017, allocations: 1.5 kB / 1.148 GB, free: 68.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001951/6.017, allocations: 35.61 kB / 1.148 GB, free: 68.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1286/6.145, allocations: 42.53 MB / 1.189 GB, free: 53.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.012e-05/6.146, allocations: 9.359 kB / 1.189 GB, free: 53.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02477/6.17, allocations: 2.138 MB / 1.191 GB, free: 53.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001099/6.171, allocations: 29.03 kB / 1.191 GB, free: 53.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002347/6.173, allocations: 129.6 kB / 1.191 GB, free: 53.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.561e-05/6.173, allocations: 36.41 kB / 1.191 GB, free: 53.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/6.173, allocations: 7.969 kB / 1.191 GB, free: 53.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07776/6.251, allocations: 32.89 MB / 1.224 GB, free: 33.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01078/6.262, allocations: 2.713 MB / 1.226 GB, free: 31.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005182/6.267, allocations: 119.4 kB / 1.226 GB, free: 31.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01435/6.281, allocations: 0.7471 MB / 1.227 GB, free: 31 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003366/6.285, allocations: 387.4 kB / 1.227 GB, free: 30.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00274/6.287, allocations: 184 kB / 1.228 GB, free: 30.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0157/6.303, allocations: 4.899 MB / 1.232 GB, free: 26.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.092e-06/6.303, allocations: 0 / 1.232 GB, free: 26.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.02121/6.325, allocations: 3.166 MB / 1.235 GB, free: 23.43 MB / 410.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.003542/6.328, allocations: 416.3 kB / 1.236 GB, free: 23.13 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.05369/6.382, allocations: 23.23 MB / 1.259 GB, free: 2.797 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.399e-05/6.382, allocations: 4 kB / 1.259 GB, free: 2.793 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.3919/6.774, allocations: 11.31 MB / 1.27 GB, free: 69.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01919/6.793, allocations: 0.8569 MB / 1.27 GB, free: 69.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1043/6.897, allocations: 37.88 MB / 1.307 GB, free: 57.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02464/6.922, allocations: 8.269 MB / 1.315 GB, free: 56.61 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.02975/6.952, allocations: 5.057 MB / 1.32 GB, free: 56.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01039/6.962, allocations: 0.5967 MB / 1.321 GB, free: 56.52 MB / 410.7 MB Notification: Performance of SimCode: time 1.774e-06/6.962, allocations: 7.219 kB / 1.321 GB, free: 56.52 MB / 410.7 MB Notification: Performance of Templates: time 0.6627/7.625, allocations: 122.4 MB / 1.441 GB, free: 73.79 MB / 426.7 MB