Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 1.797/1.797, allocations: 209.2 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004404/0.0004402, allocations: 11.98 kB / 282.6 MB, free: 9.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.288, allocations: 48.7 MB / 331.3 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4292, allocations: 94.7 MB / 426 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.4295, allocations: 75.95 kB / 426 MB, free: 15.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7043/1.134, allocations: 131.7 MB / 0.5447 GB, free: 51.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.164e-06/1.134, allocations: 0 / 0.5447 GB, free: 51.68 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003442/1.134, allocations: 132 kB / 0.5448 GB, free: 51.55 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: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.02129/1.155, allocations: 7.176 MB / 0.5518 GB, free: 44.29 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/1.156, allocations: 8.031 kB / 0.5518 GB, free: 44.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03559/1.191, allocations: 7.14 MB / 0.5588 GB, free: 37.12 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01998/1.211, allocations: 7.473 MB / 0.5661 GB, free: 29.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005297/1.212, allocations: 0.5014 MB / 0.5666 GB, free: 29.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002593/1.214, allocations: 0.656 MB / 0.5672 GB, free: 28.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03634/1.251, allocations: 16.19 MB / 0.583 GB, free: 10.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003416/1.251, allocations: 91.12 kB / 0.5831 GB, free: 10.63 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002109/1.253, allocations: 319.8 kB / 0.5834 GB, free: 10.32 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00267/1.256, allocations: 1.557 MB / 0.5849 GB, free: 8.758 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03227/1.288, allocations: 13.13 MB / 0.5977 GB, free: 11.59 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7074/1.996, allocations: 72.93 MB / 0.669 GB, free: 31.67 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02078/2.017, allocations: 6.508 MB / 0.6753 GB, free: 30.98 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01862/2.035, allocations: 9.279 MB / 0.6844 GB, free: 29.3 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.214e-05/2.035, allocations: 66.91 kB / 0.6844 GB, free: 29.26 MB / 426.8 MB Notification: Performance of pre-optimization done (n=269): time 7.072e-06/2.035, allocations: 3.531 kB / 0.6844 GB, free: 29.26 MB / 426.8 MB Notification: Performance of matching and sorting (n=311): time 0.09552/2.131, allocations: 30.07 MB / 0.7138 GB, free: 22.1 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/2.131, allocations: 241.2 kB / 0.714 GB, free: 21.84 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0122/2.143, allocations: 6.17 MB / 0.7201 GB, free: 19.73 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006666/2.144, allocations: 73.06 kB / 0.7201 GB, free: 19.67 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003309/2.147, allocations: 4.587 MB / 0.7246 GB, free: 16.02 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001443/2.149, allocations: 1.179 MB / 0.7258 GB, free: 15.16 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007631/2.149, allocations: 182.1 kB / 0.7259 GB, free: 15.02 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000543/2.15, allocations: 0.6904 MB / 0.7266 GB, free: 14.54 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007681/2.158, allocations: 3.569 MB / 0.7301 GB, free: 13.34 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01049/2.168, allocations: 8.857 MB / 0.7388 GB, free: 5.07 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/2.179, allocations: 5.495 MB / 0.7441 GB, free: 3.184 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001408/2.179, allocations: 51.16 kB / 0.7442 GB, free: 3.184 MB / 426.8 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03469/2.213, allocations: 13.51 MB / 0.7574 GB, free: 8.949 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001837/2.214, allocations: 88.97 kB / 0.7574 GB, free: 8.863 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002924/2.214, allocations: 184 kB / 0.7576 GB, free: 8.684 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005767/2.22, allocations: 1.713 MB / 0.7593 GB, free: 7.406 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009719/2.23, allocations: 2.132 MB / 0.7614 GB, free: 5.586 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02149/2.251, allocations: 11.67 MB / 0.7728 GB, free: 11.14 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009281/2.26, allocations: 0.5346 MB / 0.7733 GB, free: 10.68 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001983/2.262, allocations: 0.5367 MB / 0.7738 GB, free: 10.16 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (1104): * Single equations (assignments): 1099 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00837/2.271, allocations: 3.224 MB / 0.777 GB, free: 7.332 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001626/2.272, allocations: 0.5978 MB / 0.7775 GB, free: 6.727 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01695/2.289, allocations: 6.747 MB / 0.7841 GB, free: 1.262 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.959e-05/2.29, allocations: 32.78 kB / 0.7842 GB, free: 1.23 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.988e-05/2.29, allocations: 8 kB / 0.7842 GB, free: 1.223 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.316e-05/2.29, allocations: 19.89 kB / 0.7842 GB, free: 1.219 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04002/2.33, allocations: 15.23 MB / 0.7991 GB, free: 3.719 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.572e-05/2.33, allocations: 4.031 kB / 0.7991 GB, free: 3.715 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003929/2.334, allocations: 0.5694 MB / 0.7996 GB, free: 3.145 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005311/2.339, allocations: 1.417 MB / 0.801 GB, free: 1.723 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006927/2.34, allocations: 52 kB / 0.8011 GB, free: 1.672 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2861/2.626, allocations: 10.81 MB / 0.8116 GB, free: 117 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.176e-05/2.626, allocations: 11.84 kB / 0.8116 GB, free: 117 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0236/2.65, allocations: 11.84 MB / 0.8232 GB, free: 115.3 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00383/2.653, allocations: 1.145 MB / 0.8243 GB, free: 115.2 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001765/2.655, allocations: 55.62 kB / 0.8244 GB, free: 115.2 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004377/2.66, allocations: 213 kB / 0.8246 GB, free: 115.2 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009242/2.661, allocations: 187.5 kB / 0.8247 GB, free: 115.2 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003276/2.661, allocations: 84.78 kB / 0.8248 GB, free: 115.2 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.01026/2.671, allocations: 4.421 MB / 0.8291 GB, free: 115 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.073e-06/2.671, allocations: 0 / 0.8291 GB, free: 115 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01743/2.689, allocations: 1.657 MB / 0.8308 GB, free: 115 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/2.69, allocations: 201.5 kB / 0.831 GB, free: 114.9 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02776/2.718, allocations: 8.812 MB / 0.8396 GB, free: 114.3 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 9.076e-06/2.718, allocations: 0 / 0.8396 GB, free: 114.3 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.00682/2.725, allocations: 3.391 MB / 0.8429 GB, free: 113 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005134/2.73, allocations: 0.7026 MB / 0.8436 GB, free: 112.7 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03651/2.766, allocations: 18.98 MB / 0.8621 GB, free: 103.4 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01052/2.777, allocations: 5.034 MB / 0.867 GB, free: 101.7 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002557/2.78, allocations: 477.1 kB / 0.8675 GB, free: 101.7 MB / 474.8 MB Notification: Performance of SimCode: time 1.651e-06/2.78, allocations: 0 / 0.8675 GB, free: 101.7 MB / 474.8 MB Notification: Performance of Templates: time 0.4764/3.256, allocations: 147.4 MB / 1.011 GB, free: 118.1 MB / 474.8 MB