Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|r1.phi|r1.w|r2.phi|r2.w|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") Notification: Performance of loadModel(ModelicaTest): time 1.902/1.902, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.7e-05/2.727e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.08883, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3577/0.4466, allocations: 95.86 MB / 422.4 MB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.4469, allocations: 86.62 kB / 422.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4135/0.8604, allocations: 97.24 MB / 0.5075 GB, free: 1.477 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.34e-06/0.8604, allocations: 0 / 0.5075 GB, free: 1.477 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002855/0.8607, allocations: 104 kB / 0.5076 GB, free: 1.375 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.02205/0.8828, allocations: 5.498 MB / 0.513 GB, free: 11.81 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.8829, allocations: 8.031 kB / 0.513 GB, free: 11.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01352/0.8964, allocations: 2.325 MB / 0.5153 GB, free: 9.465 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0159/0.9124, allocations: 4.964 MB / 0.5201 GB, free: 4.438 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004883/0.9129, allocations: 390.3 kB / 0.5205 GB, free: 4.055 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/0.915, allocations: 0.5115 MB / 0.521 GB, free: 3.543 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.272/1.187, allocations: 12.86 MB / 0.5336 GB, free: 79.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002976/1.187, allocations: 63.95 kB / 0.5336 GB, free: 79.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001852/1.189, allocations: 245.4 kB / 0.5339 GB, free: 79.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002369/1.192, allocations: 1.21 MB / 0.535 GB, free: 79.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02887/1.221, allocations: 11.08 MB / 0.5459 GB, free: 79.19 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07445/1.295, allocations: 55.77 MB / 0.6003 GB, free: 45.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02013/1.315, allocations: 5.28 MB / 0.6055 GB, free: 43.46 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005353/1.321, allocations: 3.281 MB / 0.6087 GB, free: 42.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001755/1.322, allocations: 1.007 MB / 0.6097 GB, free: 41.21 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/1.322, allocations: 57.34 kB / 0.6097 GB, free: 41.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 7.149e-06/1.323, allocations: 0 / 0.6097 GB, free: 41.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=255): time 0.0761/1.399, allocations: 21.94 MB / 0.6311 GB, free: 33.65 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.523e-05/1.399, allocations: 161.3 kB / 0.6313 GB, free: 33.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007545/1.406, allocations: 3.976 MB / 0.6352 GB, free: 30.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005745/1.407, allocations: 65.61 kB / 0.6352 GB, free: 30.24 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002165/1.409, allocations: 3.425 MB / 0.6386 GB, free: 27.22 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/1.41, allocations: 0.9565 MB / 0.6395 GB, free: 26.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000583/1.411, allocations: 136 kB / 0.6396 GB, free: 26.24 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004185/1.411, allocations: 0.6017 MB / 0.6402 GB, free: 25.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00554/1.417, allocations: 2.974 MB / 0.6431 GB, free: 23.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007683/1.425, allocations: 6.874 MB / 0.6499 GB, free: 14.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007837/1.432, allocations: 4.469 MB / 0.6542 GB, free: 11.01 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.188e-05/1.433, allocations: 40 kB / 0.6543 GB, free: 10.97 MB / 426.7 MB Notification: Performance of matching and sorting (n=891) (initialization): time 0.02323/1.456, allocations: 10.57 MB / 0.6646 GB, free: 1.93 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/1.456, allocations: 68.03 kB / 0.6646 GB, free: 1.863 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/1.456, allocations: 136 kB / 0.6648 GB, free: 1.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003511/1.46, allocations: 1.131 MB / 0.6659 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007954/1.468, allocations: 1.706 MB / 0.6675 GB, free: 15.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01102/1.479, allocations: 5.925 MB / 0.6733 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007236/1.486, allocations: 420.9 kB / 0.6737 GB, free: 9.891 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001581/1.488, allocations: 421.5 kB / 0.6741 GB, free: 9.504 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 629 * Number of states: 0 () * Number of discrete variables: 39 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (852): * Single equations (assignments): 848 * 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.001849/1.49, allocations: 0.6181 MB / 0.6747 GB, free: 8.883 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001131/1.491, allocations: 410.7 kB / 0.6751 GB, free: 8.477 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0137/1.504, allocations: 5.578 MB / 0.6806 GB, free: 3.988 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.485e-05/1.505, allocations: 27.95 kB / 0.6806 GB, free: 3.961 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.71e-05/1.505, allocations: 4 kB / 0.6806 GB, free: 3.957 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.525e-05/1.505, allocations: 19.59 kB / 0.6806 GB, free: 3.953 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2831/1.788, allocations: 12.26 MB / 0.6926 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.35e-05/1.788, allocations: 4.625 kB / 0.6926 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003596/1.791, allocations: 0.5138 MB / 0.6931 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003354/1.795, allocations: 0.9362 MB / 0.694 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006034/1.795, allocations: 51.11 kB / 0.6941 GB, free: 87.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009801/1.805, allocations: 5.639 MB / 0.6996 GB, free: 86.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.557e-06/1.805, allocations: 3.562 kB / 0.6996 GB, free: 86.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01953/1.825, allocations: 9.836 MB / 0.7092 GB, free: 85.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002732/1.828, allocations: 0.912 MB / 0.7101 GB, free: 85.41 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001105/1.829, allocations: 43.8 kB / 0.7101 GB, free: 85.41 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003278/1.832, allocations: 197.9 kB / 0.7103 GB, free: 85.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006666/1.833, allocations: 155.1 kB / 0.7105 GB, free: 85.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003128/1.833, allocations: 72.31 kB / 0.7105 GB, free: 85.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006201/1.839, allocations: 2.78 MB / 0.7132 GB, free: 85.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.322e-06/1.839, allocations: 0 / 0.7132 GB, free: 85.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007595/1.847, allocations: 1.255 MB / 0.7145 GB, free: 85.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,r1.phi,r1.w,r2.phi,r2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (228): * Single equations (assignments): 224 * 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 Backend phase and start with SimCode phase: time 0.0007959/1.848, allocations: 196.6 kB / 0.7146 GB, free: 85.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01399/1.862, allocations: 7.16 MB / 0.7216 GB, free: 84.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.147e-06/1.862, allocations: 6.062 kB / 0.7216 GB, free: 84.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005674/1.868, allocations: 2.721 MB / 0.7243 GB, free: 84.82 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003404/1.871, allocations: 457.8 kB / 0.7247 GB, free: 84.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02602/1.897, allocations: 10.69 MB / 0.7352 GB, free: 80.82 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007862/1.905, allocations: 3.905 MB / 0.739 GB, free: 79.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002574/1.908, allocations: 363.3 kB / 0.7393 GB, free: 79.41 MB / 442.7 MB Notification: Performance of SimCode: time 2.146e-06/1.908, allocations: 0 / 0.7393 GB, free: 79.41 MB / 442.7 MB Notification: Performance of Templates: time 0.1288/2.037, allocations: 91.01 MB / 0.8282 GB, free: 13.94 MB / 442.7 MB