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.ActuatedDrive.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.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.786/1.786, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008789/0.0008792, allocations: 11.98 kB / 263.9 MB, free: 13.58 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08798/0.08891, allocations: 44.51 MB / 308.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.405/0.494, allocations: 92.38 MB / 400.8 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/0.4943, allocations: 88.88 kB / 400.9 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3119/0.8062, allocations: 83.74 MB / 484.7 MB, free: 5.188 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.77e-06/0.8062, allocations: 192 / 484.7 MB, free: 5.188 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002549/0.8065, allocations: 79.94 kB / 484.7 MB, free: 5.109 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1525 * Number of variables: 1525 Notification: Performance of Generate backend data structure: time 0.01996/0.8265, allocations: 4.726 MB / 489.5 MB, free: 320 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.8265, allocations: 8.031 kB / 489.5 MB, free: 312 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01336/0.8399, allocations: 2.213 MB / 491.7 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01518/0.8551, allocations: 4.477 MB / 496.2 MB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004961/0.8557, allocations: 316.4 kB / 496.5 MB, free: 9.227 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002037/0.8577, allocations: 435.8 kB / 496.9 MB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02967/0.8874, allocations: 10.79 MB / 0.4958 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002496/0.8877, allocations: 55.47 kB / 0.4959 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001662/0.8894, allocations: 207.9 kB / 0.4961 GB, free: 12.69 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002278/0.8917, allocations: 0.9984 MB / 0.497 GB, free: 11.68 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02492/0.9167, allocations: 9.011 MB / 0.5058 GB, free: 2.648 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.393/1.31, allocations: 48.87 MB / 0.5535 GB, free: 55.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01413/1.324, allocations: 3.526 MB / 0.557 GB, free: 54.95 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009492/1.333, allocations: 4.368 MB / 0.5613 GB, free: 53.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.973e-05/1.334, allocations: 54.39 kB / 0.5613 GB, free: 53.59 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 5.51e-06/1.334, allocations: 2.812 kB / 0.5613 GB, free: 53.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.04331/1.377, allocations: 12.23 MB / 0.5733 GB, free: 50.56 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.864e-05/1.377, allocations: 143 kB / 0.5734 GB, free: 50.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01236/1.389, allocations: 3.706 MB / 0.577 GB, free: 50.04 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000334/1.39, allocations: 45.11 kB / 0.5771 GB, free: 50.01 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002286/1.392, allocations: 3.107 MB / 0.5801 GB, free: 48.29 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007575/1.393, allocations: 0.5844 MB / 0.5807 GB, free: 47.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005202/1.393, allocations: 119.1 kB / 0.5808 GB, free: 47.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003714/1.394, allocations: 0.5529 MB / 0.5813 GB, free: 47.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004168/1.398, allocations: 1.978 MB / 0.5832 GB, free: 47.64 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005995/1.404, allocations: 5.776 MB / 0.5889 GB, free: 42.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006233/1.41, allocations: 3.301 MB / 0.5921 GB, free: 42.67 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001111/1.41, allocations: 38.41 kB / 0.5921 GB, free: 42.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01883/1.429, allocations: 8.091 MB / 0.6 GB, free: 40.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001077/1.429, allocations: 61.28 kB / 0.6001 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001632/1.43, allocations: 135.2 kB / 0.6002 GB, free: 40.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003368/1.433, allocations: 0.9203 MB / 0.6011 GB, free: 40.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00599/1.439, allocations: 1.379 MB / 0.6025 GB, free: 40.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007933/1.447, allocations: 4.891 MB / 0.6073 GB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005894/1.453, allocations: 322.8 kB / 0.6076 GB, free: 37.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001069/1.454, allocations: 376.2 kB / 0.6079 GB, free: 37.79 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 33 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[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 (729): * Single equations (assignments): 725 * 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.004748/1.459, allocations: 2.097 MB / 0.61 GB, free: 36.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007752/1.46, allocations: 342.7 kB / 0.6103 GB, free: 36.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007537/1.467, allocations: 2.873 MB / 0.6131 GB, free: 35.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-05/1.467, allocations: 17.64 kB / 0.6131 GB, free: 35.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/1.467, allocations: 3.875 kB / 0.6131 GB, free: 35.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.061e-05/1.467, allocations: 11.16 kB / 0.6131 GB, free: 35.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01855/1.486, allocations: 7.023 MB / 0.62 GB, free: 33.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.091e-05/1.486, allocations: 4 kB / 0.62 GB, free: 33.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001798/1.488, allocations: 244.7 kB / 0.6202 GB, free: 33.09 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002919/1.491, allocations: 0.6991 MB / 0.6209 GB, free: 32.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003002/1.491, allocations: 29.11 kB / 0.6209 GB, free: 32.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006933/1.498, allocations: 4.454 MB / 0.6253 GB, free: 30.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.054e-06/1.498, allocations: 0 / 0.6253 GB, free: 30.44 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/1.508, allocations: 5.192 MB / 0.6304 GB, free: 27.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001864/1.51, allocations: 0.6108 MB / 0.631 GB, free: 27.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000859/1.511, allocations: 24 kB / 0.631 GB, free: 27.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002135/1.513, allocations: 89.66 kB / 0.6311 GB, free: 27.23 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000401/1.514, allocations: 79.28 kB / 0.6311 GB, free: 27.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/1.514, allocations: 39.42 kB / 0.6312 GB, free: 27.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005844/1.52, allocations: 2.59 MB / 0.6337 GB, free: 25 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.893e-06/1.52, allocations: 0 / 0.6337 GB, free: 25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007027/1.527, allocations: 0.9565 MB / 0.6346 GB, free: 24.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.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 (114): * Single equations (assignments): 110 * 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 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005845/1.527, allocations: 167.3 kB / 0.6348 GB, free: 23.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009059/1.536, allocations: 4.756 MB / 0.6394 GB, free: 19.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.854e-06/1.537, allocations: 0 / 0.6394 GB, free: 19.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002558/1.539, allocations: 1.369 MB / 0.6408 GB, free: 18.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002865/1.542, allocations: 388.9 kB / 0.6412 GB, free: 18.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02189/1.564, allocations: 10.86 MB / 0.6518 GB, free: 8.293 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006435/1.57, allocations: 3.313 MB / 0.655 GB, free: 5.773 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001204/1.572, allocations: 285.7 kB / 0.6553 GB, free: 5.504 MB / 410.7 MB Notification: Performance of SimCode: time 1.717e-06/1.572, allocations: 0 / 0.6553 GB, free: 5.504 MB / 410.7 MB Notification: Performance of Templates: time 0.3592/1.931, allocations: 71.68 MB / 0.7253 GB, free: 84.25 MB / 426.7 MB