Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.812/1.812, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003596/0.0003597, allocations: 8 kB / 263.9 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08206/0.08244, allocations: 44.51 MB / 308.4 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3671/0.4496, allocations: 93.08 MB / 401.5 MB, free: 18.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003639/0.45, allocations: 94.14 kB / 401.6 MB, free: 18.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4321/0.8821, allocations: 96.92 MB / 498.5 MB, free: 7.242 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.857e-06/0.8822, allocations: 0 / 498.5 MB, free: 7.242 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003073/0.8825, allocations: 103.9 kB / 498.6 MB, free: 7.141 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1848 * Number of variables: 1848 Notification: Performance of Generate backend data structure: time 0.02381/0.9063, allocations: 5.762 MB / 0.4926 GB, free: 1.305 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.9064, allocations: 15.97 kB / 0.4926 GB, free: 1.289 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01378/0.9202, allocations: 2.317 MB / 0.4949 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01646/0.9367, allocations: 4.929 MB / 0.4997 GB, free: 9.969 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005874/0.9373, allocations: 394.3 kB / 0.5001 GB, free: 9.582 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002467/0.9398, allocations: 0.5192 MB / 0.5006 GB, free: 9.062 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0365/0.9763, allocations: 13.01 MB / 0.5133 GB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003201/0.9767, allocations: 71.34 kB / 0.5133 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002151/0.9789, allocations: 247.9 kB / 0.5136 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002662/0.9816, allocations: 1.204 MB / 0.5147 GB, free: 9.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2684/1.25, allocations: 11.21 MB / 0.5257 GB, free: 77.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07732/1.327, allocations: 57.08 MB / 0.5814 GB, free: 45.78 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01994/1.347, allocations: 5.2 MB / 0.5865 GB, free: 45.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/1.349, allocations: 0.6822 MB / 0.5872 GB, free: 44.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/1.349, allocations: 57 kB / 0.5872 GB, free: 44.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=221): time 6.766e-06/1.349, allocations: 0 / 0.5872 GB, free: 44.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.08483/1.434, allocations: 25.65 MB / 0.6123 GB, free: 36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/1.434, allocations: 167.4 kB / 0.6124 GB, free: 35.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00837/1.442, allocations: 4.077 MB / 0.6164 GB, free: 34.44 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005884/1.443, allocations: 61.89 kB / 0.6165 GB, free: 34.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002527/1.445, allocations: 3.475 MB / 0.6199 GB, free: 31.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001281/1.447, allocations: 0.9498 MB / 0.6208 GB, free: 31.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000789/1.447, allocations: 145.2 kB / 0.6209 GB, free: 30.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004798/1.448, allocations: 0.6053 MB / 0.6215 GB, free: 30.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006349/1.454, allocations: 3.048 MB / 0.6245 GB, free: 29.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008812/1.463, allocations: 7.084 MB / 0.6314 GB, free: 23.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008771/1.472, allocations: 4.544 MB / 0.6359 GB, free: 21.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001023/1.472, allocations: 43.16 kB / 0.6359 GB, free: 21.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=909) (initialization): time 0.02464/1.497, allocations: 10.83 MB / 0.6465 GB, free: 14.84 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/1.497, allocations: 68 kB / 0.6466 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001694/1.497, allocations: 140 kB / 0.6467 GB, free: 14.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003504/1.501, allocations: 1.14 MB / 0.6478 GB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007701/1.508, allocations: 1.736 MB / 0.6495 GB, free: 12.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009168/1.518, allocations: 6.043 MB / 0.6554 GB, free: 7.027 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007098/1.525, allocations: 428.2 kB / 0.6558 GB, free: 6.672 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/1.526, allocations: 440.5 kB / 0.6562 GB, free: 6.266 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * Number of states: 0 () * Number of discrete variables: 39 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (870): * Single equations (assignments): 866 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00548/1.532, allocations: 2.432 MB / 0.6586 GB, free: 4.117 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009893/1.533, allocations: 418.5 kB / 0.659 GB, free: 3.707 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02036/1.553, allocations: 5.65 MB / 0.6645 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.006e-05/1.553, allocations: 29.41 kB / 0.6645 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.477e-05/1.553, allocations: 8 kB / 0.6645 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.681e-05/1.553, allocations: 12.8 kB / 0.6646 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05225/1.605, allocations: 12.21 MB / 0.6765 GB, free: 5.426 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.534e-05/1.606, allocations: 4 kB / 0.6765 GB, free: 5.422 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006189/1.612, allocations: 0.5023 MB / 0.677 GB, free: 5.027 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006042/1.618, allocations: 0.9375 MB / 0.6779 GB, free: 4.391 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008795/1.619, allocations: 53.02 kB / 0.6779 GB, free: 4.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2713/1.89, allocations: 5.755 MB / 0.6836 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.809e-06/1.89, allocations: 3.688 kB / 0.6836 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02011/1.91, allocations: 9.846 MB / 0.6932 GB, free: 87.92 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003/1.913, allocations: 0.9029 MB / 0.6941 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001461/1.915, allocations: 42.27 kB / 0.6941 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003624/1.918, allocations: 183 kB / 0.6943 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009305/1.919, allocations: 151 kB / 0.6944 GB, free: 87.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004195/1.92, allocations: 76.08 kB / 0.6945 GB, free: 87.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007484/1.927, allocations: 2.861 MB / 0.6973 GB, free: 87.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.054e-06/1.927, allocations: 3.469 kB / 0.6973 GB, free: 87.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008745/1.936, allocations: 1.268 MB / 0.6985 GB, free: 87.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (225): * Single equations (assignments): 221 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009141/1.937, allocations: 187.4 kB / 0.6987 GB, free: 87.55 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01463/1.952, allocations: 7.296 MB / 0.7058 GB, free: 87.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.001e-06/1.952, allocations: 0 / 0.7058 GB, free: 87.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005833/1.958, allocations: 2.75 MB / 0.7085 GB, free: 87.25 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003552/1.961, allocations: 445.8 kB / 0.7089 GB, free: 87.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02912/1.99, allocations: 14.6 MB / 0.7232 GB, free: 82.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008264/1.999, allocations: 3.905 MB / 0.727 GB, free: 81.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002233/2.001, allocations: 373.6 kB / 0.7274 GB, free: 81.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.773e-06/2.001, allocations: 0 / 0.7274 GB, free: 81.3 MB / 426.7 MB Notification: Performance of Templates: time 0.1316/2.133, allocations: 91.26 MB / 0.8165 GB, free: 22.27 MB / 426.7 MB