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.ActuatedDrive.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.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.72/1.72, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000364/0.0003642, allocations: 12 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06982/0.07021, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3081/0.3784, allocations: 86.65 MB / 358.7 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.3787, allocations: 87.39 kB / 358.7 MB, free: 3.477 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5187/0.8974, allocations: 83.74 MB / 442.5 MB, free: 72.53 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.592e-06/0.8974, allocations: 0 / 442.5 MB, free: 72.53 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002648/0.8977, allocations: 83.64 kB / 442.6 MB, free: 72.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01934/0.9171, allocations: 4.724 MB / 447.3 MB, free: 70.66 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.9171, allocations: 9.828 kB / 447.3 MB, free: 70.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01273/0.9299, allocations: 2.214 MB / 449.5 MB, free: 70.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01398/0.9439, allocations: 4.476 MB / 454 MB, free: 69.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003616/0.9443, allocations: 322.2 kB / 454.3 MB, free: 69.8 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001928/0.9463, allocations: 427.2 kB / 454.7 MB, free: 69.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02649/0.9728, allocations: 10.78 MB / 465.5 MB, free: 66.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002222/0.973, allocations: 65.98 kB / 465.6 MB, free: 66.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001457/0.9745, allocations: 210.3 kB / 465.8 MB, free: 66.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001964/0.9765, allocations: 0.9907 MB / 466.8 MB, free: 66.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02193/0.9985, allocations: 9.007 MB / 475.8 MB, free: 65.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05881/1.057, allocations: 48.87 MB / 0.5124 GB, free: 28.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01321/1.071, allocations: 3.537 MB / 0.5158 GB, free: 25.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009031/1.08, allocations: 4.366 MB / 0.5201 GB, free: 21.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/1.08, allocations: 51.5 kB / 0.5201 GB, free: 21.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 6.137e-06/1.08, allocations: 0 / 0.5201 GB, free: 21.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.03733/1.117, allocations: 12.23 MB / 0.5321 GB, free: 11.08 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/1.117, allocations: 153.5 kB / 0.5322 GB, free: 10.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008205/1.125, allocations: 3.71 MB / 0.5358 GB, free: 7.391 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003152/1.126, allocations: 45.64 kB / 0.5359 GB, free: 7.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002292/1.128, allocations: 3.109 MB / 0.5389 GB, free: 4.238 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007684/1.129, allocations: 0.5821 MB / 0.5395 GB, free: 3.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005601/1.129, allocations: 116 kB / 0.5396 GB, free: 3.547 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003845/1.13, allocations: 0.5548 MB / 0.5401 GB, free: 2.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004359/1.134, allocations: 1.979 MB / 0.5421 GB, free: 0.9961 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008597/1.143, allocations: 5.771 MB / 0.5477 GB, free: 9.309 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007432/1.15, allocations: 3.306 MB / 0.5509 GB, free: 6.004 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001336/1.151, allocations: 40 kB / 0.551 GB, free: 5.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.234/1.385, allocations: 8.068 MB / 0.5588 GB, free: 74.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001514/1.385, allocations: 65.88 kB / 0.5589 GB, free: 74.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002654/1.385, allocations: 138.3 kB / 0.559 GB, free: 74.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003521/1.389, allocations: 0.9158 MB / 0.5599 GB, free: 74.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005965/1.395, allocations: 1.381 MB / 0.5613 GB, free: 74.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008383/1.403, allocations: 4.885 MB / 0.5661 GB, free: 73.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005996/1.409, allocations: 337.9 kB / 0.5664 GB, free: 73.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001209/1.41, allocations: 372.6 kB / 0.5667 GB, free: 73.27 MB / 362.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.004641/1.415, allocations: 2.093 MB / 0.5688 GB, free: 73.16 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007644/1.416, allocations: 347.4 kB / 0.5691 GB, free: 73.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006851/1.423, allocations: 2.878 MB / 0.5719 GB, free: 73.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.586e-05/1.423, allocations: 17.52 kB / 0.5719 GB, free: 73.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/1.423, allocations: 3.625 kB / 0.5719 GB, free: 73.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.843e-05/1.423, allocations: 7.562 kB / 0.5719 GB, free: 73.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01713/1.44, allocations: 7.009 MB / 0.5788 GB, free: 72.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.69e-05/1.44, allocations: 0 / 0.5788 GB, free: 72.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001681/1.442, allocations: 246.4 kB / 0.579 GB, free: 72.63 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002844/1.444, allocations: 0.6994 MB / 0.5797 GB, free: 72.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002742/1.445, allocations: 28.16 kB / 0.5797 GB, free: 72.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007039/1.452, allocations: 4.46 MB / 0.5841 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.449e-06/1.452, allocations: 0 / 0.5841 GB, free: 71.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01005/1.462, allocations: 5.194 MB / 0.5892 GB, free: 70.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001838/1.464, allocations: 0.6163 MB / 0.5898 GB, free: 70.38 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006542/1.465, allocations: 27.55 kB / 0.5898 GB, free: 70.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/1.466, allocations: 86.39 kB / 0.5899 GB, free: 70.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003325/1.467, allocations: 85.81 kB / 0.59 GB, free: 70.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001544/1.467, allocations: 47.81 kB / 0.59 GB, free: 70.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005912/1.473, allocations: 2.591 MB / 0.5925 GB, free: 69.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.421e-06/1.473, allocations: 0 / 0.5925 GB, free: 69.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006785/1.48, allocations: 0.9592 MB / 0.5935 GB, free: 69.32 MB / 362.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.0004877/1.48, allocations: 157.3 kB / 0.5936 GB, free: 69.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009784/1.49, allocations: 4.763 MB / 0.5983 GB, free: 67.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.725e-06/1.49, allocations: 1.875 kB / 0.5983 GB, free: 67.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00447/1.494, allocations: 1.366 MB / 0.5996 GB, free: 67.4 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004578/1.499, allocations: 405 kB / 0.6 GB, free: 67.22 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02727/1.526, allocations: 10.85 MB / 0.6106 GB, free: 61.79 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006854/1.533, allocations: 3.317 MB / 0.6138 GB, free: 60.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001283/1.535, allocations: 283.8 kB / 0.6141 GB, free: 60.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.744e-06/1.535, allocations: 0 / 0.6141 GB, free: 60.5 MB / 362.7 MB Notification: Performance of Templates: time 0.1281/1.663, allocations: 71.67 MB / 0.6841 GB, free: 15.89 MB / 378.7 MB