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.Torque3.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.Torque3,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.Torque3") Notification: Performance of loadModel(ModelicaTest): time 2.134/2.134, allocations: 235 MB / 248.1 MB, free: 14.58 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.121e-05/3.131e-05, allocations: 4 kB / 309.7 MB, free: 1.527 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3241, allocations: 54.85 MB / 364.5 MB, free: 5.512 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1992/0.5234, allocations: 103.9 MB / 468.4 MB, free: 8.605 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.5237, allocations: 75.95 kB / 468.5 MB, free: 8.531 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.018/1.541, allocations: 223.7 MB / 0.676 GB, free: 15.36 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.379e-06/1.541, allocations: 0 / 0.676 GB, free: 15.36 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006716/1.542, allocations: 236 kB / 0.6762 GB, free: 15.13 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: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 0.03807/1.58, allocations: 11.39 MB / 0.6873 GB, free: 3.648 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/1.58, allocations: 12.03 kB / 0.6873 GB, free: 3.637 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06924/1.649, allocations: 12.64 MB / 0.6997 GB, free: 6.957 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6446/2.294, allocations: 12.54 MB / 0.7119 GB, free: 50.21 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001224/2.295, allocations: 0.9025 MB / 0.7128 GB, free: 50.19 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005344/2.301, allocations: 1.206 MB / 0.714 GB, free: 50.19 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07614/2.377, allocations: 28.15 MB / 0.7415 GB, free: 44.71 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009078/2.378, allocations: 132.3 kB / 0.7416 GB, free: 44.71 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004989/2.383, allocations: 0.555 MB / 0.7421 GB, free: 44.71 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005152/2.388, allocations: 2.684 MB / 0.7447 GB, free: 44.68 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06179/2.45, allocations: 23.22 MB / 0.7674 GB, free: 44.51 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.18/2.63, allocations: 116.9 MB / 0.8816 GB, free: 3.988 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05214/2.682, allocations: 13.79 MB / 0.895 GB, free: 9.457 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01495/2.697, allocations: 7.875 MB / 0.9027 GB, free: 2.246 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3196/3.017, allocations: 2.346 MB / 0.905 GB, free: 108.1 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001209/3.017, allocations: 93.59 kB / 0.9051 GB, free: 108.1 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=559): time 1.386e-05/3.017, allocations: 0 / 0.9051 GB, free: 108.1 MB / 0.5262 GB Notification: Performance of matching and sorting (n=643): time 0.1952/3.212, allocations: 53.33 MB / 0.9572 GB, free: 100.2 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/3.212, allocations: 330.3 kB / 0.9575 GB, free: 99.91 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02199/3.234, allocations: 8.971 MB / 0.9663 GB, free: 99.18 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.001589/3.236, allocations: 126.2 kB / 0.9664 GB, free: 99.15 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.005928/3.242, allocations: 7.308 MB / 0.9735 GB, free: 95.36 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003437/3.245, allocations: 2.344 MB / 0.9758 GB, free: 93.96 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002437/3.248, allocations: 286.9 kB / 0.9761 GB, free: 93.96 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001526/3.25, allocations: 0.9153 MB / 0.977 GB, free: 93.62 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01394/3.263, allocations: 6.385 MB / 0.9832 GB, free: 93.59 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0185/3.282, allocations: 13.96 MB / 0.9968 GB, free: 82.97 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01849/3.301, allocations: 9.356 MB / 1.006 GB, free: 80.05 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002597/3.301, allocations: 76.22 kB / 1.006 GB, free: 80.05 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.05376/3.355, allocations: 22.81 MB / 1.028 GB, free: 67.88 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002249/3.355, allocations: 119.3 kB / 1.028 GB, free: 67.77 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003524/3.355, allocations: 264 kB / 1.029 GB, free: 67.51 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0105/3.366, allocations: 3.269 MB / 1.032 GB, free: 65.1 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01595/3.382, allocations: 3.494 MB / 1.035 GB, free: 62.18 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03337/3.415, allocations: 22.56 MB / 1.057 GB, free: 41.89 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01534/3.431, allocations: 0.8699 MB / 1.058 GB, free: 41.19 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003179/3.434, allocations: 0.8112 MB / 1.059 GB, free: 40.41 MB / 0.5262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1201 * Number of states: 0 () * Number of discrete variables: 105 (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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[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],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 (1741): * Single equations (assignments): 1734 * 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.005085/3.439, allocations: 1.173 MB / 1.06 GB, free: 39.23 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002771/3.442, allocations: 0.941 MB / 1.061 GB, free: 38.28 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0346/3.476, allocations: 14.45 MB / 1.075 GB, free: 26.53 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.025e-05/3.476, allocations: 64 kB / 1.075 GB, free: 26.47 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.79e-05/3.477, allocations: 17.03 kB / 1.075 GB, free: 26.45 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001351/3.477, allocations: 33.44 kB / 1.075 GB, free: 26.45 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4117/3.888, allocations: 31.35 MB / 1.106 GB, free: 87.7 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.894e-05/3.889, allocations: 6.625 kB / 1.106 GB, free: 87.7 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009018/3.898, allocations: 1.216 MB / 1.107 GB, free: 87.7 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01032/3.908, allocations: 2.832 MB / 1.11 GB, free: 87.66 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00169/3.91, allocations: 122.2 kB / 1.11 GB, free: 87.66 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03578/3.945, allocations: 21.06 MB / 1.131 GB, free: 82.33 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.326e-06/3.945, allocations: 6.719 kB / 1.131 GB, free: 82.33 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04882/3.994, allocations: 23.75 MB / 1.154 GB, free: 79.37 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007108/4.001, allocations: 2.037 MB / 1.156 GB, free: 79.27 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0036/4.005, allocations: 119.2 kB / 1.156 GB, free: 79.27 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008517/4.014, allocations: 484.7 kB / 1.156 GB, free: 79.27 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002113/4.016, allocations: 399.4 kB / 1.157 GB, free: 79.26 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001178/4.017, allocations: 169.4 kB / 1.157 GB, free: 79.26 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01565/4.033, allocations: 6.415 MB / 1.163 GB, free: 78.93 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.228e-06/4.033, allocations: 0 / 1.163 GB, free: 78.93 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.02174/4.054, allocations: 2.934 MB / 1.166 GB, free: 78.93 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.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 (554): * Single equations (assignments): 547 * 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.003094/4.058, allocations: 293.2 kB / 1.166 GB, free: 78.76 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.05776/4.115, allocations: 16.03 MB / 1.182 GB, free: 73.48 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 2.091e-05/4.116, allocations: 4.031 kB / 1.182 GB, free: 73.48 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02499/4.141, allocations: 7.051 MB / 1.189 GB, free: 70.76 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009062/4.15, allocations: 1.19 MB / 1.19 GB, free: 70.26 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06319/4.213, allocations: 25.32 MB / 1.215 GB, free: 57.69 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01985/4.233, allocations: 8.309 MB / 1.223 GB, free: 51.7 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00546/4.238, allocations: 0.7719 MB / 1.224 GB, free: 50.98 MB / 0.5262 GB Notification: Performance of SimCode: time 2.786e-06/4.238, allocations: 0 / 1.224 GB, free: 50.98 MB / 0.5262 GB Notification: Performance of Templates: time 1.203/5.441, allocations: 346.9 MB / 1.562 GB, free: 141.6 MB / 0.5887 GB