Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Torque2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Forces.Torque2") Notification: Performance of loadModel(ModelicaTest): time 1.889/1.889, allocations: 209.4 MB / 217.3 MB, free: 4.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.722e-05/1.738e-05, allocations: 4 kB / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2611, allocations: 48.69 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1484/0.4095, allocations: 97.85 MB / 417.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.4098, allocations: 67.97 kB / 417.9 MB, free: 14.52 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.301/1.711, allocations: 233.9 MB / 0.6365 GB, free: 29.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.458e-06/1.711, allocations: 0 / 0.6365 GB, free: 29.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006827/1.711, allocations: 254.3 kB / 0.6368 GB, free: 29.44 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 0.03965/1.751, allocations: 12.34 MB / 0.6488 GB, free: 24.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/1.751, allocations: 10.31 kB / 0.6488 GB, free: 24.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06744/1.819, allocations: 12.81 MB / 0.6614 GB, free: 24.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03672/1.855, allocations: 13.27 MB / 0.6743 GB, free: 22.52 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007054/1.856, allocations: 417.8 kB / 0.6747 GB, free: 22.52 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004965/1.861, allocations: 0.7487 MB / 0.6754 GB, free: 22.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03755/1.899, allocations: 17.52 MB / 0.6926 GB, free: 18.69 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05958/1.958, allocations: 26 MB / 0.7179 GB, free: 10.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006965/1.959, allocations: 148.8 kB / 0.7181 GB, free: 10.14 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003915/1.963, allocations: 71.95 kB / 0.7182 GB, free: 10.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005757/1.969, allocations: 2.859 MB / 0.7209 GB, free: 7.691 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5523/2.521, allocations: 121.6 MB / 0.8397 GB, free: 35.3 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01548/2.537, allocations: 10.78 MB / 0.8502 GB, free: 34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01157/2.548, allocations: 7.534 MB / 0.8576 GB, free: 33.93 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001602/2.55, allocations: 1.1 MB / 0.8586 GB, free: 33.07 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.447e-05/2.55, allocations: 95.12 kB / 0.8587 GB, free: 33.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=548): time 1.254e-05/2.55, allocations: 3.875 kB / 0.8587 GB, free: 33.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=636): time 0.1681/2.718, allocations: 61.48 MB / 0.9188 GB, free: 12.16 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000255/2.718, allocations: 374.3 kB / 0.9191 GB, free: 11.78 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01969/2.738, allocations: 8.03 MB / 0.927 GB, free: 5.887 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001353/2.739, allocations: 28.89 kB / 0.927 GB, free: 5.855 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00875/2.748, allocations: 8.376 MB / 0.9352 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.00406/2.752, allocations: 2.279 MB / 0.9374 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002077/2.754, allocations: 0 / 0.9374 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001719/2.756, allocations: 0.9873 MB / 0.9384 GB, free: 11.66 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01519/2.771, allocations: 6.446 MB / 0.9447 GB, free: 5.902 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.359/3.13, allocations: 15.13 MB / 0.9594 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0195/3.15, allocations: 9.733 MB / 0.969 GB, free: 101 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0006028/3.151, allocations: 86.66 kB / 0.969 GB, free: 101 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2081) (initialization): time 0.05576/3.206, allocations: 22.49 MB / 0.991 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002816/3.207, allocations: 139.8 kB / 0.9911 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004451/3.207, allocations: 302.9 kB / 0.9914 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01083/3.218, allocations: 3.32 MB / 0.9947 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0177/3.236, allocations: 3.881 MB / 0.9985 GB, free: 99.92 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03545/3.271, allocations: 21.37 MB / 1.019 GB, free: 94.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01698/3.288, allocations: 0.6486 MB / 1.02 GB, free: 94.6 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004101/3.293, allocations: 0.9204 MB / 1.021 GB, free: 94.6 MB / 0.4948 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.006655/3.299, allocations: 0.9021 MB / 1.022 GB, free: 94.16 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00319/3.302, allocations: 0.9047 MB / 1.023 GB, free: 94.16 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03328/3.336, allocations: 13.79 MB / 1.036 GB, free: 90.06 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001218/3.336, allocations: 66.64 kB / 1.036 GB, free: 90.06 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.759e-05/3.336, allocations: 19.61 kB / 1.036 GB, free: 90.06 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001391/3.336, allocations: 34.36 kB / 1.036 GB, free: 90.06 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0705/3.407, allocations: 28.82 MB / 1.064 GB, free: 76.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-05/3.407, allocations: 4.75 kB / 1.064 GB, free: 76.87 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007865/3.415, allocations: 1.224 MB / 1.066 GB, free: 75.92 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009718/3.424, allocations: 2.816 MB / 1.068 GB, free: 73.95 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001541/3.426, allocations: 22.62 kB / 1.068 GB, free: 73.93 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03082/3.457, allocations: 19.79 MB / 1.088 GB, free: 56.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.236e-05/3.457, allocations: 11.94 kB / 1.088 GB, free: 56.49 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04251/3.499, allocations: 23.36 MB / 1.11 GB, free: 35.85 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006474/3.506, allocations: 1.928 MB / 1.112 GB, free: 34.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003163/3.509, allocations: 12 kB / 1.112 GB, free: 34.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007851/3.517, allocations: 349.7 kB / 1.113 GB, free: 33.89 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002048/3.519, allocations: 396.7 kB / 1.113 GB, free: 33.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000898/3.52, allocations: 165 kB / 1.113 GB, free: 33.48 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0129/3.533, allocations: 5.425 MB / 1.119 GB, free: 28.82 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.99e-07/3.533, allocations: 0 / 1.119 GB, free: 28.82 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01956/3.553, allocations: 2.679 MB / 1.121 GB, free: 26.15 MB / 0.4948 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.001727/3.554, allocations: 198.5 kB / 1.121 GB, free: 25.96 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.3307/3.885, allocations: 16.6 MB / 1.138 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/3.885, allocations: 0 / 1.138 GB, free: 105.5 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01427/3.899, allocations: 6.819 MB / 1.144 GB, free: 105 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007589/3.907, allocations: 0.974 MB / 1.145 GB, free: 105 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06337/3.97, allocations: 26.44 MB / 1.171 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02205/3.993, allocations: 8.896 MB / 1.18 GB, free: 99.35 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005007/3.998, allocations: 0.7708 MB / 1.18 GB, free: 99.34 MB / 0.4948 GB Notification: Performance of SimCode: time 2.13e-06/3.998, allocations: 0 / 1.18 GB, free: 99.34 MB / 0.4948 GB Notification: Performance of Templates: time 1.119/5.117, allocations: 361.8 MB / 1.534 GB, free: 131.8 MB / 0.5261 GB