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.Torque.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.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.2_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 2.32/2.32, allocations: 235 MB / 248.1 MB, free: 14.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.814e-05/2.836e-05, allocations: 4 kB / 309.7 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.324, allocations: 54.86 MB / 364.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1537/0.4778, allocations: 101.4 MB / 465.9 MB, free: 11.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.4781, allocations: 76.77 kB / 466 MB, free: 10.95 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7486/1.227, allocations: 132 MB / 0.584 GB, free: 101.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.586e-06/1.227, allocations: 0 / 0.584 GB, free: 101.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003579/1.227, allocations: 135.2 kB / 0.5842 GB, free: 101.4 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.02157/1.249, allocations: 6.664 MB / 0.5907 GB, free: 97.9 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/1.249, allocations: 7.406 kB / 0.5907 GB, free: 97.9 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03648/1.285, allocations: 7.137 MB / 0.5976 GB, free: 94.28 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02057/1.306, allocations: 7.428 MB / 0.6049 GB, free: 88.15 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005678/1.306, allocations: 0.5085 MB / 0.6054 GB, free: 87.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00272/1.309, allocations: 0.6644 MB / 0.606 GB, free: 87.06 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04061/1.35, allocations: 16.08 MB / 0.6217 GB, free: 69.54 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000509/1.35, allocations: 83.22 kB / 0.6218 GB, free: 69.46 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002505/1.353, allocations: 327.8 kB / 0.6221 GB, free: 69.14 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002511/1.355, allocations: 1.553 MB / 0.6237 GB, free: 67.57 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03125/1.387, allocations: 12.94 MB / 0.6363 GB, free: 54.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4305/1.817, allocations: 72.97 MB / 0.7075 GB, free: 93.77 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0225/1.84, allocations: 6.461 MB / 0.7139 GB, free: 93.08 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006363/1.846, allocations: 3.679 MB / 0.7174 GB, free: 93.03 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01918/1.865, allocations: 9.282 MB / 0.7265 GB, free: 91.62 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/1.866, allocations: 61.47 kB / 0.7266 GB, free: 91.58 MB / 474.7 MB Notification: Performance of pre-optimization done (n=269): time 7.601e-06/1.866, allocations: 0 / 0.7266 GB, free: 91.58 MB / 474.7 MB Notification: Performance of matching and sorting (n=311): time 0.08395/1.95, allocations: 25.88 MB / 0.7518 GB, free: 86.15 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.28e-05/1.95, allocations: 239.7 kB / 0.7521 GB, free: 85.89 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01334/1.963, allocations: 6.104 MB / 0.758 GB, free: 83.71 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006749/1.964, allocations: 67.5 kB / 0.7581 GB, free: 83.65 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003473/1.967, allocations: 4.592 MB / 0.7626 GB, free: 79.99 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001577/1.969, allocations: 1.18 MB / 0.7637 GB, free: 79.13 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/1.97, allocations: 177.6 kB / 0.7639 GB, free: 78.99 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007915/1.971, allocations: 0.6918 MB / 0.7646 GB, free: 78.52 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007447/1.978, allocations: 3.492 MB / 0.768 GB, free: 77.32 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00999/1.988, allocations: 8.77 MB / 0.7766 GB, free: 69.06 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/1.999, allocations: 5.488 MB / 0.7819 GB, free: 67.44 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001868/1.999, allocations: 50.59 kB / 0.782 GB, free: 67.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.02978/2.029, allocations: 13.28 MB / 0.7949 GB, free: 60.22 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001453/2.029, allocations: 84 kB / 0.795 GB, free: 60.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002098/2.029, allocations: 184.8 kB / 0.7952 GB, free: 59.96 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00531/2.035, allocations: 1.711 MB / 0.7969 GB, free: 58.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009241/2.044, allocations: 2.125 MB / 0.7989 GB, free: 56.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01695/2.061, allocations: 11.34 MB / 0.81 GB, free: 46.66 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009647/2.071, allocations: 0.5316 MB / 0.8105 GB, free: 46.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001838/2.072, allocations: 0.5309 MB / 0.811 GB, free: 45.69 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * 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 (1104): * Single equations (assignments): 1099 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002651/2.075, allocations: 0.799 MB / 0.8118 GB, free: 44.89 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001301/2.076, allocations: 0.5862 MB / 0.8124 GB, free: 44.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01473/2.091, allocations: 6.691 MB / 0.8189 GB, free: 38.88 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.036e-05/2.091, allocations: 44.22 kB / 0.819 GB, free: 38.84 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-05/2.091, allocations: 8 kB / 0.819 GB, free: 38.83 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.381e-05/2.092, allocations: 14.11 kB / 0.819 GB, free: 38.83 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06077/2.152, allocations: 15.13 MB / 0.8338 GB, free: 25.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.704e-05/2.152, allocations: 4 kB / 0.8338 GB, free: 25.77 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007265/2.16, allocations: 0.5659 MB / 0.8343 GB, free: 25.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008936/2.169, allocations: 1.416 MB / 0.8357 GB, free: 23.78 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009812/2.17, allocations: 55.98 kB / 0.8358 GB, free: 23.72 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02883/2.199, allocations: 10.49 MB / 0.846 GB, free: 12.99 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.471e-05/2.199, allocations: 7.938 kB / 0.846 GB, free: 12.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02388/2.223, allocations: 11.73 MB / 0.8575 GB, free: 1.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00375/2.226, allocations: 1.15 MB / 0.8586 GB, free: 15.84 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001857/2.228, allocations: 59.92 kB / 0.8587 GB, free: 15.79 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00475/2.233, allocations: 219.2 kB / 0.8589 GB, free: 15.57 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001066/2.234, allocations: 193.9 kB / 0.8591 GB, free: 15.39 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004231/2.235, allocations: 83.98 kB / 0.8591 GB, free: 15.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01457/2.249, allocations: 4.344 MB / 0.8634 GB, free: 10.98 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.169e-06/2.249, allocations: 0 / 0.8634 GB, free: 10.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01891/2.268, allocations: 1.659 MB / 0.865 GB, free: 9.324 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 249 * 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.001442/2.27, allocations: 198.1 kB / 0.8652 GB, free: 9.129 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03456/2.304, allocations: 8.696 MB / 0.8737 GB, free: 448 kB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.942e-05/2.304, allocations: 4 kB / 0.8737 GB, free: 444 kB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01466/2.319, allocations: 3.338 MB / 0.8769 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009216/2.328, allocations: 0.6918 MB / 0.8776 GB, free: 12.39 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3364/2.665, allocations: 13.94 MB / 0.8912 GB, free: 126 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01229/2.677, allocations: 5.036 MB / 0.8961 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002812/2.68, allocations: 475.1 kB / 0.8966 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.923e-06/2.68, allocations: 0 / 0.8966 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.2059/2.886, allocations: 147.6 MB / 1.041 GB, free: 24.86 MB / 0.4948 GB