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.Torque2.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.Torque2,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadModel(ModelicaTest): time 2.161/2.161, allocations: 235.1 MB / 243 MB, free: 9.492 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.135e-05/2.141e-05, allocations: 7.984 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2714/0.2714, allocations: 54.86 MB / 358 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1573/0.4288, allocations: 104.6 MB / 462.7 MB, free: 6.129 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.4291, allocations: 71.97 kB / 462.8 MB, free: 6.059 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.304/1.733, allocations: 234.3 MB / 0.6807 GB, free: 40.67 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.761e-06/1.733, allocations: 0 / 0.6807 GB, free: 40.67 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0007345/1.734, allocations: 255.1 kB / 0.681 GB, free: 40.66 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: 4454 * Number of variables: 4454 Notification: Performance of Generate backend data structure: time 0.04172/1.776, allocations: 12.33 MB / 0.693 GB, free: 36.15 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/1.776, allocations: 15.25 kB / 0.693 GB, free: 36.15 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0725/1.848, allocations: 12.82 MB / 0.7055 GB, free: 35.26 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03698/1.885, allocations: 13.29 MB / 0.7185 GB, free: 33.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006852/1.886, allocations: 419.2 kB / 0.7189 GB, free: 33.77 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004941/1.891, allocations: 0.7522 MB / 0.7196 GB, free: 33.75 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03697/1.928, allocations: 17.54 MB / 0.7368 GB, free: 30.96 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05658/1.985, allocations: 26.03 MB / 0.7622 GB, free: 6.461 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000746/1.986, allocations: 146.7 kB / 0.7623 GB, free: 6.387 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004527/1.99, allocations: 64 kB / 0.7624 GB, free: 6.324 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004676/1.995, allocations: 2.857 MB / 0.7652 GB, free: 3.957 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5111/2.506, allocations: 121.6 MB / 0.8839 GB, free: 30.98 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01612/2.522, allocations: 10.78 MB / 0.8944 GB, free: 29.68 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01121/2.533, allocations: 7.544 MB / 0.9018 GB, free: 29.61 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001639/2.535, allocations: 1.091 MB / 0.9028 GB, free: 28.76 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001094/2.535, allocations: 92.75 kB / 0.9029 GB, free: 28.71 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=548): time 1.364e-05/2.535, allocations: 3.5 kB / 0.9029 GB, free: 28.71 MB / 0.5105 GB Notification: Performance of matching and sorting (n=636): time 0.1679/2.703, allocations: 61.5 MB / 0.963 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/2.703, allocations: 378.6 kB / 0.9634 GB, free: 10.07 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.018/2.721, allocations: 8.02 MB / 0.9712 GB, free: 7.281 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0014/2.723, allocations: 31 kB / 0.9712 GB, free: 7.25 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.007068/2.73, allocations: 8.385 MB / 0.9794 GB, free: 1.039 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.003878/2.734, allocations: 2.275 MB / 0.9816 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002261/2.736, allocations: 0 / 0.9816 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001762/2.738, allocations: 0.9927 MB / 0.9826 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01523/2.753, allocations: 6.439 MB / 0.9889 GB, free: 8.918 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02388/2.777, allocations: 15.11 MB / 1.004 GB, free: 6.855 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02394/2.801, allocations: 9.929 MB / 1.013 GB, free: 15.66 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003396/2.801, allocations: 88 kB / 1.013 GB, free: 15.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2081) (initialization): time 0.3927/3.194, allocations: 22.51 MB / 1.035 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003075/3.195, allocations: 138.9 kB / 1.036 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005154/3.195, allocations: 314.2 kB / 1.036 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01127/3.206, allocations: 3.329 MB / 1.039 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01862/3.225, allocations: 3.87 MB / 1.043 GB, free: 123.3 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03687/3.262, allocations: 21.38 MB / 1.064 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01632/3.278, allocations: 0.6438 MB / 1.064 GB, free: 118.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003773/3.282, allocations: 0.9184 MB / 1.065 GB, free: 118.2 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1397 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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 (1961): * Single equations (assignments): 1954 * 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 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005805/3.288, allocations: 0.9104 MB / 1.066 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002834/3.291, allocations: 0.9034 MB / 1.067 GB, free: 118.1 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03291/3.324, allocations: 13.8 MB / 1.08 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001211/3.324, allocations: 65.72 kB / 1.081 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.912e-05/3.324, allocations: 19.28 kB / 1.081 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001381/3.324, allocations: 31.08 kB / 1.081 GB, free: 117.7 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07191/3.396, allocations: 28.82 MB / 1.109 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.881e-05/3.396, allocations: 7.188 kB / 1.109 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00814/3.404, allocations: 1.223 MB / 1.11 GB, free: 114 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01068/3.415, allocations: 2.815 MB / 1.113 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001543/3.417, allocations: 27.19 kB / 1.113 GB, free: 113.4 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03372/3.45, allocations: 19.79 MB / 1.132 GB, free: 103 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-05/3.45, allocations: 17.67 kB / 1.132 GB, free: 103 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04361/3.494, allocations: 23.37 MB / 1.155 GB, free: 90.48 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00628/3.5, allocations: 1.925 MB / 1.157 GB, free: 88.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003199/3.504, allocations: 15.7 kB / 1.157 GB, free: 88.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007892/3.512, allocations: 349.2 kB / 1.157 GB, free: 88.54 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002076/3.514, allocations: 393.2 kB / 1.157 GB, free: 88.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009196/3.515, allocations: 163.5 kB / 1.158 GB, free: 88.14 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.01281/3.527, allocations: 5.424 MB / 1.163 GB, free: 83.47 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.162e-06/3.527, allocations: 3.938 kB / 1.163 GB, free: 83.47 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01932/3.547, allocations: 2.671 MB / 1.166 GB, free: 80.8 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,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 (547): * Single equations (assignments): 540 * 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 {(4,75.0%) 18,(4,75.0%) 18,(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.001695/3.549, allocations: 206.4 kB / 1.166 GB, free: 80.68 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.03073/3.579, allocations: 16.38 MB / 1.182 GB, free: 66.18 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/3.579, allocations: 3.328 kB / 1.182 GB, free: 66.18 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.01349/3.593, allocations: 6.819 MB / 1.188 GB, free: 60.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007595/3.6, allocations: 0.9685 MB / 1.189 GB, free: 59.31 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06407/3.665, allocations: 26.45 MB / 1.215 GB, free: 36.16 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02145/3.686, allocations: 8.903 MB / 1.224 GB, free: 29.79 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005401/3.692, allocations: 0.7665 MB / 1.225 GB, free: 29.07 MB / 0.5573 GB Notification: Performance of SimCode: time 1.712e-06/3.692, allocations: 2.906 kB / 1.225 GB, free: 29.07 MB / 0.5573 GB Notification: Performance of Templates: time 1.234/4.926, allocations: 362.3 MB / 1.578 GB, free: 44.19 MB / 0.5573 GB