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.801/1.801, allocations: 209.2 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004443/0.0004445, allocations: 12 kB / 282.6 MB, free: 9.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.3243, allocations: 48.7 MB / 331.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.4682, allocations: 95.96 MB / 427.2 MB, free: 14.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.4685, allocations: 87.95 kB / 427.3 MB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5786/1.047, allocations: 97.13 MB / 0.5122 GB, free: 83.35 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.207e-06/1.047, allocations: 0 / 0.5122 GB, free: 83.35 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002286/1.047, allocations: 103.7 kB / 0.5123 GB, free: 83.34 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: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.02137/1.069, allocations: 5.784 MB / 0.5179 GB, free: 78.86 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/1.069, allocations: 8.031 kB / 0.5179 GB, free: 78.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01246/1.081, allocations: 2.328 MB / 0.5202 GB, free: 76.52 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01384/1.095, allocations: 4.985 MB / 0.525 GB, free: 71.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004/1.096, allocations: 390.3 kB / 0.5254 GB, free: 71.1 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002144/1.098, allocations: 0.5115 MB / 0.5259 GB, free: 70.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03006/1.128, allocations: 12.98 MB / 0.5386 GB, free: 56.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002414/1.128, allocations: 71.39 kB / 0.5387 GB, free: 56.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001621/1.13, allocations: 247.9 kB / 0.5389 GB, free: 56.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002055/1.132, allocations: 1.212 MB / 0.5401 GB, free: 55.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02663/1.159, allocations: 11.28 MB / 0.5511 GB, free: 43.72 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07554/1.234, allocations: 55.76 MB / 0.6056 GB, free: 2.434 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02071/1.255, allocations: 5.33 MB / 0.6108 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002003/1.257, allocations: 1.007 MB / 0.6117 GB, free: 11.78 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.093e-05/1.257, allocations: 63.77 kB / 0.6118 GB, free: 11.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=224): time 6.934e-06/1.257, allocations: 0 / 0.6118 GB, free: 11.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=255): time 0.3884/1.645, allocations: 26.17 MB / 0.6374 GB, free: 103.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.766e-05/1.646, allocations: 155.9 kB / 0.6375 GB, free: 103.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007433/1.653, allocations: 4.011 MB / 0.6414 GB, free: 103.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005791/1.654, allocations: 61.58 kB / 0.6415 GB, free: 103.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002203/1.656, allocations: 3.428 MB / 0.6448 GB, free: 101.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/1.657, allocations: 0.9533 MB / 0.6458 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006315/1.658, allocations: 137.4 kB / 0.6459 GB, free: 100.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004343/1.658, allocations: 0.6005 MB / 0.6465 GB, free: 100.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006153/1.664, allocations: 3.045 MB / 0.6495 GB, free: 100.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00813/1.673, allocations: 6.962 MB / 0.6563 GB, free: 93.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008481/1.681, allocations: 4.508 MB / 0.6607 GB, free: 92.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000125/1.681, allocations: 40.94 kB / 0.6607 GB, free: 92.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=891) (initialization): time 0.02407/1.705, allocations: 10.73 MB / 0.6712 GB, free: 88.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001105/1.705, allocations: 70.94 kB / 0.6712 GB, free: 88.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001495/1.706, allocations: 140.5 kB / 0.6714 GB, free: 88.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003465/1.709, allocations: 1.135 MB / 0.6725 GB, free: 88.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007336/1.716, allocations: 1.705 MB / 0.6742 GB, free: 88.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009399/1.726, allocations: 6.023 MB / 0.68 GB, free: 85.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007079/1.733, allocations: 431.2 kB / 0.6804 GB, free: 85.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001479/1.735, allocations: 418.6 kB / 0.6808 GB, free: 85.29 MB / 426.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 () * Number of clocked 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.005608/1.74, allocations: 2.429 MB / 0.6832 GB, free: 84.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001152/1.741, allocations: 414.5 kB / 0.6836 GB, free: 83.91 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01222/1.754, allocations: 5.678 MB / 0.6892 GB, free: 80.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.971e-05/1.754, allocations: 28 kB / 0.6892 GB, free: 80.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/1.754, allocations: 4 kB / 0.6892 GB, free: 80.15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.882e-05/1.754, allocations: 12.28 kB / 0.6892 GB, free: 80.15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02649/1.78, allocations: 12.36 MB / 0.7013 GB, free: 70.13 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-05/1.78, allocations: 7.938 kB / 0.7013 GB, free: 70.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003475/1.784, allocations: 0.5046 MB / 0.7018 GB, free: 69.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003168/1.787, allocations: 0.9434 MB / 0.7027 GB, free: 69.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005234/1.788, allocations: 48.55 kB / 0.7027 GB, free: 69.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008941/1.796, allocations: 5.766 MB / 0.7084 GB, free: 63.96 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.484e-06/1.797, allocations: 11.44 kB / 0.7084 GB, free: 63.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/1.814, allocations: 9.985 MB / 0.7181 GB, free: 55.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002669/1.817, allocations: 0.9097 MB / 0.719 GB, free: 54.3 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/1.818, allocations: 44 kB / 0.7191 GB, free: 54.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002821/1.821, allocations: 191.7 kB / 0.7192 GB, free: 54.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005855/1.821, allocations: 159.3 kB / 0.7194 GB, free: 54.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002986/1.822, allocations: 71.98 kB / 0.7195 GB, free: 53.97 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005187/1.827, allocations: 2.815 MB / 0.7222 GB, free: 51.65 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.34e-06/1.827, allocations: 0 / 0.7222 GB, free: 51.65 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007653/1.835, allocations: 1.266 MB / 0.7234 GB, free: 50.39 MB / 426.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 () * Number of clocked 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.0006758/1.835, allocations: 193.2 kB / 0.7236 GB, free: 50.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01329/1.849, allocations: 7.299 MB / 0.7308 GB, free: 43.05 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.293e-06/1.849, allocations: 0 / 0.7308 GB, free: 43.05 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005172/1.854, allocations: 2.779 MB / 0.7335 GB, free: 40.26 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003173/1.857, allocations: 460.2 kB / 0.7339 GB, free: 39.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02744/1.884, allocations: 14.65 MB / 0.7482 GB, free: 25.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006741/1.891, allocations: 3.911 MB / 0.752 GB, free: 21.23 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002211/1.894, allocations: 371.3 kB / 0.7524 GB, free: 20.87 MB / 426.7 MB Notification: Performance of SimCode: time 1.84e-06/1.894, allocations: 0 / 0.7524 GB, free: 20.87 MB / 426.7 MB Notification: Performance of Templates: time 0.3958/2.289, allocations: 91.01 MB / 0.8413 GB, free: 87.72 MB / 442.7 MB