Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.221/2.221, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004384/0.0004385, allocations: 12 kB / 314.3 MB, free: 9.605 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2816/0.282, allocations: 54.86 MB / 369.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.06326/0.3453, allocations: 43.62 MB / 412.8 MB, free: 14.98 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.035/0.3804, allocations: 10.65 MB / 423.5 MB, free: 4.312 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008267/0.3887, allocations: 207.5 kB / 423.7 MB, free: 4.109 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006807/0.3956, allocations: 2.205 MB / 425.9 MB, free: 1.895 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02151/0.4171, allocations: 6.327 MB / 432.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003236/0.4204, allocations: 0.6084 MB / 432.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.02103/0.4415, allocations: 9.633 MB / 442.4 MB, free: 1.297 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008385/0.4499, allocations: 4.345 MB / 446.8 MB, free: 12.89 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002395/0.4523, allocations: 1.02 MB / 447.8 MB, free: 11.87 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00292/0.4553, allocations: 1.449 MB / 449.2 MB, free: 10.42 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007414/0.4561, allocations: 156 kB / 449.4 MB, free: 10.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002584/0.4587, allocations: 0.9714 MB / 450.4 MB, free: 9.293 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002609/0.4613, allocations: 1.644 MB / 452 MB, free: 7.645 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00144/0.4628, allocations: 0.8817 MB / 452.9 MB, free: 6.754 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009582/0.4724, allocations: 6.227 MB / 459.1 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.963e-06/0.4725, allocations: 0 / 459.1 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.257e-06/0.4725, allocations: 0 / 459.1 MB, free: 0.5117 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001569/0.4727, allocations: 0 / 459.1 MB, free: 0.5117 MB / 378.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.01222/0.4849, allocations: 4.305 MB / 463.4 MB, free: 12.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.485, allocations: 12.03 kB / 463.4 MB, free: 12.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1434/0.6284, allocations: 8.421 MB / 471.9 MB, free: 3.688 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008276/0.6368, allocations: 2.851 MB / 474.7 MB, free: 0.7734 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003251/0.6371, allocations: 250.4 kB / 475 MB, free: 0.5273 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001239/0.6384, allocations: 331.8 kB / 475.3 MB, free: 208 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2733/0.9117, allocations: 10.44 MB / 485.7 MB, free: 88.78 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001627/0.9119, allocations: 42.69 kB / 485.8 MB, free: 88.76 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007417/0.9127, allocations: 158.5 kB / 485.9 MB, free: 88.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003383/0.9161, allocations: 2.03 MB / 487.9 MB, free: 88.31 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01896/0.9351, allocations: 8.639 MB / 496.6 MB, free: 80.02 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04906/0.9842, allocations: 38.41 MB / 0.5225 GB, free: 40.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007124/0.9914, allocations: 3.001 MB / 0.5254 GB, free: 37.82 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000446/0.9919, allocations: 344.1 kB / 0.5257 GB, free: 37.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.353e-05/0.9919, allocations: 63.44 kB / 0.5258 GB, free: 37.36 MB / 394.7 MB Notification: Performance of pre-optimization done (n=176): time 6.273e-06/0.9919, allocations: 0 / 0.5258 GB, free: 37.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=194): time 0.04013/1.032, allocations: 14.44 MB / 0.5399 GB, free: 22.73 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.455e-05/1.032, allocations: 197.2 kB / 0.5401 GB, free: 22.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006466/1.039, allocations: 3.93 MB / 0.5439 GB, free: 18.58 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003476/1.039, allocations: 57.64 kB / 0.544 GB, free: 18.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001973/1.041, allocations: 3.138 MB / 0.547 GB, free: 15.38 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000879/1.042, allocations: 0.7392 MB / 0.5477 GB, free: 14.65 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004519/1.042, allocations: 116 kB / 0.5479 GB, free: 14.54 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003516/1.043, allocations: 0.5629 MB / 0.5484 GB, free: 13.96 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00457/1.047, allocations: 2.143 MB / 0.5505 GB, free: 11.81 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006528/1.054, allocations: 5.813 MB / 0.5562 GB, free: 4.168 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006419/1.06, allocations: 3.44 MB / 0.5595 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.686e-05/1.061, allocations: 40 kB / 0.5596 GB, free: 0.6914 MB / 394.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.02079/1.081, allocations: 7.85 MB / 0.5672 GB, free: 8.832 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001346/1.082, allocations: 60 kB / 0.5673 GB, free: 8.773 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001982/1.082, allocations: 132 kB / 0.5674 GB, free: 8.645 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001468/1.083, allocations: 457 kB / 0.5679 GB, free: 8.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006543/1.09, allocations: 1.431 MB / 0.5693 GB, free: 6.762 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006049/1.096, allocations: 3.401 MB / 0.5726 GB, free: 3.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006018/1.102, allocations: 355.4 kB / 0.5729 GB, free: 2.883 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001255/1.103, allocations: 372 kB / 0.5733 GB, free: 2.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * 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 (742): * Single equations (assignments): 738 * 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.005508/1.109, allocations: 2.216 MB / 0.5754 GB, free: 296 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008971/1.11, allocations: 339.8 kB / 0.5758 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008144/1.118, allocations: 2.929 MB / 0.5786 GB, free: 13.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.437e-05/1.118, allocations: 27.92 kB / 0.5786 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/1.118, allocations: 4 kB / 0.5786 GB, free: 12.98 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.915e-05/1.118, allocations: 7.969 kB / 0.5787 GB, free: 12.97 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02232/1.14, allocations: 7.84 MB / 0.5863 GB, free: 5.109 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.846e-05/1.14, allocations: 3.938 kB / 0.5863 GB, free: 5.105 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002529/1.143, allocations: 347.5 kB / 0.5866 GB, free: 4.766 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00109/1.144, allocations: 256.6 kB / 0.5869 GB, free: 4.512 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003279/1.144, allocations: 39.97 kB / 0.5869 GB, free: 4.473 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00524/1.15, allocations: 2.97 MB / 0.5898 GB, free: 1.363 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.487e-06/1.15, allocations: 3.984 kB / 0.5898 GB, free: 1.359 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01279/1.163, allocations: 5.529 MB / 0.5952 GB, free: 11.81 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002028/1.165, allocations: 0.6371 MB / 0.5959 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007163/1.165, allocations: 32 kB / 0.5959 GB, free: 11.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002374/1.168, allocations: 127.9 kB / 0.596 GB, free: 11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005556/1.168, allocations: 129.1 kB / 0.5961 GB, free: 10.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002172/1.169, allocations: 47.98 kB / 0.5962 GB, free: 10.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005807/1.174, allocations: 2.474 MB / 0.5986 GB, free: 8.367 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.223e-06/1.174, allocations: 0 / 0.5986 GB, free: 8.367 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007473/1.182, allocations: 1.013 MB / 0.5996 GB, free: 7.359 MB / 442.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.0008488/1.183, allocations: 183.6 kB / 0.5998 GB, free: 7.18 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0138/1.197, allocations: 5.16 MB / 0.6048 GB, free: 2.039 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/1.197, allocations: 0 / 0.6048 GB, free: 2.039 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00427/1.201, allocations: 1.661 MB / 0.6064 GB, free: 372 kB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/1.204, allocations: 392.5 kB / 0.6068 GB, free: 0 / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02572/1.229, allocations: 11.77 MB / 0.6183 GB, free: 4.172 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007063/1.236, allocations: 3.536 MB / 0.6217 GB, free: 0.5977 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/1.238, allocations: 307.4 kB / 0.622 GB, free: 304 kB / 458.7 MB Notification: Performance of SimCode: time 2.012e-06/1.238, allocations: 3.938 kB / 0.622 GB, free: 300 kB / 458.7 MB Notification: Performance of Templates: time 0.3779/1.616, allocations: 76.51 MB / 0.6967 GB, free: 108.3 MB / 474.7 MB