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.Torque2.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.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.918/1.918, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005875/0.0005878, allocations: 8 kB / 283.1 MB, free: 9.703 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3449, allocations: 48.7 MB / 331.8 MB, free: 6.484 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1764/0.5213, allocations: 98.59 MB / 430.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002898/0.5217, allocations: 87.94 kB / 430.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.937/2.458, allocations: 241.2 MB / 0.656 GB, free: 30.59 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.528e-06/2.458, allocations: 0 / 0.656 GB, free: 30.59 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001238/2.46, allocations: 254.6 kB / 0.6562 GB, free: 30.59 MB / 426.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.05813/2.518, allocations: 13.34 MB / 0.6692 GB, free: 25.65 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/2.518, allocations: 9.406 kB / 0.6692 GB, free: 25.65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09325/2.611, allocations: 12.81 MB / 0.6817 GB, free: 24.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04867/2.66, allocations: 13.33 MB / 0.6948 GB, free: 23.37 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001407/2.661, allocations: 0.957 MB / 0.6957 GB, free: 23.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007913/2.669, allocations: 1.269 MB / 0.6969 GB, free: 23.33 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1038/2.773, allocations: 30.26 MB / 0.7265 GB, free: 17.03 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001129/2.774, allocations: 145 kB / 0.7266 GB, free: 17.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006946/2.781, allocations: 0.585 MB / 0.7272 GB, free: 16.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006479/2.788, allocations: 2.862 MB / 0.73 GB, free: 16.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08065/2.869, allocations: 24.66 MB / 0.7541 GB, free: 172 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6891/3.558, allocations: 127.8 MB / 0.8789 GB, free: 27.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.067/3.625, allocations: 14.08 MB / 0.8927 GB, free: 26.43 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05369/3.679, allocations: 19.83 MB / 0.912 GB, free: 23.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001016/3.679, allocations: 100 kB / 0.9121 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=562): time 1.069e-05/3.679, allocations: 0 / 0.9121 GB, free: 23.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=646): time 0.6879/4.367, allocations: 69.46 MB / 0.98 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001912/4.367, allocations: 377.3 kB / 0.9803 GB, free: 101.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03798/4.405, allocations: 12.03 MB / 0.9921 GB, free: 101.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001955/4.407, allocations: 125.1 kB / 0.9922 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.008218/4.415, allocations: 8 MB / 1 GB, free: 98.5 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.004787/4.42, allocations: 2.374 MB / 1.002 GB, free: 97.1 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003699/4.424, allocations: 312.5 kB / 1.003 GB, free: 97.1 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00227/4.426, allocations: 0.9733 MB / 1.004 GB, free: 96.75 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01962/4.446, allocations: 6.772 MB / 1.01 GB, free: 96.72 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02585/4.472, allocations: 15.26 MB / 1.025 GB, free: 86.02 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02438/4.496, allocations: 9.922 MB / 1.035 GB, free: 85.94 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004255/4.497, allocations: 83.59 kB / 1.035 GB, free: 85.94 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2017) (initialization): time 0.07084/4.567, allocations: 24.26 MB / 1.059 GB, free: 80.09 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000274/4.568, allocations: 131 kB / 1.059 GB, free: 80.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005441/4.568, allocations: 292.3 kB / 1.059 GB, free: 80.09 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01395/4.582, allocations: 3.245 MB / 1.062 GB, free: 79.51 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0255/4.608, allocations: 3.761 MB / 1.066 GB, free: 79.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04472/4.653, allocations: 23.24 MB / 1.088 GB, free: 66.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02834/4.681, allocations: 0.9228 MB / 1.089 GB, free: 66.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005243/4.686, allocations: 0.8881 MB / 1.09 GB, free: 66.34 MB / 0.4948 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.02338/4.71, allocations: 5.733 MB / 1.096 GB, free: 63.71 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004555/4.714, allocations: 1.077 MB / 1.097 GB, free: 62.64 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05242/4.767, allocations: 14.66 MB / 1.111 GB, free: 50.76 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001099/4.767, allocations: 68.5 kB / 1.111 GB, free: 50.7 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-05/4.767, allocations: 16 kB / 1.111 GB, free: 50.68 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001781/4.767, allocations: 32.92 kB / 1.111 GB, free: 50.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1069/4.874, allocations: 32.43 MB / 1.143 GB, free: 24.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001044/4.874, allocations: 12 kB / 1.143 GB, free: 24.52 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01287/4.887, allocations: 1.279 MB / 1.144 GB, free: 23.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01325/4.9, allocations: 2.771 MB / 1.147 GB, free: 21.59 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002174/4.903, allocations: 127.5 kB / 1.147 GB, free: 21.48 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4607/5.363, allocations: 21.74 MB / 1.168 GB, free: 81.25 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.886e-05/5.364, allocations: 20.86 kB / 1.168 GB, free: 81.25 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05978/5.423, allocations: 22.68 MB / 1.19 GB, free: 79.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009174/5.433, allocations: 2.187 MB / 1.193 GB, free: 79.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00528/5.438, allocations: 116.2 kB / 1.193 GB, free: 79.53 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01179/5.45, allocations: 439.2 kB / 1.193 GB, free: 79.53 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002546/5.452, allocations: 409.5 kB / 1.194 GB, free: 79.52 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007694/5.453, allocations: 173.5 kB / 1.194 GB, free: 79.52 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.02114/5.474, allocations: 7.765 MB / 1.201 GB, free: 79.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6.61e-07/5.474, allocations: 2.156 kB / 1.201 GB, free: 79.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02138/5.496, allocations: 3.107 MB / 1.204 GB, free: 79.2 MB / 0.4948 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.002484/5.498, allocations: 305.2 kB / 1.205 GB, free: 79.11 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03942/5.538, allocations: 16.82 MB / 1.221 GB, free: 76.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.752e-05/5.538, allocations: 0 / 1.221 GB, free: 76.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01909/5.557, allocations: 7.111 MB / 1.228 GB, free: 73.92 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01211/5.569, allocations: 1.343 MB / 1.229 GB, free: 73.35 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0869/5.656, allocations: 36.61 MB / 1.265 GB, free: 54.63 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02303/5.679, allocations: 8.884 MB / 1.274 GB, free: 48.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006939/5.686, allocations: 0.8378 MB / 1.275 GB, free: 47.48 MB / 0.4948 GB Notification: Performance of SimCode: time 1.412e-06/5.686, allocations: 3 kB / 1.275 GB, free: 47.48 MB / 0.4948 GB Notification: Performance of Templates: time 1.708/7.394, allocations: 372.7 MB / 1.639 GB, free: 87.15 MB / 0.5417 GB