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_2.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_2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_2") Notification: Performance of loadModel(ModelicaTest): time 1.867/1.867, allocations: 209.3 MB / 224.9 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004346/0.0004347, allocations: 8 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2813, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1414/0.4228, allocations: 95.2 MB / 426.5 MB, free: 15.19 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.423, allocations: 87.89 kB / 426.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5695/0.9925, allocations: 83.92 MB / 0.4985 GB, free: 92.03 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.9926, allocations: 0 / 0.4985 GB, free: 92.03 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002104/0.9928, allocations: 84.94 kB / 0.4986 GB, free: 92.02 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.0176/1.01, allocations: 4.73 MB / 0.5032 GB, free: 89.14 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.97e-05/1.01, allocations: 10.59 kB / 0.5032 GB, free: 89.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01193/1.022, allocations: 2.215 MB / 0.5054 GB, free: 88.1 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0128/1.035, allocations: 4.528 MB / 0.5098 GB, free: 85.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003416/1.036, allocations: 319.3 kB / 0.5101 GB, free: 85.46 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001868/1.038, allocations: 428.2 kB / 0.5105 GB, free: 85.34 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02507/1.063, allocations: 10.75 MB / 0.521 GB, free: 74.85 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002131/1.063, allocations: 59.41 kB / 0.5211 GB, free: 74.79 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001432/1.064, allocations: 202.6 kB / 0.5213 GB, free: 74.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001724/1.066, allocations: 1.017 MB / 0.5223 GB, free: 73.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02104/1.087, allocations: 9.069 MB / 0.5311 GB, free: 64.52 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05519/1.142, allocations: 47.4 MB / 0.5774 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01281/1.155, allocations: 3.619 MB / 0.5809 GB, free: 12.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009109/1.164, allocations: 4.747 MB / 0.5856 GB, free: 7.141 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/1.164, allocations: 51.55 kB / 0.5856 GB, free: 7.082 MB / 394.7 MB Notification: Performance of pre-optimization done (n=142): time 5.306e-06/1.164, allocations: 3.938 kB / 0.5856 GB, free: 7.078 MB / 394.7 MB Notification: Performance of matching and sorting (n=148): time 0.03864/1.203, allocations: 12.35 MB / 0.5977 GB, free: 10.57 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/1.203, allocations: 149.4 kB / 0.5978 GB, free: 10.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008457/1.212, allocations: 3.637 MB / 0.6014 GB, free: 6.727 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003365/1.212, allocations: 45.7 kB / 0.6014 GB, free: 6.676 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0033/1.215, allocations: 3.065 MB / 0.6044 GB, free: 3.613 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009977/1.216, allocations: 0.5909 MB / 0.605 GB, free: 3.027 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005775/1.217, allocations: 116 kB / 0.6051 GB, free: 2.914 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005612/1.218, allocations: 0.5428 MB / 0.6056 GB, free: 2.359 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004801/1.222, allocations: 1.959 MB / 0.6076 GB, free: 404 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008579/1.231, allocations: 5.61 MB / 0.613 GB, free: 8.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007149/1.238, allocations: 3.237 MB / 0.6162 GB, free: 5.691 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.238, allocations: 36 kB / 0.6162 GB, free: 5.656 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.2699/1.508, allocations: 7.924 MB / 0.624 GB, free: 104.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/1.509, allocations: 64.41 kB / 0.624 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002683/1.509, allocations: 130.8 kB / 0.6242 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003507/1.512, allocations: 0.9084 MB / 0.625 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005853/1.518, allocations: 1.353 MB / 0.6264 GB, free: 104.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008339/1.527, allocations: 4.881 MB / 0.6311 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00591/1.533, allocations: 323.3 kB / 0.6314 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001339/1.534, allocations: 362 kB / 0.6318 GB, free: 103.6 MB / 426.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.005406/1.539, allocations: 2.081 MB / 0.6338 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008293/1.54, allocations: 344.7 kB / 0.6341 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00735/1.548, allocations: 2.897 MB / 0.637 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.78e-05/1.548, allocations: 15.56 kB / 0.637 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/1.548, allocations: 3.938 kB / 0.637 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.87e-05/1.548, allocations: 8.984 kB / 0.637 GB, free: 103.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01789/1.566, allocations: 7.154 MB / 0.644 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-05/1.566, allocations: 3.781 kB / 0.644 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00162/1.567, allocations: 247.6 kB / 0.6442 GB, free: 102.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002649/1.57, allocations: 0.7025 MB / 0.6449 GB, free: 102.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003301/1.57, allocations: 23.91 kB / 0.6449 GB, free: 102.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006782/1.577, allocations: 4.454 MB / 0.6493 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.241e-06/1.577, allocations: 0 / 0.6493 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/1.587, allocations: 5.234 MB / 0.6544 GB, free: 98.16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001858/1.589, allocations: 0.6204 MB / 0.655 GB, free: 97.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008756/1.59, allocations: 22.25 kB / 0.655 GB, free: 97.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/1.593, allocations: 92.77 kB / 0.6551 GB, free: 97.88 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004783/1.593, allocations: 84.09 kB / 0.6552 GB, free: 97.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001734/1.593, allocations: 41.8 kB / 0.6552 GB, free: 97.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005907/1.599, allocations: 2.542 MB / 0.6577 GB, free: 96.97 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.951e-06/1.599, allocations: 0 / 0.6577 GB, free: 96.97 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00688/1.606, allocations: 0.9539 MB / 0.6586 GB, free: 96.86 MB / 426.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.0005702/1.607, allocations: 159.7 kB / 0.6588 GB, free: 96.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009111/1.616, allocations: 4.711 MB / 0.6634 GB, free: 95.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.86e-06/1.616, allocations: 0 / 0.6634 GB, free: 95.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002664/1.619, allocations: 1.386 MB / 0.6648 GB, free: 94.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002891/1.622, allocations: 395.8 kB / 0.6651 GB, free: 94.67 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/1.644, allocations: 10.86 MB / 0.6757 GB, free: 89.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006384/1.65, allocations: 3.325 MB / 0.679 GB, free: 87.82 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/1.651, allocations: 282.8 kB / 0.6793 GB, free: 87.59 MB / 426.7 MB Notification: Performance of SimCode: time 2.036e-06/1.651, allocations: 0 / 0.6793 GB, free: 87.59 MB / 426.7 MB Notification: Performance of Templates: time 0.101/1.752, allocations: 71.2 MB / 0.7488 GB, free: 21.12 MB / 426.7 MB