Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.853/1.853, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006314/0.0006317, allocations: 15.98 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.3999, allocations: 48.71 MB / 331.8 MB, free: 6.52 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1978/0.5978, allocations: 94.69 MB / 426.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.5981, allocations: 83.95 kB / 426.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8452/1.443, allocations: 132.6 MB / 0.546 GB, free: 50.8 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.354e-06/1.443, allocations: 3.938 kB / 0.546 GB, free: 50.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005326/1.444, allocations: 132 kB / 0.5462 GB, free: 50.67 MB / 394.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.02892/1.473, allocations: 7.179 MB / 0.5532 GB, free: 43.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/1.473, allocations: 12.02 kB / 0.5532 GB, free: 43.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05106/1.524, allocations: 7.14 MB / 0.5602 GB, free: 36.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02702/1.551, allocations: 7.457 MB / 0.5674 GB, free: 28.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006317/1.552, allocations: 0.5013 MB / 0.5679 GB, free: 28.19 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003748/1.556, allocations: 0.6638 MB / 0.5686 GB, free: 27.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04914/1.605, allocations: 16.23 MB / 0.5844 GB, free: 9.793 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005527/1.605, allocations: 95.11 kB / 0.5845 GB, free: 9.699 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00381/1.609, allocations: 327.8 kB / 0.5848 GB, free: 9.379 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003454/1.613, allocations: 1.542 MB / 0.5863 GB, free: 7.832 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04283/1.656, allocations: 13.15 MB / 0.5992 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4479/2.104, allocations: 72.91 MB / 0.6704 GB, free: 31.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02746/2.131, allocations: 6.496 MB / 0.6767 GB, free: 30.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03206/2.163, allocations: 9.286 MB / 0.6858 GB, free: 28.71 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.773e-05/2.163, allocations: 62.47 kB / 0.6859 GB, free: 28.67 MB / 426.7 MB Notification: Performance of pre-optimization done (n=269): time 1.03e-05/2.163, allocations: 0 / 0.6859 GB, free: 28.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=311): time 0.1424/2.306, allocations: 30.87 MB / 0.716 GB, free: 21.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/2.306, allocations: 234.5 kB / 0.7162 GB, free: 21.07 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01829/2.324, allocations: 6.908 MB / 0.723 GB, free: 18.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009383/2.325, allocations: 74.58 kB / 0.723 GB, free: 18.62 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00463/2.33, allocations: 4.586 MB / 0.7275 GB, free: 14.97 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002138/2.332, allocations: 1.181 MB / 0.7287 GB, free: 14.11 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001698/2.334, allocations: 182 kB / 0.7288 GB, free: 13.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008874/2.335, allocations: 0.6943 MB / 0.7295 GB, free: 13.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009894/2.345, allocations: 3.565 MB / 0.733 GB, free: 12.29 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01355/2.358, allocations: 8.883 MB / 0.7417 GB, free: 4.02 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01332/2.372, allocations: 5.497 MB / 0.747 GB, free: 2.141 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002317/2.372, allocations: 58.75 kB / 0.7471 GB, free: 2.137 MB / 426.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.05403/2.426, allocations: 14.09 MB / 0.7609 GB, free: 8.922 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001796/2.426, allocations: 84 kB / 0.7609 GB, free: 8.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003855/2.427, allocations: 191.2 kB / 0.7611 GB, free: 8.656 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007849/2.435, allocations: 1.678 MB / 0.7628 GB, free: 7.398 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01536/2.45, allocations: 2.132 MB / 0.7648 GB, free: 5.574 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02703/2.477, allocations: 11.66 MB / 0.7762 GB, free: 11.13 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01168/2.489, allocations: 0.5296 MB / 0.7768 GB, free: 10.68 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00262/2.491, allocations: 0.5318 MB / 0.7773 GB, free: 10.16 MB / 458.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 () * Number of clocked 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.01099/2.502, allocations: 3.225 MB / 0.7804 GB, free: 7.328 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00227/2.505, allocations: 0.59 MB / 0.781 GB, free: 6.73 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02411/2.529, allocations: 6.713 MB / 0.7876 GB, free: 1.285 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.808e-05/2.529, allocations: 32 kB / 0.7876 GB, free: 1.254 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.446e-05/2.529, allocations: 8 kB / 0.7876 GB, free: 1.246 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.234e-05/2.529, allocations: 19.28 kB / 0.7876 GB, free: 1.242 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05248/2.582, allocations: 15.12 MB / 0.8024 GB, free: 2.195 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.269e-05/2.582, allocations: 10.41 kB / 0.8024 GB, free: 2.188 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006017/2.588, allocations: 0.5577 MB / 0.8029 GB, free: 1.629 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007264/2.595, allocations: 1.384 MB / 0.8043 GB, free: 244 kB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009365/2.596, allocations: 56 kB / 0.8043 GB, free: 188 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6327/3.229, allocations: 10.8 MB / 0.8149 GB, free: 116.5 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.456e-06/3.229, allocations: 6.75 kB / 0.8149 GB, free: 116.5 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02871/3.258, allocations: 10.94 MB / 0.8256 GB, free: 115.7 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004392/3.262, allocations: 1.155 MB / 0.8267 GB, free: 115.6 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002212/3.264, allocations: 59.98 kB / 0.8268 GB, free: 115.6 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005659/3.27, allocations: 204.4 kB / 0.827 GB, free: 115.6 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/3.271, allocations: 186.8 kB / 0.8271 GB, free: 115.6 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003438/3.272, allocations: 85.95 kB / 0.8272 GB, free: 115.6 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.0119/3.283, allocations: 4.418 MB / 0.8315 GB, free: 115.4 MB / 474.8 MB Notification: Performance of sort global known variables: time 6.52e-07/3.284, allocations: 0 / 0.8315 GB, free: 115.4 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01127/3.295, allocations: 1.654 MB / 0.8332 GB, free: 115.4 MB / 474.8 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 () * Number of clocked 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.001207/3.296, allocations: 207.5 kB / 0.8333 GB, free: 115.3 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.02022/3.316, allocations: 8.807 MB / 0.8419 GB, free: 114.3 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/3.316, allocations: 0 / 0.8419 GB, free: 114.3 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008902/3.325, allocations: 3.378 MB / 0.8452 GB, free: 113 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006176/3.332, allocations: 0.7065 MB / 0.8459 GB, free: 112.6 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.044/3.376, allocations: 19.03 MB / 0.8645 GB, free: 103.3 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01199/3.388, allocations: 5.033 MB / 0.8694 GB, free: 101.7 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003285/3.391, allocations: 471.6 kB / 0.8699 GB, free: 101.6 MB / 474.8 MB Notification: Performance of SimCode: time 1.272e-06/3.391, allocations: 0 / 0.8699 GB, free: 101.6 MB / 474.8 MB Notification: Performance of Templates: time 0.5989/3.99, allocations: 147.4 MB / 1.014 GB, free: 113 MB / 474.8 MB