Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.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) 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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.573/1.573, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.795e-05/2.808e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.209, allocations: 38.77 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1317/0.3408, allocations: 87.28 MB / 354.9 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003125/0.3412, allocations: 87.94 kB / 355 MB, free: 1.938 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5202/0.8614, allocations: 97.01 MB / 452 MB, free: 10.59 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.151e-06/0.8615, allocations: 0 / 452 MB, free: 10.59 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002952/0.8618, allocations: 104 kB / 452.1 MB, free: 10.49 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.02291/0.8847, allocations: 5.487 MB / 457.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.8848, allocations: 12.03 kB / 457.6 MB, free: 4.926 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01361/0.8984, allocations: 2.313 MB / 459.9 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01616/0.9146, allocations: 4.921 MB / 464.8 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005733/0.9152, allocations: 390.3 kB / 465.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002478/0.9177, allocations: 0.5153 MB / 465.7 MB, free: 12.71 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03597/0.9537, allocations: 12.9 MB / 478.6 MB, free: 14.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003239/0.9541, allocations: 67.36 kB / 478.7 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002183/0.9563, allocations: 247.9 kB / 478.9 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0027/0.9591, allocations: 1.2 MB / 480.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03059/0.9897, allocations: 11.03 MB / 491.1 MB, free: 2.133 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2865/1.276, allocations: 57.06 MB / 0.5353 GB, free: 23.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01758/1.294, allocations: 5.137 MB / 0.5404 GB, free: 22.56 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004977/1.299, allocations: 3.166 MB / 0.5434 GB, free: 22.17 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001239/1.3, allocations: 0.6824 MB / 0.5441 GB, free: 21.58 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.09e-05/1.3, allocations: 65.56 kB / 0.5442 GB, free: 21.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=221): time 8.011e-06/1.3, allocations: 0 / 0.5442 GB, free: 21.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=252): time 0.07355/1.374, allocations: 21.5 MB / 0.5652 GB, free: 14.13 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.817e-05/1.374, allocations: 154.1 kB / 0.5653 GB, free: 13.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008797/1.383, allocations: 4.055 MB / 0.5693 GB, free: 12.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005777/1.383, allocations: 64.98 kB / 0.5693 GB, free: 12.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002493/1.386, allocations: 3.475 MB / 0.5727 GB, free: 9.949 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001271/1.387, allocations: 0.9554 MB / 0.5737 GB, free: 9.254 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007934/1.388, allocations: 134.7 kB / 0.5738 GB, free: 9.148 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005272/1.389, allocations: 0.6038 MB / 0.5744 GB, free: 8.711 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006017/1.395, allocations: 2.969 MB / 0.5773 GB, free: 7.703 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008338/1.403, allocations: 7.002 MB / 0.5841 GB, free: 368 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02467/1.428, allocations: 4.997 MB / 0.589 GB, free: 14.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001386/1.428, allocations: 40 kB / 0.589 GB, free: 14 MB / 362.7 MB Notification: Performance of matching and sorting (n=909) (initialization): time 0.03019/1.458, allocations: 10.68 MB / 0.5995 GB, free: 5.184 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002128/1.458, allocations: 68 kB / 0.5995 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003416/1.459, allocations: 144.2 kB / 0.5997 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006179/1.465, allocations: 1.143 MB / 0.6008 GB, free: 4.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008712/1.474, allocations: 1.732 MB / 0.6025 GB, free: 2.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02024/1.494, allocations: 6.102 MB / 0.6084 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.012/1.506, allocations: 426.2 kB / 0.6088 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001648/1.508, allocations: 437.3 kB / 0.6093 GB, free: 13.14 MB / 378.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 () * 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.002452/1.51, allocations: 0.6289 MB / 0.6099 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/1.511, allocations: 423.1 kB / 0.6103 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01403/1.525, allocations: 5.497 MB / 0.6156 GB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.316e-05/1.526, allocations: 28 kB / 0.6157 GB, free: 7.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.845e-05/1.526, allocations: 4 kB / 0.6157 GB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.236e-05/1.526, allocations: 9.516 kB / 0.6157 GB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3545/1.88, allocations: 12.1 MB / 0.6275 GB, free: 84.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.128e-05/1.88, allocations: 3.969 kB / 0.6275 GB, free: 84.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003508/1.884, allocations: 0.5054 MB / 0.628 GB, free: 84.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0033/1.887, allocations: 0.9371 MB / 0.6289 GB, free: 84.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005696/1.888, allocations: 53.77 kB / 0.629 GB, free: 84.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008676/1.896, allocations: 5.636 MB / 0.6345 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.874e-06/1.897, allocations: 3.625 kB / 0.6345 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01707/1.914, allocations: 9.694 MB / 0.6439 GB, free: 81.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002721/1.916, allocations: 0.9071 MB / 0.6448 GB, free: 81.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001154/1.918, allocations: 41.81 kB / 0.6449 GB, free: 81.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003155/1.921, allocations: 178.5 kB / 0.645 GB, free: 81.63 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006562/1.921, allocations: 158.1 kB / 0.6452 GB, free: 81.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002932/1.922, allocations: 70.2 kB / 0.6453 GB, free: 81.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005966/1.928, allocations: 2.834 MB / 0.648 GB, free: 81.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.524e-06/1.928, allocations: 0 / 0.648 GB, free: 81.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007853/1.936, allocations: 1.266 MB / 0.6493 GB, free: 81.42 MB / 378.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 () * 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.0007604/1.936, allocations: 192.8 kB / 0.6494 GB, free: 81.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01338/1.95, allocations: 7.159 MB / 0.6564 GB, free: 81.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.339e-06/1.95, allocations: 3.281 kB / 0.6564 GB, free: 81.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005191/1.955, allocations: 2.683 MB / 0.6591 GB, free: 80.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003432/1.959, allocations: 456.8 kB / 0.6595 GB, free: 80.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03587/1.994, allocations: 10.66 MB / 0.6699 GB, free: 76.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01215/2.007, allocations: 3.904 MB / 0.6737 GB, free: 75.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003764/2.011, allocations: 365.6 kB / 0.6741 GB, free: 75.13 MB / 378.7 MB Notification: Performance of SimCode: time 4.213e-06/2.011, allocations: 0 / 0.6741 GB, free: 75.13 MB / 378.7 MB Notification: Performance of Templates: time 0.3604/2.371, allocations: 91.27 MB / 0.7632 GB, free: 84.59 MB / 378.7 MB