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.FrameTorques2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.174/2.174, allocations: 235.1 MB / 243 MB, free: 9.484 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.859e-05/1.869e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3156/0.3156, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1582/0.4738, allocations: 98.89 MB / 456.9 MB, free: 11.89 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000387/0.4743, allocations: 75.95 kB / 457 MB, free: 11.81 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8313/1.306, allocations: 166.4 MB / 0.6088 GB, free: 5.234 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.979e-06/1.306, allocations: 0 / 0.6088 GB, free: 5.234 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005572/1.306, allocations: 172 kB / 0.609 GB, free: 5.066 MB / 442.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.02937/1.336, allocations: 8.251 MB / 0.617 GB, free: 12.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/1.336, allocations: 12.03 kB / 0.617 GB, free: 12.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06579/1.401, allocations: 12.08 MB / 0.6288 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3244/1.726, allocations: 10.93 MB / 0.6395 GB, free: 58.83 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004937/1.726, allocations: 279.3 kB / 0.6398 GB, free: 58.83 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003366/1.73, allocations: 0.5089 MB / 0.6403 GB, free: 58.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02474/1.755, allocations: 11.43 MB / 0.6514 GB, free: 58.77 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03815/1.793, allocations: 17.18 MB / 0.6682 GB, free: 54.65 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004993/1.793, allocations: 107.6 kB / 0.6683 GB, free: 54.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002623/1.796, allocations: 44.09 kB / 0.6683 GB, free: 54.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003242/1.799, allocations: 1.826 MB / 0.6701 GB, free: 54.62 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1452/1.945, allocations: 78.67 MB / 0.747 GB, free: 20.84 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008988/1.954, allocations: 5.851 MB / 0.7527 GB, free: 18.05 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007669/1.961, allocations: 3.997 MB / 0.7566 GB, free: 16.3 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001247/1.963, allocations: 0.6614 MB / 0.7572 GB, free: 15.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.496e-05/1.963, allocations: 74.16 kB / 0.7573 GB, free: 15.64 MB / 474.7 MB Notification: Performance of pre-optimization done (n=311): time 1.789e-05/1.963, allocations: 0 / 0.7573 GB, free: 15.64 MB / 474.7 MB Notification: Performance of matching and sorting (n=338): time 0.09586/2.059, allocations: 33.88 MB / 0.7904 GB, free: 2.98 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002093/2.059, allocations: 295.7 kB / 0.7907 GB, free: 2.633 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01596/2.075, allocations: 5.705 MB / 0.7962 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0006149/2.076, allocations: 32.11 kB / 0.7963 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006032/2.082, allocations: 5.761 MB / 0.8019 GB, free: 8.973 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002141/2.084, allocations: 1.247 MB / 0.8031 GB, free: 7.852 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001073/2.085, allocations: 0 / 0.8031 GB, free: 7.852 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0009278/2.086, allocations: 0.7336 MB / 0.8038 GB, free: 7.227 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007844/2.094, allocations: 3.338 MB / 0.8071 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3451/2.439, allocations: 9.226 MB / 0.8161 GB, free: 93.07 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/2.45, allocations: 5.48 MB / 0.8215 GB, free: 93.04 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003773/2.451, allocations: 62.12 kB / 0.8215 GB, free: 93.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1310) (initialization): time 0.02934/2.48, allocations: 11.91 MB / 0.8331 GB, free: 92.89 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002293/2.48, allocations: 92.41 kB / 0.8332 GB, free: 92.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003009/2.481, allocations: 212.2 kB / 0.8334 GB, free: 92.89 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003377/2.484, allocations: 1.052 MB / 0.8345 GB, free: 92.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009888/2.494, allocations: 2.34 MB / 0.8367 GB, free: 92.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/2.509, allocations: 10.85 MB / 0.8473 GB, free: 87.47 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01017/2.519, allocations: 351.9 kB / 0.8477 GB, free: 87.47 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002251/2.521, allocations: 0.5926 MB / 0.8483 GB, free: 87.47 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1230): * Single equations (assignments): 1223 * 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.003075/2.524, allocations: 0.6361 MB / 0.8489 GB, free: 87.15 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001404/2.526, allocations: 0.5917 MB / 0.8495 GB, free: 87.15 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01287/2.539, allocations: 5.69 MB / 0.855 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.111e-05/2.539, allocations: 36.81 kB / 0.855 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.044e-05/2.539, allocations: 6.406 kB / 0.8551 GB, free: 86.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.866e-05/2.539, allocations: 23.27 kB / 0.8551 GB, free: 86.86 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03367/2.573, allocations: 13.38 MB / 0.8681 GB, free: 86.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.755e-05/2.573, allocations: 6.484 kB / 0.8681 GB, free: 86.07 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003723/2.576, allocations: 0.57 MB / 0.8687 GB, free: 86.04 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002895/2.579, allocations: 0.6845 MB / 0.8694 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005945/2.58, allocations: 14.16 kB / 0.8694 GB, free: 86.01 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/2.593, allocations: 9.711 MB / 0.8789 GB, free: 80.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/2.593, allocations: 3.656 kB / 0.8789 GB, free: 80.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01811/2.611, allocations: 9.761 MB / 0.8884 GB, free: 78.29 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003495/2.614, allocations: 1.071 MB / 0.8894 GB, free: 77.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001632/2.616, allocations: 7.875 kB / 0.8895 GB, free: 77.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004411/2.62, allocations: 145 kB / 0.8896 GB, free: 77.72 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009267/2.621, allocations: 197.4 kB / 0.8898 GB, free: 77.69 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004428/2.622, allocations: 84.59 kB / 0.8899 GB, free: 77.67 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01422/2.636, allocations: 3.754 MB / 0.8935 GB, free: 76.32 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.957e-06/2.636, allocations: 0 / 0.8935 GB, free: 76.32 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01991/2.656, allocations: 1.624 MB / 0.8951 GB, free: 76.31 MB / 0.4948 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (279): * Single equations (assignments): 272 * 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.001295/2.658, allocations: 164 kB / 0.8953 GB, free: 76.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02515/2.683, allocations: 8.469 MB / 0.9035 GB, free: 72.95 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/2.683, allocations: 3.875 kB / 0.9035 GB, free: 72.95 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.008638/2.691, allocations: 3.104 MB / 0.9066 GB, free: 71.52 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008429/2.7, allocations: 0.7372 MB / 0.9073 GB, free: 71.24 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05719/2.757, allocations: 15.74 MB / 0.9227 GB, free: 59.19 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01919/2.776, allocations: 6.129 MB / 0.9287 GB, free: 54.73 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002557/2.779, allocations: 496.7 kB / 0.9291 GB, free: 54.26 MB / 0.4948 GB Notification: Performance of SimCode: time 1.954e-06/2.779, allocations: 0 / 0.9291 GB, free: 54.26 MB / 0.4948 GB Notification: Performance of Templates: time 0.6704/3.449, allocations: 239.3 MB / 1.163 GB, free: 476 kB / 0.5105 GB