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.598/1.598, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003667/0.0003669, allocations: 15.98 kB / 233.2 MB, free: 3.035 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06992/0.07031, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.3027/0.3731, allocations: 90.81 MB / 362.7 MB, free: 2.473 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.05687/0.43, allocations: 21.38 MB / 384.1 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02066/0.4507, allocations: 454.9 kB / 384.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01475/0.4655, allocations: 4.604 MB / 389.2 MB, free: 7.973 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04379/0.5093, allocations: 12.33 MB / 401.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009284/0.5187, allocations: 2.06 MB / 403.6 MB, free: 9.547 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01263/0.5313, allocations: 5.631 MB / 409.2 MB, free: 3.914 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03547/0.5668, allocations: 18.25 MB / 427.4 MB, free: 1.551 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006854/0.5737, allocations: 3.007 MB / 430.4 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00779/0.5816, allocations: 3.941 MB / 434.4 MB, free: 10.58 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002442/0.5841, allocations: 471.9 kB / 434.9 MB, free: 10.12 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005147/0.5892, allocations: 1.592 MB / 436.4 MB, free: 8.527 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00685/0.5961, allocations: 4.392 MB / 440.8 MB, free: 4.125 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004054/0.6002, allocations: 2.299 MB / 443.1 MB, free: 1.812 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.5088/1.109, allocations: 18.5 MB / 461.6 MB, free: 21.31 MB / 362.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/1.109, allocations: 0 / 461.6 MB, free: 21.31 MB / 362.8 MB Notification: Performance of FrontEnd: time 3.009e-06/1.109, allocations: 0.5625 kB / 461.6 MB, free: 21.31 MB / 362.8 MB Notification: Performance of Transformations before backend: time 0.0007377/1.11, allocations: 3.688 kB / 461.6 MB, free: 21.31 MB / 362.8 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.0387/1.149, allocations: 12.45 MB / 474.1 MB, free: 14.6 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/1.149, allocations: 8.812 kB / 474.1 MB, free: 14.6 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02113/1.17, allocations: 3.74 MB / 477.8 MB, free: 12.84 MB / 362.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01979/1.19, allocations: 7.852 MB / 485.7 MB, free: 10.69 MB / 362.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008777/1.191, allocations: 0.7456 MB / 486.4 MB, free: 10.67 MB / 362.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005236/1.196, allocations: 1.109 MB / 487.5 MB, free: 10.62 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09836/1.294, allocations: 35 MB / 0.5103 GB, free: 10.08 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004577/1.295, allocations: 73.88 kB / 0.5104 GB, free: 10.04 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004296/1.299, allocations: 451.4 kB / 0.5108 GB, free: 9.926 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008283/1.307, allocations: 4.326 MB / 0.515 GB, free: 6.469 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09711/1.404, allocations: 32.91 MB / 0.5472 GB, free: 15.84 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4822/1.887, allocations: 113.9 MB / 0.6584 GB, free: 40.43 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07269/1.96, allocations: 18.68 MB / 0.6767 GB, free: 37.98 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05655/2.016, allocations: 32.72 MB / 0.7086 GB, free: 22.23 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.244e-05/2.016, allocations: 88.11 kB / 0.7087 GB, free: 22.17 MB / 442.8 MB Notification: Performance of pre-optimization done (n=489): time 1.03e-05/2.016, allocations: 0 / 0.7087 GB, free: 22.17 MB / 442.8 MB Notification: Performance of matching and sorting (n=726): time 1.056/3.072, allocations: 171.6 MB / 0.8763 GB, free: 132.8 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.832e-05/3.072, allocations: 201.8 kB / 0.8765 GB, free: 132.6 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01563/3.088, allocations: 8.342 MB / 0.8847 GB, free: 124.2 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.002027/3.09, allocations: 142.4 kB / 0.8848 GB, free: 124.1 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004514/3.094, allocations: 6.815 MB / 0.8914 GB, free: 117.3 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003848/3.098, allocations: 2.574 MB / 0.894 GB, free: 114.7 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002332/3.101, allocations: 284.6 kB / 0.8942 GB, free: 114.4 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001001/3.102, allocations: 0.9142 MB / 0.8951 GB, free: 113.5 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02002/3.122, allocations: 10.53 MB / 0.9054 GB, free: 103 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02398/3.146, allocations: 17.11 MB / 0.9221 GB, free: 82.74 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02476/3.171, allocations: 13.2 MB / 0.935 GB, free: 69.52 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000186/3.171, allocations: 64 kB / 0.9351 GB, free: 69.46 MB / 474.8 MB Notification: Performance of matching and sorting (n=1862) (initialization): time 0.05941/3.23, allocations: 27.79 MB / 0.9622 GB, free: 41.62 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001816/3.231, allocations: 100.2 kB / 0.9623 GB, free: 41.52 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002504/3.231, allocations: 228 kB / 0.9625 GB, free: 41.3 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003516/3.231, allocations: 344 kB / 0.9628 GB, free: 40.96 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2527/3.484, allocations: 4.46 MB / 0.9672 GB, free: 185.1 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007105/3.485, allocations: 454.5 kB / 0.9676 GB, free: 185.1 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01804/3.503, allocations: 1.14 MB / 0.9688 GB, free: 185.1 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004231/3.507, allocations: 0.738 MB / 0.9695 GB, free: 185.1 MB / 474.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.01595/3.523, allocations: 5.445 MB / 0.9748 GB, free: 184.8 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003233/3.526, allocations: 0.7994 MB / 0.9756 GB, free: 184.8 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04492/3.571, allocations: 19.92 MB / 0.995 GB, free: 175.6 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.287e-05/3.571, allocations: 74.03 kB / 0.9951 GB, free: 175.6 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.559e-05/3.571, allocations: 2.406 kB / 0.9951 GB, free: 175.6 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001359/3.571, allocations: 34.17 kB / 0.9951 GB, free: 175.6 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09679/3.668, allocations: 43.03 MB / 1.037 GB, free: 153.6 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-05/3.668, allocations: 4 kB / 1.037 GB, free: 153.6 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01724/3.686, allocations: 2.405 MB / 1.039 GB, free: 152 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.368e-05/3.686, allocations: 39.33 kB / 1.04 GB, free: 152 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002232/3.688, allocations: 128.2 kB / 1.04 GB, free: 151.8 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.374e-05/3.688, allocations: 31.84 kB / 1.04 GB, free: 151.8 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.763e-06/3.688, allocations: 11.94 kB / 1.04 GB, free: 151.8 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05982/3.748, allocations: 33.38 MB / 1.072 GB, free: 119.5 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008067/3.756, allocations: 2.748 MB / 1.075 GB, free: 116.9 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003495/3.76, allocations: 124.3 kB / 1.075 GB, free: 116.8 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009738/3.769, allocations: 0.7416 MB / 1.076 GB, free: 116.1 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002561/3.772, allocations: 395.9 kB / 1.076 GB, free: 115.7 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001688/3.774, allocations: 180.5 kB / 1.076 GB, free: 115.5 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01139/3.785, allocations: 5.279 MB / 1.082 GB, free: 110.2 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.408e-06/3.785, allocations: 3.938 kB / 1.082 GB, free: 110.2 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01758/3.803, allocations: 3.178 MB / 1.085 GB, free: 107.1 MB / 474.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.002855/3.806, allocations: 424.8 kB / 1.085 GB, free: 106.7 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.04307/3.849, allocations: 23.55 MB / 1.108 GB, free: 83.2 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/3.849, allocations: 3.562 kB / 1.108 GB, free: 83.2 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01828/3.867, allocations: 9.967 MB / 1.118 GB, free: 73.23 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006549/3.874, allocations: 0.8596 MB / 1.119 GB, free: 72.38 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2949/4.169, allocations: 39.08 MB / 1.157 GB, free: 198.2 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02045/4.189, allocations: 8.273 MB / 1.165 GB, free: 197.2 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01047/4.2, allocations: 0.7143 MB / 1.166 GB, free: 197.2 MB / 474.8 MB Notification: Performance of SimCode: time 1.964e-06/4.2, allocations: 0 / 1.166 GB, free: 197.2 MB / 474.8 MB Notification: Performance of Templates: time 0.5218/4.721, allocations: 187 MB / 1.348 GB, free: 188.1 MB / 474.8 MB