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.FrameTorques2.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.FrameTorques2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 234.9 MB / 251.1 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006072/0.0006074, allocations: 16 kB / 314.9 MB, free: 9.742 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3912/0.3919, allocations: 54.86 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1944/0.5864, allocations: 99.64 MB / 469.4 MB, free: 9.027 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002614/0.5867, allocations: 79.97 kB / 469.5 MB, free: 8.949 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9686/1.555, allocations: 171.5 MB / 0.6259 GB, free: 6.148 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.585e-06/1.555, allocations: 0 / 0.6259 GB, free: 6.148 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007126/1.556, allocations: 168 kB / 0.6261 GB, free: 5.984 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2948 * Number of variables: 2948 Notification: Performance of Generate backend data structure: time 0.03833/1.594, allocations: 9.038 MB / 0.6349 GB, free: 12.85 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/1.595, allocations: 12.02 kB / 0.6349 GB, free: 12.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09036/1.685, allocations: 12.08 MB / 0.6467 GB, free: 0.7227 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04212/1.727, allocations: 10.97 MB / 0.6575 GB, free: 5.668 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001029/1.728, allocations: 0.6417 MB / 0.6581 GB, free: 5.023 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004926/1.733, allocations: 0.8511 MB / 0.6589 GB, free: 4.172 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7574/2.491, allocations: 20.05 MB / 0.6785 GB, free: 67.29 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009491/2.492, allocations: 109.6 kB / 0.6786 GB, free: 67.29 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004416/2.496, allocations: 401.3 kB / 0.679 GB, free: 67.29 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004618/2.501, allocations: 1.824 MB / 0.6808 GB, free: 67.26 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0531/2.554, allocations: 16.28 MB / 0.6967 GB, free: 67.19 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1457/2.7, allocations: 82.12 MB / 0.7769 GB, free: 18.32 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04529/2.745, allocations: 8.127 MB / 0.7848 GB, free: 15.72 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001371/2.746, allocations: 0.6655 MB / 0.7854 GB, free: 15.12 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000123/2.747, allocations: 76.59 kB / 0.7855 GB, free: 15.06 MB / 474.8 MB Notification: Performance of pre-optimization done (n=311): time 1.208e-05/2.747, allocations: 0 / 0.7855 GB, free: 15.06 MB / 474.8 MB Notification: Performance of matching and sorting (n=335): time 0.1678/2.914, allocations: 31.73 MB / 0.8165 GB, free: 15.87 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001923/2.915, allocations: 297.8 kB / 0.8168 GB, free: 15.52 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02111/2.936, allocations: 7.715 MB / 0.8243 GB, free: 9.137 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000929/2.937, allocations: 80.52 kB / 0.8244 GB, free: 9.055 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.007144/2.944, allocations: 5.536 MB / 0.8298 GB, free: 4.047 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002668/2.947, allocations: 1.272 MB / 0.8311 GB, free: 2.922 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001639/2.948, allocations: 192 kB / 0.8312 GB, free: 2.734 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.001103/2.949, allocations: 0.7173 MB / 0.8319 GB, free: 2.125 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01618/2.966, allocations: 3.861 MB / 0.8357 GB, free: 0 / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01603/2.982, allocations: 9.234 MB / 0.8447 GB, free: 4.848 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01452/2.996, allocations: 5.573 MB / 0.8502 GB, free: 0 / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0009909/2.997, allocations: 89.11 kB / 0.8503 GB, free: 0 / 0.4949 GB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.03965/3.037, allocations: 13.1 MB / 0.863 GB, free: 4.684 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001635/3.037, allocations: 88 kB / 0.8631 GB, free: 4.598 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003233/3.038, allocations: 203.5 kB / 0.8633 GB, free: 4.402 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004216/3.042, allocations: 1.058 MB / 0.8644 GB, free: 3.523 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01464/3.056, allocations: 2.245 MB / 0.8666 GB, free: 1.586 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3786/3.435, allocations: 11.46 MB / 0.8777 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01194/3.447, allocations: 0.5258 MB / 0.8783 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002201/3.449, allocations: 0.5693 MB / 0.8788 GB, free: 102.9 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],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],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 (1179): * Single equations (assignments): 1172 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01077/3.46, allocations: 3.874 MB / 0.8826 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001733/3.462, allocations: 0.6752 MB / 0.8833 GB, free: 102.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0167/3.479, allocations: 6.052 MB / 0.8892 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.586e-05/3.479, allocations: 33.72 kB / 0.8892 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.511e-05/3.479, allocations: 7.344 kB / 0.8892 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.629e-05/3.479, allocations: 21.52 kB / 0.8892 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04244/3.521, allocations: 15.09 MB / 0.904 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.074e-05/3.521, allocations: 10.86 kB / 0.904 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005594/3.527, allocations: 0.5542 MB / 0.9045 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003333/3.53, allocations: 0.7097 MB / 0.9052 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005854/3.531, allocations: 60 kB / 0.9053 GB, free: 101.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01529/3.546, allocations: 10.32 MB / 0.9153 GB, free: 96.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/3.546, allocations: 7.578 kB / 0.9154 GB, free: 96.46 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02329/3.57, allocations: 9.882 MB / 0.925 GB, free: 94.02 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004522/3.574, allocations: 1.194 MB / 0.9262 GB, free: 93.61 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002307/3.577, allocations: 55.75 kB / 0.9262 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005682/3.582, allocations: 195.9 kB / 0.9264 GB, free: 93.53 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007683/3.583, allocations: 195 kB / 0.9266 GB, free: 93.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003385/3.583, allocations: 92.31 kB / 0.9267 GB, free: 93.48 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01326/3.597, allocations: 4.917 MB / 0.9315 GB, free: 91.88 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.323e-06/3.597, allocations: 0 / 0.9315 GB, free: 91.88 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01326/3.61, allocations: 1.871 MB / 0.9333 GB, free: 91.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (276): * Single equations (assignments): 269 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(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.001251/3.611, allocations: 204 kB / 0.9335 GB, free: 91.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02144/3.633, allocations: 8.998 MB / 0.9423 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/3.633, allocations: 6.344 kB / 0.9423 GB, free: 88.71 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007422/3.64, allocations: 3.238 MB / 0.9455 GB, free: 87.29 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007807/3.648, allocations: 0.9313 MB / 0.9464 GB, free: 86.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05372/3.702, allocations: 22.41 MB / 0.9683 GB, free: 75.77 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01551/3.717, allocations: 6.122 MB / 0.9742 GB, free: 72.02 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003431/3.721, allocations: 0.5155 MB / 0.9747 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of SimCode: time 1.483e-06/3.721, allocations: 0 / 0.9747 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of Templates: time 0.8037/4.525, allocations: 244.7 MB / 1.214 GB, free: 14.77 MB / 0.5262 GB