Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadModel(ModelicaTest): time 2.131/2.131, allocations: 234.9 MB / 250.5 MB, free: 9.531 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004298/0.0004299, allocations: 12 kB / 314.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2771/0.2775, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.155/0.4326, allocations: 102 MB / 471.3 MB, free: 4.566 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002886/0.433, allocations: 87.89 kB / 471.3 MB, free: 4.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5249/0.9578, allocations: 83.94 MB / 0.5423 GB, free: 29.72 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.568e-06/0.9579, allocations: 0 / 0.5423 GB, free: 29.72 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002132/0.9581, allocations: 83.98 kB / 0.5424 GB, free: 29.64 MB / 394.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.01735/0.9755, allocations: 4.731 MB / 0.547 GB, free: 24.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.9755, allocations: 12.03 kB / 0.547 GB, free: 24.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01194/0.9875, allocations: 2.213 MB / 0.5491 GB, free: 22.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01254/1, allocations: 4.535 MB / 0.5536 GB, free: 18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000324/1, allocations: 324.4 kB / 0.5539 GB, free: 17.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001828/1.002, allocations: 423.8 kB / 0.5543 GB, free: 17.27 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02382/1.026, allocations: 10.76 MB / 0.5648 GB, free: 5.5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001885/1.026, allocations: 51.56 kB / 0.5648 GB, free: 5.449 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001197/1.028, allocations: 207.9 kB / 0.565 GB, free: 5.246 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001721/1.029, allocations: 1.006 MB / 0.566 GB, free: 4.234 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02273/1.052, allocations: 9.075 MB / 0.5749 GB, free: 11.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0827/1.135, allocations: 47.43 MB / 0.6212 GB, free: 10.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01701/1.152, allocations: 3.603 MB / 0.6247 GB, free: 6.457 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01064/1.163, allocations: 4.749 MB / 0.6294 GB, free: 1.508 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.466e-05/1.163, allocations: 43.56 kB / 0.6294 GB, free: 1.457 MB / 458.7 MB Notification: Performance of pre-optimization done (n=142): time 5.947e-06/1.163, allocations: 0 / 0.6294 GB, free: 1.457 MB / 458.7 MB Notification: Performance of matching and sorting (n=148): time 0.03917/1.202, allocations: 12.36 MB / 0.6415 GB, free: 4.926 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001059/1.202, allocations: 141.5 kB / 0.6416 GB, free: 4.758 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008359/1.21, allocations: 3.633 MB / 0.6452 GB, free: 1.102 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003131/1.211, allocations: 45.7 kB / 0.6452 GB, free: 1.051 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3123/1.523, allocations: 3.049 MB / 0.6482 GB, free: 117 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008824/1.524, allocations: 0.5949 MB / 0.6488 GB, free: 116.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005293/1.524, allocations: 113.7 kB / 0.6489 GB, free: 116.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000472/1.525, allocations: 0.5533 MB / 0.6494 GB, free: 116.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004765/1.53, allocations: 1.949 MB / 0.6513 GB, free: 116.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006623/1.536, allocations: 5.623 MB / 0.6568 GB, free: 111.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006058/1.542, allocations: 3.233 MB / 0.66 GB, free: 111.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001085/1.543, allocations: 39.25 kB / 0.66 GB, free: 111.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01913/1.562, allocations: 7.924 MB / 0.6677 GB, free: 111 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/1.562, allocations: 66.25 kB / 0.6678 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000189/1.562, allocations: 131.4 kB / 0.6679 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003209/1.565, allocations: 0.9147 MB / 0.6688 GB, free: 111 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005753/1.571, allocations: 1.344 MB / 0.6701 GB, free: 110.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00759/1.579, allocations: 4.879 MB / 0.6749 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005821/1.585, allocations: 323.8 kB / 0.6752 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001148/1.586, allocations: 364.5 kB / 0.6756 GB, free: 109.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 598 * 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 (711): * Single equations (assignments): 707 * 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.004817/1.591, allocations: 2.077 MB / 0.6776 GB, free: 109.2 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000732/1.591, allocations: 336.2 kB / 0.6779 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007219/1.599, allocations: 2.901 MB / 0.6807 GB, free: 108.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.592e-05/1.599, allocations: 15.73 kB / 0.6807 GB, free: 108.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/1.599, allocations: 3.531 kB / 0.6808 GB, free: 108.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.222e-05/1.599, allocations: 7.156 kB / 0.6808 GB, free: 108.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.017/1.616, allocations: 7.149 MB / 0.6877 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.052e-05/1.616, allocations: 3.75 kB / 0.6877 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/1.617, allocations: 247.9 kB / 0.688 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002928/1.62, allocations: 0.7036 MB / 0.6887 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003005/1.621, allocations: 27.66 kB / 0.6887 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007022/1.628, allocations: 4.454 MB / 0.693 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.214e-06/1.628, allocations: 7.406 kB / 0.693 GB, free: 103.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01029/1.638, allocations: 5.227 MB / 0.6982 GB, free: 101.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001793/1.64, allocations: 0.6083 MB / 0.6987 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007202/1.641, allocations: 27.88 kB / 0.6988 GB, free: 101.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/1.643, allocations: 92.92 kB / 0.6989 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003363/1.643, allocations: 91.92 kB / 0.699 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/1.643, allocations: 38.41 kB / 0.699 GB, free: 101 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005276/1.649, allocations: 2.54 MB / 0.7015 GB, free: 100.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.105e-06/1.649, allocations: 0 / 0.7015 GB, free: 100.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006449/1.655, allocations: 0.9502 MB / 0.7024 GB, free: 100 MB / 474.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 (117): * Single equations (assignments): 113 * 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.0005089/1.656, allocations: 161.4 kB / 0.7025 GB, free: 99.91 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009217/1.665, allocations: 4.704 MB / 0.7071 GB, free: 98.28 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.657e-06/1.665, allocations: 0 / 0.7071 GB, free: 98.28 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002532/1.667, allocations: 1.386 MB / 0.7085 GB, free: 97.72 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/1.67, allocations: 389.3 kB / 0.7089 GB, free: 97.54 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01976/1.69, allocations: 10.87 MB / 0.7195 GB, free: 87.94 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006251/1.696, allocations: 3.319 MB / 0.7227 GB, free: 85.41 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/1.697, allocations: 281.6 kB / 0.723 GB, free: 85.15 MB / 474.7 MB Notification: Performance of SimCode: time 1.806e-06/1.697, allocations: 0 / 0.723 GB, free: 85.15 MB / 474.7 MB Notification: Performance of Templates: time 0.09952/1.797, allocations: 71.23 MB / 0.7925 GB, free: 21.25 MB / 474.7 MB