Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadModel(ModelicaTest): time 2.374/2.374, allocations: 234.9 MB / 251.1 MB, free: 10.53 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004413/0.0004417, allocations: 8 kB / 314.9 MB, free: 10.59 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3684, allocations: 54.88 MB / 369.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1896/0.5581, allocations: 103.9 MB / 473.7 MB, free: 2.812 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.5585, allocations: 83.95 kB / 473.8 MB, free: 2.73 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6711/1.23, allocations: 91.51 MB / 0.552 GB, free: 20.61 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.976e-06/1.23, allocations: 0 / 0.552 GB, free: 20.61 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002494/1.23, allocations: 80 kB / 0.5521 GB, free: 20.54 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: 1642 * Number of variables: 1642 Notification: Performance of Generate backend data structure: time 0.01788/1.248, allocations: 4.389 MB / 0.5564 GB, free: 16.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/1.248, allocations: 8.031 kB / 0.5564 GB, free: 16.07 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03265/1.281, allocations: 4.436 MB / 0.5607 GB, free: 11.62 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0182/1.299, allocations: 4.745 MB / 0.5654 GB, free: 6.805 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004352/1.299, allocations: 357.1 kB / 0.5657 GB, free: 6.453 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002628/1.302, allocations: 459.8 kB / 0.5661 GB, free: 6.004 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03317/1.335, allocations: 10.71 MB / 0.5766 GB, free: 10.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003391/1.336, allocations: 59.45 kB / 0.5767 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002205/1.338, allocations: 231.9 kB / 0.5769 GB, free: 9.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002478/1.34, allocations: 0.9838 MB / 0.5778 GB, free: 8.988 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02785/1.368, allocations: 8.664 MB / 0.5863 GB, free: 312 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08675/1.455, allocations: 46.88 MB / 0.6321 GB, free: 15.91 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/1.467, allocations: 3.005 MB / 0.635 GB, free: 12.75 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006947/1.467, allocations: 340 kB / 0.6353 GB, free: 12.37 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.673e-05/1.468, allocations: 55.55 kB / 0.6354 GB, free: 12.31 MB / 474.7 MB Notification: Performance of pre-optimization done (n=176): time 6.242e-06/1.468, allocations: 0 / 0.6354 GB, free: 12.31 MB / 474.7 MB Notification: Performance of matching and sorting (n=194): time 0.3934/1.861, allocations: 14.08 MB / 0.6491 GB, free: 113.4 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.134e-05/1.861, allocations: 203.2 kB / 0.6493 GB, free: 113.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01082/1.872, allocations: 3.788 MB / 0.653 GB, free: 113 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005095/1.872, allocations: 50.89 kB / 0.6531 GB, free: 112.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002893/1.875, allocations: 3.156 MB / 0.6562 GB, free: 111.5 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001279/1.877, allocations: 0.7412 MB / 0.6569 GB, free: 111.2 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008466/1.878, allocations: 117.5 kB / 0.657 GB, free: 111.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005794/1.878, allocations: 0.5621 MB / 0.6576 GB, free: 110.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00634/1.885, allocations: 2.121 MB / 0.6596 GB, free: 110.8 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009556/1.894, allocations: 5.792 MB / 0.6653 GB, free: 106.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008744/1.903, allocations: 3.412 MB / 0.6686 GB, free: 106.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001739/1.903, allocations: 38.41 kB / 0.6687 GB, free: 106.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02192/1.925, allocations: 7.767 MB / 0.6762 GB, free: 105.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/1.925, allocations: 59.91 kB / 0.6763 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002089/1.926, allocations: 134.9 kB / 0.6764 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001417/1.927, allocations: 388.6 kB / 0.6768 GB, free: 105.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009102/1.936, allocations: 1.423 MB / 0.6782 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/1.941, allocations: 3.043 MB / 0.6812 GB, free: 104 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007121/1.949, allocations: 353.2 kB / 0.6815 GB, free: 104 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001479/1.95, allocations: 372.5 kB / 0.6818 GB, free: 104 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 590 * Number of states: 0 () * Number of discrete variables: 27 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (744): * Single equations (assignments): 740 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006423/1.957, allocations: 2.225 MB / 0.684 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/1.958, allocations: 343.3 kB / 0.6843 GB, free: 103.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00914/1.967, allocations: 2.811 MB / 0.6871 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.774e-05/1.967, allocations: 26.41 kB / 0.6871 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.662e-05/1.967, allocations: 3.156 kB / 0.6871 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.284e-05/1.967, allocations: 16.59 kB / 0.6871 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02573/1.993, allocations: 7.64 MB / 0.6946 GB, free: 99.63 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.207e-05/1.993, allocations: 3.688 kB / 0.6946 GB, free: 99.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003431/1.996, allocations: 345.2 kB / 0.6949 GB, free: 99.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009421/1.997, allocations: 188.1 kB / 0.6951 GB, free: 99.56 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005075/1.998, allocations: 37.42 kB / 0.6951 GB, free: 99.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004182/2.002, allocations: 2.596 MB / 0.6977 GB, free: 97.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/2.002, allocations: 7.922 kB / 0.6977 GB, free: 97.66 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/2.017, allocations: 5.382 MB / 0.7029 GB, free: 95.47 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002433/2.019, allocations: 0.6185 MB / 0.7035 GB, free: 95.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001394/2.02, allocations: 32.84 kB / 0.7036 GB, free: 95.07 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00347/2.024, allocations: 123.5 kB / 0.7037 GB, free: 95.04 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007288/2.025, allocations: 128.8 kB / 0.7038 GB, free: 95.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002789/2.025, allocations: 51.88 kB / 0.7039 GB, free: 95.02 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006342/2.031, allocations: 2.352 MB / 0.7062 GB, free: 94.23 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.031, allocations: 0 / 0.7062 GB, free: 94.23 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007451/2.039, allocations: 0.9909 MB / 0.7071 GB, free: 94.11 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (164): * Single equations (assignments): 160 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008143/2.04, allocations: 166.3 kB / 0.7073 GB, free: 93.98 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01311/2.053, allocations: 5.112 MB / 0.7123 GB, free: 92.25 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/2.053, allocations: 0 / 0.7123 GB, free: 92.25 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005328/2.058, allocations: 1.643 MB / 0.7139 GB, free: 91.63 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005179/2.064, allocations: 378.2 kB / 0.7142 GB, free: 91.46 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03053/2.094, allocations: 11.72 MB / 0.7257 GB, free: 81.36 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007571/2.102, allocations: 3.541 MB / 0.7291 GB, free: 78.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001849/2.104, allocations: 301.7 kB / 0.7294 GB, free: 78.39 MB / 474.7 MB Notification: Performance of SimCode: time 1.162e-06/2.104, allocations: 0 / 0.7294 GB, free: 78.39 MB / 474.7 MB Notification: Performance of Templates: time 0.1389/2.243, allocations: 75.85 MB / 0.8035 GB, free: 10.79 MB / 474.7 MB