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.Torque.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,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.1_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 1.889/1.889, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.016e-05/2.019e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2615/0.2616, allocations: 48.68 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1452/0.4069, allocations: 93.94 MB / 413.9 MB, free: 2.469 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.4072, allocations: 75.95 kB / 414 MB, free: 2.395 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.716/1.123, allocations: 128.8 MB / 0.5301 GB, free: 30 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.437e-06/1.123, allocations: 0 / 0.5301 GB, free: 30 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003587/1.124, allocations: 135.9 kB / 0.5302 GB, free: 29.87 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.02087/1.145, allocations: 6.661 MB / 0.5367 GB, free: 23.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/1.145, allocations: 8.031 kB / 0.5367 GB, free: 23.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03564/1.18, allocations: 7.136 MB / 0.5437 GB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02038/1.201, allocations: 7.438 MB / 0.551 GB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003686/1.201, allocations: 223.9 kB / 0.5512 GB, free: 8.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002569/1.204, allocations: 391.9 kB / 0.5515 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01936/1.223, allocations: 9.251 MB / 0.5606 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03628/1.259, allocations: 14.32 MB / 0.5746 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004517/1.26, allocations: 87.22 kB / 0.5747 GB, free: 14.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002486/1.262, allocations: 44 kB / 0.5747 GB, free: 14.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003125/1.266, allocations: 1.55 MB / 0.5762 GB, free: 13.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.343/1.609, allocations: 69.63 MB / 0.6442 GB, free: 27.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007684/1.616, allocations: 5.206 MB / 0.6493 GB, free: 27.16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005347/1.622, allocations: 3.506 MB / 0.6527 GB, free: 27.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006988/1.622, allocations: 390.1 kB / 0.6531 GB, free: 26.82 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.563e-05/1.623, allocations: 68.38 kB / 0.6532 GB, free: 26.78 MB / 410.7 MB Notification: Performance of pre-optimization done (n=268): time 7.858e-06/1.623, allocations: 0 / 0.6532 GB, free: 26.78 MB / 410.7 MB Notification: Performance of matching and sorting (n=312): time 0.07241/1.695, allocations: 27.53 MB / 0.68 GB, free: 17.42 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.884e-05/1.695, allocations: 247.7 kB / 0.6803 GB, free: 17.16 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009678/1.705, allocations: 4.77 MB / 0.6849 GB, free: 15.47 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006455/1.705, allocations: 25.7 kB / 0.685 GB, free: 15.44 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003407/1.709, allocations: 4.8 MB / 0.6897 GB, free: 11.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001546/1.71, allocations: 1.142 MB / 0.6908 GB, free: 11.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008119/1.711, allocations: 2.812 kB / 0.6908 GB, free: 11.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006195/1.712, allocations: 0.7112 MB / 0.6915 GB, free: 10.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007052/1.719, allocations: 3.411 MB / 0.6948 GB, free: 9.301 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0102/1.729, allocations: 8.859 MB / 0.7034 GB, free: 480 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/1.746, allocations: 5.733 MB / 0.709 GB, free: 12.94 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000216/1.746, allocations: 59.52 kB / 0.7091 GB, free: 12.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.03217/1.778, allocations: 12.37 MB / 0.7212 GB, free: 2.445 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001831/1.778, allocations: 88 kB / 0.7213 GB, free: 2.359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000308/1.779, allocations: 196.9 kB / 0.7215 GB, free: 2.168 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005904/1.785, allocations: 1.72 MB / 0.7231 GB, free: 0.8711 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01001/1.795, allocations: 2.221 MB / 0.7253 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01997/1.815, allocations: 10.75 MB / 0.7358 GB, free: 5.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009179/1.824, allocations: 369 kB / 0.7362 GB, free: 5.145 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002252/1.826, allocations: 0.5561 MB / 0.7367 GB, free: 4.609 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 886 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (1148): * Single equations (assignments): 1143 * 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 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002923/1.829, allocations: 0.5935 MB / 0.7373 GB, free: 4.012 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001437/1.831, allocations: 0.5129 MB / 0.7378 GB, free: 3.492 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01798/1.849, allocations: 6.582 MB / 0.7442 GB, free: 14.48 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.286e-05/1.849, allocations: 32 kB / 0.7442 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.55e-05/1.849, allocations: 11.81 kB / 0.7442 GB, free: 14.45 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.301e-05/1.849, allocations: 20.64 kB / 0.7443 GB, free: 14.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.036/1.885, allocations: 13.72 MB / 0.7577 GB, free: 3.387 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.139e-05/1.885, allocations: 0 / 0.7577 GB, free: 3.387 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003667/1.889, allocations: 0.5416 MB / 0.7582 GB, free: 2.961 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005296/1.894, allocations: 1.398 MB / 0.7596 GB, free: 1.984 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006909/1.895, allocations: 13.97 kB / 0.7596 GB, free: 1.973 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3142/2.209, allocations: 9.951 MB / 0.7693 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.987e-06/2.209, allocations: 3.594 kB / 0.7693 GB, free: 105.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02026/2.229, allocations: 10.95 MB / 0.78 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003104/2.232, allocations: 1.032 MB / 0.781 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001329/2.234, allocations: 14.14 kB / 0.781 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003594/2.237, allocations: 158.5 kB / 0.7812 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007377/2.238, allocations: 188.6 kB / 0.7813 GB, free: 104 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003425/2.238, allocations: 82.34 kB / 0.7814 GB, free: 104 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006597/2.245, allocations: 3.21 MB / 0.7845 GB, free: 103.9 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.209e-06/2.245, allocations: 3.625 kB / 0.7846 GB, free: 103.9 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.009974/2.255, allocations: 1.42 MB / 0.7859 GB, free: 103.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000785/2.256, allocations: 158.5 kB / 0.7861 GB, free: 103.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01642/2.272, allocations: 8.594 MB / 0.7945 GB, free: 103.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.036e-06/2.272, allocations: 0 / 0.7945 GB, free: 103.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007133/2.279, allocations: 3.323 MB / 0.7977 GB, free: 103.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003792/2.283, allocations: 0.521 MB / 0.7982 GB, free: 103.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02871/2.312, allocations: 13.69 MB / 0.8116 GB, free: 99.22 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009074/2.321, allocations: 5.036 MB / 0.8165 GB, free: 97.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002416/2.324, allocations: 440.6 kB / 0.8169 GB, free: 97.56 MB / 458.7 MB Notification: Performance of SimCode: time 2.04e-06/2.324, allocations: 1.625 kB / 0.8169 GB, free: 97.56 MB / 458.7 MB Notification: Performance of Templates: time 0.4492/2.773, allocations: 142.1 MB / 0.9557 GB, free: 107.1 MB / 458.7 MB