Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.657/1.657, allocations: 171.2 MB / 187.3 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003605, allocations: 11.98 kB / 233.8 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0821/0.08248, allocations: 38.75 MB / 272.5 MB, free: 12.22 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3841/0.4666, allocations: 86.64 MB / 359.2 MB, free: 3.555 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003095/0.467, allocations: 93.83 kB / 359.3 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5933/1.06, allocations: 84.23 MB / 443.5 MB, free: 72.79 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.06, allocations: 0 / 443.5 MB, free: 72.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003007/1.061, allocations: 86.08 kB / 443.6 MB, free: 72.79 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.02847/1.089, allocations: 4.716 MB / 448.3 MB, free: 70.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/1.089, allocations: 8.297 kB / 448.3 MB, free: 70.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0173/1.107, allocations: 2.216 MB / 450.5 MB, free: 70.65 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01679/1.123, allocations: 4.486 MB / 455 MB, free: 70.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003991/1.124, allocations: 321.1 kB / 455.3 MB, free: 70.07 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002695/1.127, allocations: 427.2 kB / 455.8 MB, free: 70.06 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0328/1.159, allocations: 10.82 MB / 466.6 MB, free: 67.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002634/1.16, allocations: 64.56 kB / 466.6 MB, free: 67.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00141/1.161, allocations: 209.3 kB / 466.8 MB, free: 67.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002374/1.164, allocations: 0.9892 MB / 467.8 MB, free: 67.21 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02785/1.191, allocations: 9.006 MB / 476.8 MB, free: 66.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07151/1.263, allocations: 48.88 MB / 0.5134 GB, free: 28.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01817/1.281, allocations: 3.518 MB / 0.5168 GB, free: 25.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0115/1.293, allocations: 4.368 MB / 0.5211 GB, free: 21.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/1.293, allocations: 47.56 kB / 0.5211 GB, free: 21.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 5.821e-06/1.293, allocations: 0 / 0.5211 GB, free: 21.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.04892/1.342, allocations: 12.44 MB / 0.5333 GB, free: 10.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/1.342, allocations: 141.5 kB / 0.5334 GB, free: 10.59 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009181/1.351, allocations: 4.163 MB / 0.5375 GB, free: 6.406 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003991/1.352, allocations: 41.7 kB / 0.5375 GB, free: 6.359 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002481/1.354, allocations: 3.106 MB / 0.5406 GB, free: 3.262 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009367/1.355, allocations: 0.5821 MB / 0.5411 GB, free: 2.684 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007385/1.356, allocations: 119.8 kB / 0.5412 GB, free: 2.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003994/1.356, allocations: 0.5548 MB / 0.5418 GB, free: 2.004 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005149/1.361, allocations: 1.983 MB / 0.5437 GB, free: 16 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009629/1.371, allocations: 5.789 MB / 0.5494 GB, free: 8.312 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008934/1.38, allocations: 3.308 MB / 0.5526 GB, free: 5.008 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000163/1.38, allocations: 40 kB / 0.5526 GB, free: 4.969 MB / 362.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.2841/1.664, allocations: 8.075 MB / 0.5605 GB, free: 75.14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001422/1.665, allocations: 63.97 kB / 0.5606 GB, free: 75.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000294/1.665, allocations: 135.2 kB / 0.5607 GB, free: 75.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00485/1.67, allocations: 0.9256 MB / 0.5616 GB, free: 75.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00901/1.679, allocations: 1.384 MB / 0.563 GB, free: 75.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/1.689, allocations: 4.883 MB / 0.5677 GB, free: 73.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006828/1.696, allocations: 332.5 kB / 0.5681 GB, free: 73.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001768/1.698, allocations: 377.9 kB / 0.5684 GB, free: 73.81 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.006441/1.704, allocations: 2.092 MB / 0.5705 GB, free: 73.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008927/1.705, allocations: 344.4 kB / 0.5708 GB, free: 73.69 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009058/1.714, allocations: 2.876 MB / 0.5736 GB, free: 73.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.028e-05/1.715, allocations: 15.06 kB / 0.5736 GB, free: 73.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/1.715, allocations: 7.219 kB / 0.5736 GB, free: 73.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.531e-05/1.715, allocations: 7.594 kB / 0.5736 GB, free: 73.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02104/1.736, allocations: 7.017 MB / 0.5805 GB, free: 73.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.126e-05/1.736, allocations: 0 / 0.5805 GB, free: 73.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002419/1.738, allocations: 242.6 kB / 0.5807 GB, free: 73.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003639/1.742, allocations: 0.699 MB / 0.5814 GB, free: 73.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003429/1.742, allocations: 28.81 kB / 0.5814 GB, free: 73.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008328/1.751, allocations: 4.462 MB / 0.5858 GB, free: 71.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.751, allocations: 3.25 kB / 0.5858 GB, free: 71.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/1.763, allocations: 5.109 MB / 0.5908 GB, free: 71.05 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002265/1.766, allocations: 0.6176 MB / 0.5914 GB, free: 70.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009751/1.767, allocations: 22.12 kB / 0.5914 GB, free: 70.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002234/1.769, allocations: 88.19 kB / 0.5915 GB, free: 70.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003516/1.769, allocations: 93.53 kB / 0.5916 GB, free: 70.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001606/1.769, allocations: 37.38 kB / 0.5916 GB, free: 70.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006167/1.776, allocations: 2.598 MB / 0.5941 GB, free: 69.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.62e-07/1.776, allocations: 3.172 kB / 0.5941 GB, free: 69.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006916/1.783, allocations: 0.9561 MB / 0.5951 GB, free: 69.75 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.0005553/1.783, allocations: 157.2 kB / 0.5952 GB, free: 69.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0112/1.794, allocations: 4.766 MB / 0.5999 GB, free: 68.35 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/1.794, allocations: 0 / 0.5999 GB, free: 68.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002984/1.797, allocations: 1.363 MB / 0.6012 GB, free: 67.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/1.801, allocations: 390.9 kB / 0.6016 GB, free: 67.64 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02492/1.826, allocations: 10.89 MB / 0.6122 GB, free: 62.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006414/1.832, allocations: 3.318 MB / 0.6155 GB, free: 60.93 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001495/1.834, allocations: 284.3 kB / 0.6157 GB, free: 60.92 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/1.834, allocations: 0 / 0.6157 GB, free: 60.92 MB / 362.7 MB Notification: Performance of Templates: time 0.1309/1.965, allocations: 71.67 MB / 0.6857 GB, free: 15.03 MB / 378.7 MB