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.FrameTorques.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.FrameTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.FrameTorques") Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.3 MB / 224.9 MB, free: 1.207 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00095/0.0009503, allocations: 12 kB / 282.6 MB, free: 9.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1206, allocations: 48.71 MB / 331.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4137/0.5344, allocations: 94.05 MB / 425.3 MB, free: 7.094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.5347, allocations: 75.97 kB / 425.4 MB, free: 7.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6821/1.217, allocations: 114.3 MB / 0.5271 GB, free: 87.36 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.826e-06/1.217, allocations: 0 / 0.5271 GB, free: 87.36 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003413/1.217, allocations: 108.9 kB / 0.5272 GB, free: 87.36 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1954 * Number of variables: 1954 Notification: Performance of Generate backend data structure: time 0.01827/1.236, allocations: 5.934 MB / 0.533 GB, free: 84.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/1.236, allocations: 10.84 kB / 0.533 GB, free: 84.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03588/1.272, allocations: 6.949 MB / 0.5398 GB, free: 83.9 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01969/1.291, allocations: 6.891 MB / 0.5465 GB, free: 80.95 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000505/1.292, allocations: 420.4 kB / 0.5469 GB, free: 80.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002322/1.294, allocations: 0.5459 MB / 0.5474 GB, free: 80.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03162/1.326, allocations: 13.34 MB / 0.5605 GB, free: 70.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000292/1.326, allocations: 75.33 kB / 0.5605 GB, free: 70.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001805/1.328, allocations: 268.6 kB / 0.5608 GB, free: 69.84 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001918/1.33, allocations: 1.25 MB / 0.562 GB, free: 68.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02448/1.354, allocations: 10.65 MB / 0.5724 GB, free: 57.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0683/1.423, allocations: 59.64 MB / 0.6307 GB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01573/1.439, allocations: 4.655 MB / 0.6352 GB, free: 8.008 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01583/1.454, allocations: 6.488 MB / 0.6416 GB, free: 1.461 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.64e-05/1.454, allocations: 55.66 kB / 0.6416 GB, free: 1.398 MB / 426.7 MB Notification: Performance of pre-optimization done (n=183): time 8.47e-06/1.455, allocations: 3.984 kB / 0.6416 GB, free: 1.395 MB / 426.7 MB Notification: Performance of matching and sorting (n=195): time 0.3055/1.76, allocations: 16.9 MB / 0.6581 GB, free: 92.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.952e-05/1.76, allocations: 229.6 kB / 0.6583 GB, free: 92.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01233/1.772, allocations: 5.217 MB / 0.6634 GB, free: 91.62 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003822/1.773, allocations: 57.72 kB / 0.6635 GB, free: 91.59 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00318/1.776, allocations: 3.925 MB / 0.6673 GB, free: 89.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00104/1.777, allocations: 0.7718 MB / 0.6681 GB, free: 89.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007063/1.778, allocations: 144 kB / 0.6682 GB, free: 89.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005382/1.778, allocations: 0.6111 MB / 0.6688 GB, free: 88.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005299/1.784, allocations: 2.297 MB / 0.6711 GB, free: 88.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007535/1.791, allocations: 6.788 MB / 0.6777 GB, free: 82.13 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007389/1.799, allocations: 3.873 MB / 0.6815 GB, free: 80.88 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001324/1.799, allocations: 44.72 kB / 0.6815 GB, free: 80.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.02082/1.82, allocations: 9.057 MB / 0.6903 GB, free: 77.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001265/1.82, allocations: 73.88 kB / 0.6904 GB, free: 77.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001873/1.82, allocations: 160.3 kB / 0.6906 GB, free: 77.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001814/1.822, allocations: 0.6094 MB / 0.6912 GB, free: 77.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006778/1.829, allocations: 1.639 MB / 0.6928 GB, free: 77.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007915/1.837, allocations: 5.831 MB / 0.6985 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007828/1.845, allocations: 388.6 kB / 0.6988 GB, free: 73.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001382/1.846, allocations: 445.6 kB / 0.6993 GB, free: 73.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * Number of states: 0 () * Number of discrete variables: 42 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (882): * Single equations (assignments): 877 * 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 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00658/1.853, allocations: 2.689 MB / 0.7019 GB, free: 71.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001202/1.854, allocations: 490.4 kB / 0.7024 GB, free: 71.64 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006948/1.861, allocations: 3.06 MB / 0.7053 GB, free: 70.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.754e-05/1.861, allocations: 22.22 kB / 0.7054 GB, free: 70.44 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.857e-05/1.861, allocations: 13.73 kB / 0.7054 GB, free: 70.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.265e-05/1.861, allocations: 6.703 kB / 0.7054 GB, free: 70.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02164/1.883, allocations: 8.471 MB / 0.7137 GB, free: 67.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.121e-05/1.883, allocations: 6.234 kB / 0.7137 GB, free: 67.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/1.885, allocations: 325.1 kB / 0.714 GB, free: 67.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001458/1.886, allocations: 361.8 kB / 0.7143 GB, free: 67.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002863/1.887, allocations: 34.62 kB / 0.7143 GB, free: 67.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006747/1.894, allocations: 5.178 MB / 0.7194 GB, free: 63.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.89e-06/1.894, allocations: 7.531 kB / 0.7194 GB, free: 63.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01054/1.904, allocations: 6.154 MB / 0.7254 GB, free: 59.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002709/1.907, allocations: 0.7966 MB / 0.7262 GB, free: 58.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001445/1.908, allocations: 36.55 kB / 0.7262 GB, free: 58.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003139/1.912, allocations: 92.53 kB / 0.7263 GB, free: 58.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004667/1.912, allocations: 120.8 kB / 0.7264 GB, free: 58.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001841/1.912, allocations: 51.55 kB / 0.7265 GB, free: 58.35 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008204/1.92, allocations: 3.734 MB / 0.7301 GB, free: 55.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.273e-06/1.92, allocations: 0 / 0.7301 GB, free: 55.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008638/1.929, allocations: 1.219 MB / 0.7313 GB, free: 54.09 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (154): * Single equations (assignments): 149 * 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 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006459/1.93, allocations: 176.7 kB / 0.7315 GB, free: 53.92 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01039/1.94, allocations: 5.708 MB / 0.7371 GB, free: 48.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.221e-06/1.94, allocations: 4 kB / 0.7371 GB, free: 48.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00299/1.943, allocations: 1.711 MB / 0.7387 GB, free: 47.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004018/1.947, allocations: 0.6006 MB / 0.7393 GB, free: 46.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02635/1.974, allocations: 14.38 MB / 0.7534 GB, free: 33.7 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008685/1.982, allocations: 4.245 MB / 0.7575 GB, free: 30.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001626/1.984, allocations: 369.7 kB / 0.7579 GB, free: 30.19 MB / 426.7 MB Notification: Performance of SimCode: time 1.876e-06/1.984, allocations: 0 / 0.7579 GB, free: 30.19 MB / 426.7 MB Notification: Performance of Templates: time 0.4353/2.419, allocations: 118 MB / 0.8731 GB, free: 74.26 MB / 442.7 MB