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.FrameForcesAndTorques2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,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.FrameForcesAndTorques2") Notification: Performance of loadModel(ModelicaTest): time 1.867/1.867, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004985/0.0004984, allocations: 12 kB / 282.6 MB, free: 9.578 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3581/0.3586, allocations: 48.69 MB / 331.3 MB, free: 6.477 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1423/0.5009, allocations: 94.57 MB / 425.8 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.5012, allocations: 79.95 kB / 425.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6897/1.191, allocations: 132.7 MB / 0.5455 GB, free: 50.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.766e-06/1.191, allocations: 0 / 0.5455 GB, free: 50.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003202/1.191, allocations: 128 kB / 0.5456 GB, free: 50.74 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: 2406 * Number of variables: 2406 Notification: Performance of Generate backend data structure: time 0.02109/1.212, allocations: 6.884 MB / 0.5523 GB, free: 43.77 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/1.212, allocations: 8.031 kB / 0.5523 GB, free: 43.77 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03543/1.248, allocations: 7.14 MB / 0.5593 GB, free: 36.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01984/1.268, allocations: 7.251 MB / 0.5664 GB, free: 29.29 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006186/1.268, allocations: 0.5014 MB / 0.5669 GB, free: 28.79 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002862/1.271, allocations: 0.6638 MB / 0.5675 GB, free: 28.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04014/1.311, allocations: 16.73 MB / 0.5839 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003739/1.312, allocations: 83.19 kB / 0.5839 GB, free: 9.965 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002577/1.314, allocations: 323.8 kB / 0.5843 GB, free: 9.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002528/1.317, allocations: 1.562 MB / 0.5858 GB, free: 8.086 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03605/1.353, allocations: 13.97 MB / 0.5994 GB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3609/1.714, allocations: 70.09 MB / 0.6679 GB, free: 37.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02488/1.739, allocations: 7.929 MB / 0.6756 GB, free: 36.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002563/1.739, allocations: 59.48 kB / 0.6757 GB, free: 36.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.752e-05/1.739, allocations: 69.2 kB / 0.6757 GB, free: 36.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=290): time 8.109e-06/1.739, allocations: 3.562 kB / 0.6757 GB, free: 36.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=332): time 0.1098/1.849, allocations: 32.72 MB / 0.7077 GB, free: 31.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.131e-05/1.849, allocations: 212.8 kB / 0.7079 GB, free: 31.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01214/1.861, allocations: 5.631 MB / 0.7134 GB, free: 30.34 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007891/1.862, allocations: 78.73 kB / 0.7135 GB, free: 30.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003253/1.866, allocations: 4.372 MB / 0.7177 GB, free: 26.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001612/1.867, allocations: 1.236 MB / 0.7189 GB, free: 26 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009046/1.868, allocations: 172.2 kB / 0.7191 GB, free: 25.87 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005865/1.869, allocations: 0.6743 MB / 0.7198 GB, free: 25.39 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008022/1.877, allocations: 3.792 MB / 0.7235 GB, free: 24.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01083/1.888, allocations: 8.599 MB / 0.7319 GB, free: 16.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01059/1.898, allocations: 5.59 MB / 0.7373 GB, free: 14.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001446/1.898, allocations: 51.03 kB / 0.7374 GB, free: 14.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=1119) (initialization): time 0.03039/1.929, allocations: 13.5 MB / 0.7506 GB, free: 4.371 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000134/1.929, allocations: 80.94 kB / 0.7506 GB, free: 4.293 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002062/1.929, allocations: 168 kB / 0.7508 GB, free: 4.129 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005189/1.934, allocations: 1.688 MB / 0.7524 GB, free: 2.875 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008997/1.943, allocations: 2.087 MB / 0.7545 GB, free: 1.117 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02107/1.965, allocations: 11.7 MB / 0.7659 GB, free: 6.645 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009296/1.974, allocations: 0.5256 MB / 0.7664 GB, free: 6.215 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002117/1.976, allocations: 0.4978 MB / 0.7669 GB, free: 5.734 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 770 * Number of states: 0 () * Number of discrete variables: 51 (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],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[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 (1047): * Single equations (assignments): 1042 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009175/1.985, allocations: 3.148 MB / 0.77 GB, free: 2.965 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001695/1.987, allocations: 0.5593 MB / 0.7705 GB, free: 2.398 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02438/2.011, allocations: 7.724 MB / 0.7781 GB, free: 12.79 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-05/2.012, allocations: 39.89 kB / 0.7781 GB, free: 12.76 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.178e-05/2.012, allocations: 12 kB / 0.7781 GB, free: 12.75 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.711e-05/2.012, allocations: 18.95 kB / 0.7781 GB, free: 12.74 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3178/2.329, allocations: 16.34 MB / 0.7941 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-05/2.33, allocations: 3.75 kB / 0.7941 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004609/2.334, allocations: 0.6587 MB / 0.7947 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005506/2.34, allocations: 1.415 MB / 0.7961 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008897/2.341, allocations: 62.42 kB / 0.7962 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01969/2.36, allocations: 10.92 MB / 0.8069 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.877e-06/2.36, allocations: 3.844 kB / 0.8069 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02628/2.387, allocations: 12.84 MB / 0.8194 GB, free: 99.86 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00414/2.391, allocations: 1.21 MB / 0.8206 GB, free: 99.77 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002145/2.393, allocations: 65.53 kB / 0.8206 GB, free: 99.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004992/2.398, allocations: 271.7 kB / 0.8209 GB, free: 99.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001109/2.399, allocations: 201.4 kB / 0.8211 GB, free: 99.76 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000576/2.4, allocations: 97.72 kB / 0.8212 GB, free: 99.76 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009529/2.409, allocations: 3.997 MB / 0.8251 GB, free: 99.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.125e-06/2.409, allocations: 0 / 0.8251 GB, free: 99.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01065/2.42, allocations: 1.668 MB / 0.8267 GB, free: 99.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 8 (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 (278): * Single equations (assignments): 273 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(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.001085/2.421, allocations: 215.6 kB / 0.8269 GB, free: 99.46 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01848/2.44, allocations: 9.324 MB / 0.836 GB, free: 97.32 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.332e-06/2.44, allocations: 0 / 0.836 GB, free: 97.32 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008672/2.448, allocations: 3.852 MB / 0.8398 GB, free: 95.86 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004987/2.453, allocations: 0.6742 MB / 0.8404 GB, free: 95.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0382/2.492, allocations: 19.22 MB / 0.8592 GB, free: 86.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01124/2.503, allocations: 4.991 MB / 0.8641 GB, free: 84.42 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003021/2.506, allocations: 464 kB / 0.8645 GB, free: 84.39 MB / 458.7 MB Notification: Performance of SimCode: time 1.793e-06/2.506, allocations: 0 / 0.8645 GB, free: 84.39 MB / 458.7 MB Notification: Performance of Templates: time 0.5334/3.039, allocations: 147.2 MB / 1.008 GB, free: 95.98 MB / 458.7 MB