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.Torque2.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.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.384/2.384, allocations: 234.9 MB / 251.1 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004204/0.0004205, allocations: 12 kB / 314.9 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3368, allocations: 54.86 MB / 369.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1844/0.5212, allocations: 105.4 MB / 475.2 MB, free: 1.188 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/0.5216, allocations: 83.97 kB / 475.3 MB, free: 1.105 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.549/2.071, allocations: 241.6 MB / 0.7001 GB, free: 41.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.166e-06/2.071, allocations: 3.938 kB / 0.7001 GB, free: 41.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008922/2.072, allocations: 249.9 kB / 0.7003 GB, free: 41.5 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.05584/2.128, allocations: 13.34 MB / 0.7134 GB, free: 36.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/2.128, allocations: 15.19 kB / 0.7134 GB, free: 36.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09264/2.22, allocations: 12.8 MB / 0.7259 GB, free: 35.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04702/2.267, allocations: 13.35 MB / 0.7389 GB, free: 34.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001273/2.269, allocations: 0.9618 MB / 0.7399 GB, free: 34.09 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008508/2.277, allocations: 1.284 MB / 0.7411 GB, free: 33.95 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09644/2.374, allocations: 30.28 MB / 0.7707 GB, free: 7.324 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009597/2.375, allocations: 146.1 kB / 0.7708 GB, free: 7.184 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006612/2.381, allocations: 0.5921 MB / 0.7714 GB, free: 6.664 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006344/2.388, allocations: 2.859 MB / 0.7742 GB, free: 4.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08728/2.475, allocations: 24.68 MB / 0.7983 GB, free: 11.52 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6243/3.1, allocations: 127.8 MB / 0.9231 GB, free: 33.61 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06551/3.165, allocations: 14.07 MB / 0.9368 GB, free: 32.83 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06975/3.235, allocations: 19.84 MB / 0.9562 GB, free: 27.33 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001339/3.235, allocations: 101.4 kB / 0.9563 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=562): time 1.436e-05/3.235, allocations: 0 / 0.9563 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=646): time 0.3683/3.604, allocations: 69.4 MB / 1.024 GB, free: 5.016 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003359/3.604, allocations: 380.8 kB / 1.024 GB, free: 4.578 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.5248/4.129, allocations: 13.01 MB / 1.037 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.001936/4.131, allocations: 121.5 kB / 1.037 GB, free: 126.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.008284/4.139, allocations: 8.02 MB / 1.045 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.004402/4.144, allocations: 2.374 MB / 1.047 GB, free: 122.5 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003366/4.147, allocations: 307.6 kB / 1.048 GB, free: 122.5 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.001974/4.149, allocations: 0.9666 MB / 1.049 GB, free: 122.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01893/4.168, allocations: 6.771 MB / 1.055 GB, free: 122.1 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02488/4.193, allocations: 15.25 MB / 1.07 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02439/4.217, allocations: 9.931 MB / 1.08 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004604/4.218, allocations: 84.72 kB / 1.08 GB, free: 111.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.07015/4.288, allocations: 24.25 MB / 1.104 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003129/4.288, allocations: 136.4 kB / 1.104 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005695/4.289, allocations: 292.9 kB / 1.104 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01394/4.303, allocations: 3.237 MB / 1.107 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02512/4.328, allocations: 3.76 MB / 1.111 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04509/4.373, allocations: 23.24 MB / 1.134 GB, free: 93.24 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02108/4.394, allocations: 0.9216 MB / 1.134 GB, free: 92.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004419/4.399, allocations: 0.8854 MB / 1.135 GB, free: 92.85 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1343 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1897): * Single equations (assignments): 1890 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01967/4.419, allocations: 5.737 MB / 1.141 GB, free: 90.23 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004153/4.423, allocations: 1.077 MB / 1.142 GB, free: 89.63 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04596/4.469, allocations: 14.67 MB / 1.156 GB, free: 80.33 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/4.469, allocations: 65.88 kB / 1.156 GB, free: 80.27 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-05/4.469, allocations: 18.91 kB / 1.156 GB, free: 80.25 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001729/4.469, allocations: 34.98 kB / 1.156 GB, free: 80.25 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1006/4.57, allocations: 32.44 MB / 1.188 GB, free: 54.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001217/4.57, allocations: 15.88 kB / 1.188 GB, free: 54.12 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01278/4.583, allocations: 1.28 MB / 1.189 GB, free: 53.14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01285/4.596, allocations: 2.77 MB / 1.192 GB, free: 51.19 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002047/4.598, allocations: 123.8 kB / 1.192 GB, free: 51.07 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04433/4.642, allocations: 21.71 MB / 1.213 GB, free: 31.71 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.369e-05/4.642, allocations: 23.88 kB / 1.213 GB, free: 31.69 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5141/5.156, allocations: 22.67 MB / 1.236 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01192/5.168, allocations: 2.174 MB / 1.238 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006682/5.175, allocations: 122.5 kB / 1.238 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01599/5.191, allocations: 436.6 kB / 1.238 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003132/5.194, allocations: 412.2 kB / 1.239 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001887/5.196, allocations: 169.2 kB / 1.239 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.02478/5.221, allocations: 7.761 MB / 1.246 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.02e-07/5.221, allocations: 0 / 1.246 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02249/5.244, allocations: 3.106 MB / 1.249 GB, free: 105.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.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 (553): * Single equations (assignments): 546 * 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.002611/5.246, allocations: 304.5 kB / 1.25 GB, free: 105.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.09847/5.345, allocations: 16.83 MB / 1.266 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.834e-05/5.345, allocations: 3.531 kB / 1.266 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02772/5.372, allocations: 7.102 MB / 1.273 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01637/5.389, allocations: 1.34 MB / 1.274 GB, free: 104 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09402/5.483, allocations: 36.63 MB / 1.31 GB, free: 88.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02422/5.507, allocations: 8.885 MB / 1.319 GB, free: 85.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007385/5.515, allocations: 0.8368 MB / 1.32 GB, free: 85.92 MB / 0.5417 GB Notification: Performance of SimCode: time 3.126e-06/5.515, allocations: 0 / 1.32 GB, free: 85.92 MB / 0.5417 GB Notification: Performance of Templates: time 1.655/7.17, allocations: 373.1 MB / 1.684 GB, free: 146.6 MB / 0.5886 GB