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.921/1.921, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003545/0.0003546, allocations: 8 kB / 263.9 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07998/0.08036, allocations: 44.51 MB / 308.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.05657/0.137, allocations: 41.14 MB / 349.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02502/0.162, allocations: 9.826 MB / 359.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007631/0.1697, allocations: 199.6 kB / 359.5 MB, free: 13.72 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0064/0.1762, allocations: 2.053 MB / 361.6 MB, free: 11.66 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01955/0.1958, allocations: 5.93 MB / 367.5 MB, free: 5.715 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002738/0.1986, allocations: 0.507 MB / 368 MB, free: 5.207 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00463/0.2032, allocations: 2.136 MB / 370.2 MB, free: 3.066 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2283/0.4316, allocations: 4.288 MB / 374.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001861/0.4335, allocations: 0.995 MB / 375.4 MB, free: 10.19 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002306/0.4359, allocations: 1.385 MB / 376.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005734/0.4365, allocations: 141.1 kB / 377 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002015/0.4385, allocations: 0.8098 MB / 377.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001962/0.4405, allocations: 1.547 MB / 379.3 MB, free: 10.18 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.4416, allocations: 0.8356 MB / 380.2 MB, free: 10.15 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007286/0.4489, allocations: 5.536 MB / 385.7 MB, free: 9.773 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.4489, allocations: 0 / 385.7 MB, free: 9.773 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.483e-06/0.449, allocations: 0 / 385.7 MB, free: 9.773 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001921/0.4492, allocations: 1.375 kB / 385.7 MB, free: 9.773 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: 1525 * Number of variables: 1525 Notification: Performance of Generate backend data structure: time 0.01617/0.4653, allocations: 4.965 MB / 390.7 MB, free: 7.492 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.4654, allocations: 9.844 kB / 390.7 MB, free: 7.492 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009548/0.475, allocations: 2.232 MB / 392.9 MB, free: 6.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005577/0.4806, allocations: 2.494 MB / 395.4 MB, free: 5.652 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002311/0.4808, allocations: 234 kB / 395.6 MB, free: 5.645 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/0.4821, allocations: 317 kB / 395.9 MB, free: 5.641 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02175/0.5039, allocations: 10.35 MB / 406.3 MB, free: 2.133 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001516/0.5041, allocations: 45.3 kB / 406.3 MB, free: 2.125 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000693/0.5048, allocations: 156.5 kB / 406.5 MB, free: 2.125 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003419/0.5082, allocations: 1.867 MB / 408.3 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0223/0.5305, allocations: 8.906 MB / 417.2 MB, free: 12.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06408/0.5946, allocations: 39.39 MB / 456.6 MB, free: 11.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01361/0.6083, allocations: 3.58 MB / 460.2 MB, free: 8.109 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009277/0.6093, allocations: 368 kB / 460.6 MB, free: 7.715 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/0.6094, allocations: 63.55 kB / 460.6 MB, free: 7.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=148): time 6.251e-06/0.6094, allocations: 0 / 460.6 MB, free: 7.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=154): time 0.05182/0.6612, allocations: 13.66 MB / 474.3 MB, free: 11.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001149/0.6614, allocations: 149.1 kB / 474.4 MB, free: 11.47 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009135/0.6705, allocations: 4.251 MB / 478.7 MB, free: 7.195 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003603/0.6709, allocations: 47.78 kB / 478.7 MB, free: 7.145 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003366/0.6743, allocations: 3.088 MB / 481.8 MB, free: 4.074 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/0.6754, allocations: 0.6065 MB / 482.4 MB, free: 3.473 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000564/0.676, allocations: 116 kB / 482.5 MB, free: 3.359 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0005793/0.6766, allocations: 0.5681 MB / 483.1 MB, free: 2.781 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004922/0.6815, allocations: 2.014 MB / 485.1 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008867/0.6904, allocations: 5.814 MB / 490.9 MB, free: 9.105 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00742/0.6979, allocations: 3.344 MB / 494.3 MB, free: 5.891 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/0.698, allocations: 40 kB / 494.3 MB, free: 5.852 MB / 394.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.0217/0.7198, allocations: 8.17 MB / 0.4907 GB, free: 14.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001314/0.7199, allocations: 60 kB / 0.4908 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/0.7202, allocations: 136 kB / 0.4909 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003492/0.7237, allocations: 0.9341 MB / 0.4918 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005956/0.7297, allocations: 1.376 MB / 0.4932 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01001/0.7397, allocations: 4.968 MB / 0.498 GB, free: 6.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005733/0.7455, allocations: 335.6 kB / 0.4983 GB, free: 6.492 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001222/0.7467, allocations: 375.2 kB / 0.4987 GB, free: 6.129 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * 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 (733): * Single equations (assignments): 729 * 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.005343/0.7521, allocations: 2.084 MB / 0.5007 GB, free: 4.031 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008814/0.753, allocations: 359.4 kB / 0.5011 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008297/0.7613, allocations: 2.935 MB / 0.5039 GB, free: 0.7266 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.281e-05/0.7614, allocations: 20 kB / 0.5039 GB, free: 0.707 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.7614, allocations: 8 kB / 0.504 GB, free: 0.6992 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.168e-05/0.7615, allocations: 3.984 kB / 0.504 GB, free: 0.6953 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0204/0.7819, allocations: 7.5 MB / 0.5113 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.956e-05/0.782, allocations: 0 / 0.5113 GB, free: 9.152 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/0.7837, allocations: 251.7 kB / 0.5115 GB, free: 8.906 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003008/0.7867, allocations: 0.7069 MB / 0.5122 GB, free: 8.195 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003325/0.7871, allocations: 27.98 kB / 0.5122 GB, free: 8.168 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008784/0.7959, allocations: 4.523 MB / 0.5167 GB, free: 3.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.986e-06/0.7959, allocations: 4 kB / 0.5167 GB, free: 3.516 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2314/1.027, allocations: 5.32 MB / 0.5219 GB, free: 152.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001901/1.029, allocations: 0.6234 MB / 0.5225 GB, free: 152 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007484/1.03, allocations: 27.02 kB / 0.5225 GB, free: 152 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/1.032, allocations: 89.3 kB / 0.5226 GB, free: 152 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003621/1.032, allocations: 93.42 kB / 0.5227 GB, free: 152 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001787/1.033, allocations: 42 kB / 0.5227 GB, free: 152 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005985/1.039, allocations: 2.675 MB / 0.5253 GB, free: 151.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.155e-06/1.039, allocations: 0 / 0.5253 GB, free: 151.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006742/1.045, allocations: 0.9753 MB / 0.5263 GB, free: 151.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (123): * Single equations (assignments): 119 * 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.0006877/1.046, allocations: 173.5 kB / 0.5264 GB, free: 151.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009851/1.056, allocations: 4.852 MB / 0.5312 GB, free: 149.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.977e-06/1.056, allocations: 0 / 0.5312 GB, free: 149.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002859/1.059, allocations: 1.434 MB / 0.5326 GB, free: 149.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002675/1.062, allocations: 398.5 kB / 0.533 GB, free: 149.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0201/1.082, allocations: 10.99 MB / 0.5437 GB, free: 143.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005659/1.087, allocations: 3.318 MB / 0.5469 GB, free: 142.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/1.089, allocations: 286.4 kB / 0.5472 GB, free: 142.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.793e-06/1.089, allocations: 0 / 0.5472 GB, free: 142.3 MB / 426.7 MB Notification: Performance of Templates: time 0.09711/1.186, allocations: 72.42 MB / 0.6179 GB, free: 74.18 MB / 426.7 MB