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_3.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_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.2_cpp_ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3") Notification: Performance of loadModel(ModelicaTest): time 2.139/2.139, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004384, allocations: 12 kB / 314.3 MB, free: 9.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2826, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Parts.Rotor1D.Rotor1D_3): time 0.07686/0.3595, allocations: 54.27 MB / 423.5 MB, free: 4.289 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.03187/0.3915, allocations: 12.48 MB / 435.9 MB, free: 7.777 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01044/0.4019, allocations: 267.4 kB / 436.2 MB, free: 7.516 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008512/0.4105, allocations: 2.749 MB / 438.9 MB, free: 4.754 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0263/0.4368, allocations: 7.718 MB / 446.7 MB, free: 13.02 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003748/0.4406, allocations: 0.628 MB / 447.3 MB, free: 12.39 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005827/0.4465, allocations: 2.546 MB / 449.8 MB, free: 9.84 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01142/0.4579, allocations: 5.971 MB / 455.8 MB, free: 3.785 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002742/0.4607, allocations: 1.211 MB / 457 MB, free: 2.57 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003239/0.464, allocations: 1.616 MB / 458.6 MB, free: 0.9492 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008706/0.4649, allocations: 180 kB / 458.8 MB, free: 0.7734 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00253/0.4675, allocations: 0.831 MB / 459.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002883/0.4704, allocations: 1.847 MB / 461.5 MB, free: 14.09 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001666/0.4721, allocations: 1.002 MB / 462.5 MB, free: 13.08 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.4823, allocations: 6.656 MB / 469.1 MB, free: 6.406 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.242e-06/0.4823, allocations: 0 / 469.1 MB, free: 6.406 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.974e-06/0.4824, allocations: 0 / 469.1 MB, free: 6.406 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001849/0.4826, allocations: 4 kB / 469.2 MB, free: 6.402 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: 1848 * Number of variables: 1848 Notification: Performance of Generate backend data structure: time 0.02086/0.5034, allocations: 6.088 MB / 475.2 MB, free: 244 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.5035, allocations: 8.031 kB / 475.2 MB, free: 236 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2616/0.7651, allocations: 2.329 MB / 477.6 MB, free: 93.29 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006742/0.7719, allocations: 2.928 MB / 480.5 MB, free: 92.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003468/0.7723, allocations: 302 kB / 480.8 MB, free: 91.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001818/0.7741, allocations: 411.8 kB / 481.2 MB, free: 91.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02725/0.8014, allocations: 12.64 MB / 493.8 MB, free: 82.37 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001749/0.8016, allocations: 47.58 kB / 493.9 MB, free: 82.32 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008729/0.8025, allocations: 193.4 kB / 494.1 MB, free: 82.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003377/0.8059, allocations: 2.148 MB / 496.2 MB, free: 80.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02638/0.8323, allocations: 11.21 MB / 0.4955 GB, free: 68.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06406/0.8964, allocations: 47.04 MB / 0.5415 GB, free: 21.02 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02439/0.9208, allocations: 5.473 MB / 0.5468 GB, free: 15.39 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002026/0.9229, allocations: 0.7092 MB / 0.5475 GB, free: 14.59 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.493e-05/0.923, allocations: 67.8 kB / 0.5476 GB, free: 14.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=224): time 1.138e-05/0.923, allocations: 0 / 0.5476 GB, free: 14.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=255): time 0.1919/1.115, allocations: 27.09 MB / 0.574 GB, free: 3.242 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001567/1.115, allocations: 150.5 kB / 0.5742 GB, free: 3.062 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01337/1.129, allocations: 4.595 MB / 0.5787 GB, free: 14.45 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005956/1.129, allocations: 61.7 kB / 0.5787 GB, free: 14.38 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005558/1.135, allocations: 3.429 MB / 0.5821 GB, free: 10.96 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002398/1.137, allocations: 0.9622 MB / 0.583 GB, free: 10 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001063/1.138, allocations: 136 kB / 0.5831 GB, free: 9.871 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009789/1.139, allocations: 0.5961 MB / 0.5837 GB, free: 9.266 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009411/1.149, allocations: 3.047 MB / 0.5867 GB, free: 6.211 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01122/1.16, allocations: 6.975 MB / 0.5935 GB, free: 13.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009721/1.17, allocations: 4.497 MB / 0.5979 GB, free: 8.809 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/1.17, allocations: 40 kB / 0.5979 GB, free: 8.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=889) (initialization): time 0.0275/1.198, allocations: 10.73 MB / 0.6084 GB, free: 14.03 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001352/1.198, allocations: 65.25 kB / 0.6085 GB, free: 13.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001987/1.198, allocations: 140 kB / 0.6086 GB, free: 13.83 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003903/1.202, allocations: 1.149 MB / 0.6097 GB, free: 12.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008002/1.21, allocations: 1.708 MB / 0.6114 GB, free: 10.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01163/1.222, allocations: 6.109 MB / 0.6174 GB, free: 4.723 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006493/1.228, allocations: 423.5 kB / 0.6178 GB, free: 4.309 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/1.229, allocations: 423.9 kB / 0.6182 GB, free: 3.895 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 627 * 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 (850): * Single equations (assignments): 846 * 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.00554/1.235, allocations: 2.415 MB / 0.6205 GB, free: 1.465 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/1.236, allocations: 410.7 kB / 0.6209 GB, free: 1.059 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01416/1.25, allocations: 5.712 MB / 0.6265 GB, free: 11.32 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.426e-05/1.25, allocations: 28 kB / 0.6265 GB, free: 11.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.053e-05/1.25, allocations: 7.953 kB / 0.6265 GB, free: 11.29 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.539e-05/1.25, allocations: 11.95 kB / 0.6266 GB, free: 11.28 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2905/1.541, allocations: 12.39 MB / 0.6386 GB, free: 150.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.12e-05/1.541, allocations: 3.375 kB / 0.6386 GB, free: 150.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004187/1.545, allocations: 0.5201 MB / 0.6392 GB, free: 150.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003815/1.549, allocations: 0.9517 MB / 0.6401 GB, free: 150.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005976/1.55, allocations: 46.25 kB / 0.6401 GB, free: 150.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/1.56, allocations: 5.836 MB / 0.6458 GB, free: 148 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.941e-06/1.56, allocations: 4.891 kB / 0.6458 GB, free: 148 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0191/1.579, allocations: 9.677 MB / 0.6553 GB, free: 144.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002678/1.581, allocations: 0.9255 MB / 0.6562 GB, free: 144 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009732/1.582, allocations: 42.31 kB / 0.6562 GB, free: 144 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003094/1.586, allocations: 184.3 kB / 0.6564 GB, free: 144 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005721/1.586, allocations: 162.1 kB / 0.6566 GB, free: 143.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002921/1.587, allocations: 74.66 kB / 0.6566 GB, free: 143.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005548/1.592, allocations: 2.9 MB / 0.6595 GB, free: 142.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.028e-06/1.592, allocations: 0 / 0.6595 GB, free: 142.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007109/1.599, allocations: 1.277 MB / 0.6607 GB, free: 142.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (230): * Single equations (assignments): 226 * 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.0009021/1.6, allocations: 200.3 kB / 0.6609 GB, free: 142.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01403/1.614, allocations: 7.307 MB / 0.668 GB, free: 139.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.958e-06/1.614, allocations: 0.8438 kB / 0.668 GB, free: 139.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005168/1.619, allocations: 2.783 MB / 0.6708 GB, free: 136.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002817/1.622, allocations: 457.8 kB / 0.6712 GB, free: 136.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02427/1.647, allocations: 14.69 MB / 0.6855 GB, free: 122 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005399/1.652, allocations: 3.904 MB / 0.6894 GB, free: 118.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002145/1.654, allocations: 366.3 kB / 0.6897 GB, free: 117.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.639e-06/1.654, allocations: 0 / 0.6897 GB, free: 117.7 MB / 474.7 MB Notification: Performance of Templates: time 0.1211/1.775, allocations: 91.63 MB / 0.7792 GB, free: 25.98 MB / 474.7 MB