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.163/2.163, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004335/0.0004336, allocations: 12 kB / 314.4 MB, free: 9.473 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2968, allocations: 54.86 MB / 369.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1573/0.4542, allocations: 104 MB / 473.2 MB, free: 4.641 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.4544, allocations: 79.95 kB / 473.3 MB, free: 4.562 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.658/2.112, allocations: 223.4 MB / 0.6804 GB, free: 41.36 MB / 474.8 MB Notification: Performance of FrontEnd: time 3.536e-06/2.112, allocations: 0 / 0.6804 GB, free: 41.36 MB / 474.8 MB Notification: Performance of Transformations before backend: time 0.0006915/2.113, allocations: 237.5 kB / 0.6806 GB, free: 41.36 MB / 474.8 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.03987/2.153, allocations: 12.27 MB / 0.6926 GB, free: 39.4 MB / 474.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/2.153, allocations: 11.19 kB / 0.6926 GB, free: 39.4 MB / 474.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07286/2.226, allocations: 12.62 MB / 0.705 GB, free: 38.6 MB / 474.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03462/2.261, allocations: 12.61 MB / 0.7173 GB, free: 37.36 MB / 474.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001034/2.262, allocations: 0.9014 MB / 0.7181 GB, free: 37.33 MB / 474.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004691/2.266, allocations: 1.202 MB / 0.7193 GB, free: 37.32 MB / 474.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.072/2.338, allocations: 28.37 MB / 0.747 GB, free: 31.84 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006584/2.339, allocations: 142.2 kB / 0.7472 GB, free: 31.82 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004177/2.343, allocations: 0.5548 MB / 0.7477 GB, free: 31.82 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004843/2.348, allocations: 2.68 MB / 0.7503 GB, free: 31.79 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06174/2.41, allocations: 23.57 MB / 0.7733 GB, free: 29.82 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5637/2.974, allocations: 116.9 MB / 0.8875 GB, free: 40.93 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04667/3.02, allocations: 13.75 MB / 0.901 GB, free: 40.2 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002924/3.023, allocations: 2.348 MB / 0.9033 GB, free: 38.22 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001041/3.023, allocations: 93.69 kB / 0.9033 GB, free: 38.18 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=559): time 1.243e-05/3.024, allocations: 0 / 0.9033 GB, free: 38.18 MB / 0.5262 GB Notification: Performance of matching and sorting (n=643): time 0.213/3.236, allocations: 62.11 MB / 0.964 GB, free: 28.71 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/3.237, allocations: 330.8 kB / 0.9643 GB, free: 28.39 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02049/3.257, allocations: 9.067 MB / 0.9732 GB, free: 27.71 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.00144/3.259, allocations: 121.5 kB / 0.9733 GB, free: 27.68 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.005638/3.264, allocations: 7.306 MB / 0.9804 GB, free: 23.63 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.003187/3.268, allocations: 2.337 MB / 0.9827 GB, free: 22.24 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001972/3.27, allocations: 291.7 kB / 0.983 GB, free: 22.24 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.001257/3.271, allocations: 0.9149 MB / 0.9839 GB, free: 21.89 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0145/3.285, allocations: 6.532 MB / 0.9902 GB, free: 21.86 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01825/3.304, allocations: 14.09 MB / 1.004 GB, free: 9.074 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01802/3.322, allocations: 9.41 MB / 1.013 GB, free: 1.188 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002242/3.322, allocations: 76 kB / 1.013 GB, free: 1.113 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.06272/3.385, allocations: 23.19 MB / 1.036 GB, free: 14.81 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002581/3.385, allocations: 120 kB / 1.036 GB, free: 14.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004931/3.385, allocations: 263.8 kB / 1.036 GB, free: 14.44 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01146/3.397, allocations: 3.269 MB / 1.039 GB, free: 12.04 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01683/3.414, allocations: 3.499 MB / 1.043 GB, free: 9.117 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04318/3.457, allocations: 23.23 MB / 1.066 GB, free: 4.312 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01529/3.472, allocations: 0.8611 MB / 1.066 GB, free: 3.609 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003431/3.476, allocations: 0.8132 MB / 1.067 GB, free: 2.832 MB / 0.573 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 () * Number of clocked 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.02051/3.496, allocations: 5.594 MB / 1.073 GB, free: 14.82 MB / 0.5887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005542/3.502, allocations: 0.941 MB / 1.074 GB, free: 13.86 MB / 0.5887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04189/3.544, allocations: 14.61 MB / 1.088 GB, free: 1.996 MB / 0.5887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001043/3.544, allocations: 64 kB / 1.088 GB, free: 1.934 MB / 0.5887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.029e-05/3.544, allocations: 16 kB / 1.088 GB, free: 1.918 MB / 0.5887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001278/3.544, allocations: 28.45 kB / 1.088 GB, free: 1.918 MB / 0.5887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4628/4.007, allocations: 31.28 MB / 1.119 GB, free: 158.2 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.824e-05/4.007, allocations: 7.844 kB / 1.119 GB, free: 158.2 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007764/4.015, allocations: 1.216 MB / 1.12 GB, free: 158.2 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009491/4.025, allocations: 2.832 MB / 1.122 GB, free: 158.2 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001573/4.026, allocations: 130 kB / 1.123 GB, free: 158.2 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03606/4.062, allocations: 21.71 MB / 1.144 GB, free: 152.9 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.145e-05/4.062, allocations: 14.05 kB / 1.144 GB, free: 152.9 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04812/4.11, allocations: 24 MB / 1.167 GB, free: 149.9 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006903/4.117, allocations: 2.042 MB / 1.169 GB, free: 149.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003505/4.121, allocations: 111.1 kB / 1.169 GB, free: 149.8 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008207/4.129, allocations: 489.2 kB / 1.17 GB, free: 149.8 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002014/4.131, allocations: 392.4 kB / 1.17 GB, free: 149.8 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001151/4.132, allocations: 168.3 kB / 1.17 GB, free: 149.8 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 0.01608/4.149, allocations: 6.508 MB / 1.177 GB, free: 149.5 MB / 0.6043 GB Notification: Performance of sort global known variables: time 1.192e-06/4.149, allocations: 0 / 1.177 GB, free: 149.5 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.01757/4.166, allocations: 2.939 MB / 1.18 GB, free: 149.5 MB / 0.6043 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 () * Number of clocked 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.001832/4.168, allocations: 298.9 kB / 1.18 GB, free: 149.4 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.03223/4.2, allocations: 16.28 MB / 1.196 GB, free: 144.7 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/4.2, allocations: 3.25 kB / 1.196 GB, free: 144.7 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 0.01621/4.217, allocations: 7.165 MB / 1.203 GB, free: 142 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008407/4.225, allocations: 1.183 MB / 1.204 GB, free: 141.5 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06938/4.294, allocations: 34.27 MB / 1.237 GB, free: 122.7 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0187/4.313, allocations: 8.301 MB / 1.246 GB, free: 116.7 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005104/4.318, allocations: 0.7724 MB / 1.246 GB, free: 116 MB / 0.6043 GB Notification: Performance of SimCode: time 2.043e-06/4.318, allocations: 3.609 kB / 1.246 GB, free: 116 MB / 0.6043 GB Notification: Performance of Templates: time 1.174/5.493, allocations: 346.9 MB / 1.585 GB, free: 148.7 MB / 0.6043 GB