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.DifferentiationOfForces.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.DifferentiationOfForces,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces") Notification: Performance of loadModel(ModelicaTest): time 1.938/1.938, allocations: 209.3 MB / 224.8 MB, free: 292 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004432/0.0004433, allocations: 12 kB / 282.5 MB, free: 9.66 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2886, allocations: 48.71 MB / 331.2 MB, free: 6.492 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.DifferentiationOfForces): time 0.05802/0.3466, allocations: 43.59 MB / 374.8 MB, free: 2.867 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02865/0.3753, allocations: 10.62 MB / 385.4 MB, free: 8.219 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009194/0.3846, allocations: 207.6 kB / 385.6 MB, free: 8.016 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007093/0.3917, allocations: 2.209 MB / 387.8 MB, free: 5.797 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02232/0.4141, allocations: 6.339 MB / 394.1 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003346/0.4175, allocations: 0.6201 MB / 394.8 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.021/0.4385, allocations: 9.641 MB / 404.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008217/0.4468, allocations: 4.345 MB / 408.8 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002134/0.4489, allocations: 1.024 MB / 409.8 MB, free: 15.75 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002684/0.4516, allocations: 1.441 MB / 411.2 MB, free: 14.3 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006424/0.4523, allocations: 164 kB / 411.4 MB, free: 14.14 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002318/0.4547, allocations: 0.9675 MB / 412.3 MB, free: 13.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002237/0.4569, allocations: 1.64 MB / 414 MB, free: 11.53 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001223/0.4582, allocations: 0.8856 MB / 414.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009246/0.4674, allocations: 6.231 MB / 421.1 MB, free: 4.387 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.4675, allocations: 3.938 kB / 421.1 MB, free: 4.383 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.947e-06/0.4675, allocations: 0 / 421.1 MB, free: 4.383 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001302/0.4676, allocations: 4 kB / 421.1 MB, free: 4.379 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: 1641 * Number of variables: 1641 Notification: Performance of Generate backend data structure: time 0.01179/0.4794, allocations: 4.313 MB / 425.4 MB, free: 15.99 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.526e-05/0.4795, allocations: 11.97 kB / 425.4 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09539/0.5749, allocations: 8.417 MB / 433.9 MB, free: 7.551 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007628/0.5826, allocations: 2.847 MB / 436.7 MB, free: 4.641 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002991/0.5829, allocations: 250.4 kB / 436.9 MB, free: 4.395 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/0.5842, allocations: 331.7 kB / 437.3 MB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02303/0.6072, allocations: 10.44 MB / 447.7 MB, free: 8.945 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001889/0.6075, allocations: 39.73 kB / 447.8 MB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009082/0.6084, allocations: 163.8 kB / 447.9 MB, free: 8.746 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004326/0.6127, allocations: 2.034 MB / 449.9 MB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02185/0.6346, allocations: 8.639 MB / 458.6 MB, free: 14.05 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3413/0.976, allocations: 38.41 MB / 497 MB, free: 90.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007341/0.9834, allocations: 3.009 MB / 0.4883 GB, free: 89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004555/0.9839, allocations: 336.8 kB / 0.4886 GB, free: 88.71 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.9839, allocations: 49.34 kB / 0.4887 GB, free: 88.66 MB / 394.7 MB Notification: Performance of pre-optimization done (n=176): time 6.373e-06/0.9839, allocations: 0 / 0.4887 GB, free: 88.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=194): time 0.04242/1.026, allocations: 14.45 MB / 0.5028 GB, free: 81.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.763e-05/1.026, allocations: 205.3 kB / 0.503 GB, free: 81.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006758/1.033, allocations: 3.944 MB / 0.5068 GB, free: 79.14 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003421/1.034, allocations: 52.67 kB / 0.5069 GB, free: 79.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002029/1.036, allocations: 3.138 MB / 0.5099 GB, free: 76.31 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000854/1.037, allocations: 0.7336 MB / 0.5106 GB, free: 75.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004668/1.037, allocations: 121.1 kB / 0.5108 GB, free: 75.61 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003566/1.037, allocations: 0.5626 MB / 0.5113 GB, free: 75.11 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004623/1.042, allocations: 2.152 MB / 0.5134 GB, free: 73.46 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00628/1.048, allocations: 5.806 MB / 0.5191 GB, free: 65.84 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006326/1.055, allocations: 3.45 MB / 0.5225 GB, free: 62.39 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.885e-05/1.055, allocations: 36 kB / 0.5225 GB, free: 62.36 MB / 394.7 MB Notification: Performance of matching and sorting (n=780) (initialization): time 0.01725/1.072, allocations: 7.85 MB / 0.5302 GB, free: 54.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001113/1.072, allocations: 60 kB / 0.5302 GB, free: 54.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001459/1.072, allocations: 128 kB / 0.5303 GB, free: 54.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001291/1.074, allocations: 464.8 kB / 0.5308 GB, free: 53.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005846/1.08, allocations: 1.419 MB / 0.5322 GB, free: 52.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004536/1.084, allocations: 3.406 MB / 0.5355 GB, free: 48.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00546/1.09, allocations: 355.7 kB / 0.5358 GB, free: 48.56 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009256/1.091, allocations: 369.7 kB / 0.5362 GB, free: 48.2 MB / 394.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.004459/1.095, allocations: 2.235 MB / 0.5384 GB, free: 45.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007721/1.096, allocations: 343.5 kB / 0.5387 GB, free: 45.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006516/1.102, allocations: 2.921 MB / 0.5415 GB, free: 42.68 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.192e-05/1.103, allocations: 25.17 kB / 0.5416 GB, free: 42.66 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/1.103, allocations: 7.953 kB / 0.5416 GB, free: 42.65 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.319e-05/1.103, allocations: 11.97 kB / 0.5416 GB, free: 42.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01861/1.121, allocations: 7.834 MB / 0.5492 GB, free: 34.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/1.121, allocations: 0 / 0.5492 GB, free: 34.78 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/1.124, allocations: 351.5 kB / 0.5496 GB, free: 34.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009665/1.125, allocations: 252.6 kB / 0.5498 GB, free: 34.19 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003227/1.125, allocations: 43.92 kB / 0.5499 GB, free: 34.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00388/1.129, allocations: 2.968 MB / 0.5528 GB, free: 31.04 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.664e-06/1.129, allocations: 0 / 0.5528 GB, free: 31.04 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/1.139, allocations: 5.528 MB / 0.5581 GB, free: 25.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/1.141, allocations: 0.641 MB / 0.5588 GB, free: 24.82 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007774/1.142, allocations: 42.14 kB / 0.5588 GB, free: 24.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002321/1.144, allocations: 123.9 kB / 0.5589 GB, free: 24.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005061/1.145, allocations: 133 kB / 0.5591 GB, free: 24.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/1.145, allocations: 59.97 kB / 0.5591 GB, free: 24.47 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004749/1.15, allocations: 2.475 MB / 0.5615 GB, free: 22.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.814e-06/1.15, allocations: 0 / 0.5615 GB, free: 22.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006099/1.156, allocations: 1.014 MB / 0.5625 GB, free: 21.01 MB / 394.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.0006791/1.157, allocations: 174.6 kB / 0.5627 GB, free: 20.83 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01011/1.167, allocations: 5.157 MB / 0.5677 GB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.167, allocations: 0 / 0.5677 GB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003278/1.17, allocations: 1.671 MB / 0.5694 GB, free: 14.01 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002444/1.173, allocations: 393.4 kB / 0.5697 GB, free: 13.62 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02023/1.193, allocations: 11.77 MB / 0.5812 GB, free: 1.809 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006397/1.199, allocations: 3.544 MB / 0.5847 GB, free: 14.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/1.201, allocations: 311.4 kB / 0.585 GB, free: 13.92 MB / 410.7 MB Notification: Performance of SimCode: time 1.722e-06/1.201, allocations: 0 / 0.585 GB, free: 13.92 MB / 410.7 MB Notification: Performance of Templates: time 0.3632/1.564, allocations: 76.47 MB / 0.6597 GB, free: 132 MB / 442.7 MB