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.FrameTorques.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.FrameTorques,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques") Notification: Performance of loadModel(ModelicaTest): time 2.18/2.18, allocations: 235 MB / 248.1 MB, free: 14.54 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.043e-05/3.067e-05, allocations: 0 / 309.7 MB, free: 1.539 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3241, allocations: 54.85 MB / 364.5 MB, free: 5.523 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1515/0.4757, allocations: 100.8 MB / 465.3 MB, free: 11.7 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.476, allocations: 75.66 kB / 465.4 MB, free: 11.62 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6895/1.166, allocations: 114.5 MB / 0.5663 GB, free: 104.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.266e-06/1.166, allocations: 0 / 0.5663 GB, free: 104.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003125/1.166, allocations: 114.9 kB / 0.5664 GB, free: 104.7 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1956 * Number of variables: 1956 Notification: Performance of Generate backend data structure: time 0.01698/1.183, allocations: 5.462 MB / 0.5718 GB, free: 102.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/1.183, allocations: 11.5 kB / 0.5718 GB, free: 102.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03696/1.22, allocations: 6.955 MB / 0.5786 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02047/1.24, allocations: 6.852 MB / 0.5853 GB, free: 99.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005002/1.241, allocations: 418 kB / 0.5857 GB, free: 99.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002401/1.243, allocations: 0.5484 MB / 0.5862 GB, free: 99.2 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03222/1.276, allocations: 13.26 MB / 0.5991 GB, free: 91.88 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003024/1.276, allocations: 75.36 kB / 0.5992 GB, free: 91.84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001881/1.278, allocations: 270.9 kB / 0.5995 GB, free: 91.66 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001915/1.28, allocations: 1.25 MB / 0.6007 GB, free: 90.41 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02444/1.304, allocations: 10.5 MB / 0.6109 GB, free: 79.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06914/1.373, allocations: 59.66 MB / 0.6692 GB, free: 18.79 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0138/1.387, allocations: 4.608 MB / 0.6737 GB, free: 14.02 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003677/1.391, allocations: 2.219 MB / 0.6759 GB, free: 11.79 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01354/1.405, allocations: 6.502 MB / 0.6822 GB, free: 5.227 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.516e-05/1.405, allocations: 51.72 kB / 0.6823 GB, free: 5.168 MB / 458.7 MB Notification: Performance of pre-optimization done (n=183): time 6.787e-06/1.405, allocations: 0 / 0.6823 GB, free: 5.168 MB / 458.7 MB Notification: Performance of matching and sorting (n=195): time 0.0521/1.457, allocations: 14.54 MB / 0.6965 GB, free: 6.441 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000154/1.457, allocations: 231.2 kB / 0.6967 GB, free: 6.168 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01209/1.469, allocations: 5.159 MB / 0.7017 GB, free: 1.031 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003646/1.47, allocations: 53.7 kB / 0.7018 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2799/1.749, allocations: 3.934 MB / 0.7056 GB, free: 110.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00106/1.751, allocations: 0.766 MB / 0.7064 GB, free: 110.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007093/1.751, allocations: 144.4 kB / 0.7065 GB, free: 110.3 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005899/1.752, allocations: 0.6096 MB / 0.7071 GB, free: 109.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005378/1.757, allocations: 2.243 MB / 0.7093 GB, free: 109.9 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008101/1.765, allocations: 6.729 MB / 0.7159 GB, free: 104.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008456/1.774, allocations: 3.864 MB / 0.7196 GB, free: 104.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000282/1.774, allocations: 46.12 kB / 0.7197 GB, free: 104.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=934) (initialization): time 0.0219/1.796, allocations: 8.926 MB / 0.7284 GB, free: 103.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001692/1.796, allocations: 77.03 kB / 0.7285 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001994/1.797, allocations: 159.7 kB / 0.7286 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001758/1.798, allocations: 0.6121 MB / 0.7292 GB, free: 103.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00777/1.806, allocations: 1.636 MB / 0.7308 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007709/1.814, allocations: 5.721 MB / 0.7364 GB, free: 99.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007804/1.822, allocations: 387.9 kB / 0.7368 GB, free: 99.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001506/1.823, allocations: 451.9 kB / 0.7372 GB, free: 99.45 MB / 474.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 () * 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.001712/1.825, allocations: 0.6631 MB / 0.7379 GB, free: 98.9 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/1.826, allocations: 490.8 kB / 0.7383 GB, free: 98.63 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006998/1.833, allocations: 3.019 MB / 0.7413 GB, free: 97.48 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.685e-05/1.833, allocations: 20.84 kB / 0.7413 GB, free: 97.48 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.491e-05/1.833, allocations: 3.938 kB / 0.7413 GB, free: 97.48 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.898e-05/1.833, allocations: 10.78 kB / 0.7413 GB, free: 97.48 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/1.854, allocations: 8.445 MB / 0.7496 GB, free: 94.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.07e-05/1.854, allocations: 3.844 kB / 0.7496 GB, free: 94.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002421/1.857, allocations: 327.5 kB / 0.7499 GB, free: 94.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/1.858, allocations: 364.8 kB / 0.7502 GB, free: 94.17 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003662/1.859, allocations: 34.67 kB / 0.7503 GB, free: 94.15 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006688/1.866, allocations: 5.072 MB / 0.7552 GB, free: 90.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.537e-06/1.866, allocations: 3.531 kB / 0.7552 GB, free: 90.45 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/1.876, allocations: 6.087 MB / 0.7612 GB, free: 87.34 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002519/1.879, allocations: 0.7973 MB / 0.7619 GB, free: 86.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001269/1.88, allocations: 37.3 kB / 0.762 GB, free: 86.83 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00306/1.883, allocations: 91.23 kB / 0.7621 GB, free: 86.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004876/1.884, allocations: 118.7 kB / 0.7622 GB, free: 86.78 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002047/1.884, allocations: 56.98 kB / 0.7622 GB, free: 86.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008831/1.893, allocations: 3.668 MB / 0.7658 GB, free: 85.53 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.354e-06/1.893, allocations: 4 kB / 0.7658 GB, free: 85.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008659/1.901, allocations: 1.223 MB / 0.767 GB, free: 85.39 MB / 474.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 () * 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.0006314/1.902, allocations: 169.6 kB / 0.7672 GB, free: 85.26 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01158/1.914, allocations: 5.626 MB / 0.7727 GB, free: 83.14 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/1.914, allocations: 4.188 kB / 0.7727 GB, free: 83.13 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003086/1.917, allocations: 1.682 MB / 0.7743 GB, free: 82.37 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004237/1.921, allocations: 0.6049 MB / 0.7749 GB, free: 82.11 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02405/1.945, allocations: 10.24 MB / 0.7849 GB, free: 74.53 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008314/1.954, allocations: 4.237 MB / 0.789 GB, free: 71.39 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001583/1.955, allocations: 370.2 kB / 0.7894 GB, free: 71.04 MB / 474.7 MB Notification: Performance of SimCode: time 2.443e-06/1.955, allocations: 4 kB / 0.7894 GB, free: 71.03 MB / 474.7 MB Notification: Performance of Templates: time 0.4615/2.417, allocations: 118.1 MB / 0.9047 GB, free: 114.6 MB / 490.7 MB