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.FrameTorques2.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.FrameTorques2,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.FrameTorques2") Notification: Performance of loadModel(ModelicaTest): time 1.977/1.977, allocations: 209.2 MB / 225.4 MB, free: 288 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004395/0.0004397, allocations: 12 kB / 283.1 MB, free: 9.645 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3434, allocations: 48.7 MB / 331.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1667/0.5101, allocations: 92.84 MB / 424.6 MB, free: 1.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.5104, allocations: 79.97 kB / 424.7 MB, free: 1.523 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.971/1.481, allocations: 171.3 MB / 0.582 GB, free: 13.05 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.346e-06/1.481, allocations: 0 / 0.582 GB, free: 13.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0006429/1.482, allocations: 172 kB / 0.5822 GB, free: 12.88 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: 2944 * Number of variables: 2944 Notification: Performance of Generate backend data structure: time 0.04272/1.525, allocations: 9.033 MB / 0.591 GB, free: 3.754 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/1.525, allocations: 8.031 kB / 0.591 GB, free: 3.746 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08959/1.615, allocations: 12.08 MB / 0.6028 GB, free: 7.637 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04078/1.655, allocations: 10.99 MB / 0.6135 GB, free: 12.56 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001017/1.656, allocations: 0.6299 MB / 0.6141 GB, free: 11.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004754/1.661, allocations: 0.855 MB / 0.615 GB, free: 11.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6682/2.329, allocations: 20.04 MB / 0.6346 GB, free: 55.09 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008506/2.33, allocations: 106.9 kB / 0.6347 GB, free: 55.09 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004361/2.335, allocations: 402.3 kB / 0.635 GB, free: 55.09 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004845/2.34, allocations: 1.812 MB / 0.6368 GB, free: 55.08 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05396/2.394, allocations: 16.28 MB / 0.6527 GB, free: 55.01 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1351/2.529, allocations: 82.07 MB / 0.7329 GB, free: 3.828 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03467/2.564, allocations: 8.141 MB / 0.7408 GB, free: 1.219 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001111/2.565, allocations: 0.6597 MB / 0.7414 GB, free: 0.6328 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.253e-05/2.565, allocations: 70.03 kB / 0.7415 GB, free: 0.5703 MB / 426.8 MB Notification: Performance of pre-optimization done (n=311): time 8.096e-06/2.565, allocations: 2.344 kB / 0.7415 GB, free: 0.5703 MB / 426.8 MB Notification: Performance of matching and sorting (n=335): time 0.1511/2.716, allocations: 31.93 MB / 0.7727 GB, free: 14.63 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001855/2.716, allocations: 296.8 kB / 0.773 GB, free: 14.29 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02142/2.738, allocations: 7.732 MB / 0.7805 GB, free: 7.887 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000893/2.739, allocations: 77.7 kB / 0.7806 GB, free: 7.805 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006326/2.745, allocations: 5.528 MB / 0.786 GB, free: 2.809 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00247/2.747, allocations: 1.267 MB / 0.7872 GB, free: 1.688 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001521/2.749, allocations: 194.2 kB / 0.7874 GB, free: 1.5 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0009464/2.75, allocations: 0.7212 MB / 0.7881 GB, free: 0.8828 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02456/2.775, allocations: 4.353 MB / 0.7924 GB, free: 0 / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3966/3.171, allocations: 9.234 MB / 0.8014 GB, free: 82.17 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01435/3.186, allocations: 5.559 MB / 0.8068 GB, free: 82.13 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003136/3.186, allocations: 57.66 kB / 0.8069 GB, free: 82.13 MB / 458.8 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.03814/3.224, allocations: 13.04 MB / 0.8196 GB, free: 81.46 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001834/3.224, allocations: 93.34 kB / 0.8197 GB, free: 81.46 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000333/3.225, allocations: 199.5 kB / 0.8199 GB, free: 81.46 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004215/3.229, allocations: 1.053 MB / 0.8209 GB, free: 81.43 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01447/3.244, allocations: 2.25 MB / 0.8231 GB, free: 81.23 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01888/3.262, allocations: 11.47 MB / 0.8343 GB, free: 75.8 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01187/3.274, allocations: 0.5255 MB / 0.8348 GB, free: 75.8 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002439/3.277, allocations: 0.5683 MB / 0.8354 GB, free: 75.8 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 912 * Number of states: 0 () * Number of discrete variables: 63 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[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],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],fixed2.color[3],fixed2.color[2],fixed2.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 (1179): * Single equations (assignments): 1172 * 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 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01173/3.289, allocations: 3.877 MB / 0.8392 GB, free: 75.48 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001997/3.291, allocations: 0.6787 MB / 0.8398 GB, free: 75.48 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01889/3.31, allocations: 6.042 MB / 0.8457 GB, free: 75.22 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.793e-05/3.31, allocations: 33.97 kB / 0.8458 GB, free: 75.22 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.29e-05/3.31, allocations: 15.42 kB / 0.8458 GB, free: 75.21 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-05/3.31, allocations: 17.62 kB / 0.8458 GB, free: 75.21 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04791/3.358, allocations: 15.1 MB / 0.8606 GB, free: 69.82 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.045e-05/3.358, allocations: 6.625 kB / 0.8606 GB, free: 69.82 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005875/3.364, allocations: 0.5508 MB / 0.8611 GB, free: 69.78 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0035/3.367, allocations: 0.7084 MB / 0.8618 GB, free: 69.6 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008558/3.368, allocations: 57.23 kB / 0.8618 GB, free: 69.56 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01628/3.385, allocations: 10.33 MB / 0.8719 GB, free: 62.16 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.044e-05/3.385, allocations: 10.53 kB / 0.8719 GB, free: 62.16 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02602/3.411, allocations: 9.887 MB / 0.8816 GB, free: 58.34 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004746/3.415, allocations: 1.19 MB / 0.8828 GB, free: 57.69 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002694/3.418, allocations: 51.81 kB / 0.8828 GB, free: 57.65 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006447/3.425, allocations: 200.3 kB / 0.883 GB, free: 57.61 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001203/3.426, allocations: 197.1 kB / 0.8832 GB, free: 57.57 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004292/3.426, allocations: 89.66 kB / 0.8833 GB, free: 57.55 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.0138/3.44, allocations: 4.92 MB / 0.8881 GB, free: 55.92 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.062e-06/3.44, allocations: 2.75 kB / 0.8881 GB, free: 55.92 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01376/3.454, allocations: 1.868 MB / 0.8899 GB, free: 54.14 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.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 (276): * Single equations (assignments): 269 * 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 {(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00136/3.455, allocations: 212 kB / 0.8901 GB, free: 53.95 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02169/3.477, allocations: 9.005 MB / 0.8989 GB, free: 46.06 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/3.477, allocations: 0 / 0.8989 GB, free: 46.06 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008244/3.485, allocations: 3.237 MB / 0.9021 GB, free: 43.16 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00822/3.494, allocations: 0.9395 MB / 0.903 GB, free: 42.39 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05329/3.547, allocations: 22.4 MB / 0.9249 GB, free: 21.95 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01548/3.563, allocations: 6.11 MB / 0.9308 GB, free: 17.5 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003526/3.566, allocations: 0.5206 MB / 0.9313 GB, free: 17 MB / 458.8 MB Notification: Performance of SimCode: time 1.653e-06/3.566, allocations: 0 / 0.9313 GB, free: 17 MB / 458.8 MB Notification: Performance of Templates: time 1.208/4.774, allocations: 244.5 MB / 1.17 GB, free: 115.1 MB / 0.4949 GB