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.Forces.Torque.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 2.188/2.188, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.027e-05/2.037e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2707, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1506/0.4213, allocations: 100.7 MB / 458.8 MB, free: 10.05 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.4216, allocations: 71.97 kB / 458.8 MB, free: 9.984 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6695/1.091, allocations: 129 MB / 0.5741 GB, free: 9.031 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.237e-06/1.091, allocations: 8 kB / 0.5741 GB, free: 9.023 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004005/1.092, allocations: 135.9 kB / 0.5742 GB, free: 8.891 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: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.02194/1.114, allocations: 6.65 MB / 0.5807 GB, free: 2.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/1.114, allocations: 12.03 kB / 0.5807 GB, free: 2.152 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03833/1.152, allocations: 7.143 MB / 0.5877 GB, free: 10.99 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02328/1.175, allocations: 7.427 MB / 0.5949 GB, free: 3.477 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004421/1.176, allocations: 220 kB / 0.5951 GB, free: 3.262 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002699/1.179, allocations: 407.8 kB / 0.5955 GB, free: 2.863 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02201/1.201, allocations: 9.251 MB / 0.6046 GB, free: 9.605 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03465/1.235, allocations: 14.33 MB / 0.6186 GB, free: 9.801 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003499/1.236, allocations: 91.22 kB / 0.6187 GB, free: 9.711 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001726/1.237, allocations: 44 kB / 0.6187 GB, free: 9.668 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002963/1.24, allocations: 1.549 MB / 0.6202 GB, free: 8.113 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3677/1.608, allocations: 69.69 MB / 0.6883 GB, free: 34.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007582/1.616, allocations: 5.197 MB / 0.6933 GB, free: 33.74 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005226/1.621, allocations: 3.51 MB / 0.6968 GB, free: 33.69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006069/1.622, allocations: 392.2 kB / 0.6971 GB, free: 33.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/1.622, allocations: 64.88 kB / 0.6972 GB, free: 33.36 MB / 458.7 MB Notification: Performance of pre-optimization done (n=268): time 7.523e-06/1.622, allocations: 0 / 0.6972 GB, free: 33.36 MB / 458.7 MB Notification: Performance of matching and sorting (n=312): time 0.06827/1.69, allocations: 27.54 MB / 0.7241 GB, free: 24.41 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.714e-05/1.69, allocations: 238.4 kB / 0.7243 GB, free: 24.15 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00883/1.699, allocations: 4.764 MB / 0.729 GB, free: 22.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006338/1.7, allocations: 32.89 kB / 0.729 GB, free: 22.43 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003209/1.703, allocations: 4.795 MB / 0.7337 GB, free: 19.06 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001487/1.704, allocations: 1.16 MB / 0.7348 GB, free: 18.21 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008721/1.705, allocations: 0 / 0.7348 GB, free: 18.21 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005905/1.706, allocations: 0.7053 MB / 0.7355 GB, free: 17.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006759/1.713, allocations: 3.411 MB / 0.7388 GB, free: 16.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009809/1.723, allocations: 8.852 MB / 0.7475 GB, free: 7.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00962/1.732, allocations: 5.429 MB / 0.7528 GB, free: 4.465 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001615/1.732, allocations: 56.78 kB / 0.7528 GB, free: 4.41 MB / 458.7 MB Notification: Performance of matching and sorting (n=1220) (initialization): time 0.03017/1.763, allocations: 12.39 MB / 0.7649 GB, free: 10.15 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001621/1.763, allocations: 88 kB / 0.765 GB, free: 10.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002684/1.763, allocations: 196 kB / 0.7652 GB, free: 9.871 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005429/1.769, allocations: 1.719 MB / 0.7669 GB, free: 8.578 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009726/1.778, allocations: 2.215 MB / 0.769 GB, free: 6.684 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01996/1.798, allocations: 10.74 MB / 0.7795 GB, free: 13.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009298/1.808, allocations: 373.3 kB / 0.7799 GB, free: 12.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002251/1.81, allocations: 0.5537 MB / 0.7804 GB, free: 12.29 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 886 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1148): * Single equations (assignments): 1143 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003155/1.813, allocations: 0.6007 MB / 0.781 GB, free: 11.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001708/1.815, allocations: 0.5051 MB / 0.7815 GB, free: 11.17 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01679/1.832, allocations: 6.495 MB / 0.7879 GB, free: 5.953 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.309e-05/1.832, allocations: 32 kB / 0.7879 GB, free: 5.922 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-05/1.832, allocations: 11.95 kB / 0.7879 GB, free: 5.91 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-05/1.832, allocations: 16.94 kB / 0.7879 GB, free: 5.906 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03639/1.868, allocations: 13.77 MB / 0.8014 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.014e-05/1.868, allocations: 0 / 0.8014 GB, free: 10.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003678/1.872, allocations: 0.537 MB / 0.8019 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005068/1.877, allocations: 1.403 MB / 0.8033 GB, free: 9.504 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007211/1.878, allocations: 16 kB / 0.8033 GB, free: 9.488 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01887/1.897, allocations: 9.896 MB / 0.8129 GB, free: 0.6523 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/1.897, allocations: 4 kB / 0.8129 GB, free: 0.6484 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3106/2.207, allocations: 10.94 MB / 0.8236 GB, free: 112.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003146/2.211, allocations: 1.035 MB / 0.8246 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001251/2.212, allocations: 3.531 kB / 0.8246 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003493/2.215, allocations: 166.7 kB / 0.8248 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007302/2.216, allocations: 186.6 kB / 0.825 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003405/2.217, allocations: 81.56 kB / 0.8251 GB, free: 112.3 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006693/2.223, allocations: 3.212 MB / 0.8282 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.152e-06/2.223, allocations: 0 / 0.8282 GB, free: 112.1 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01044/2.234, allocations: 1.423 MB / 0.8296 GB, free: 112.1 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 8 (Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 248 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007816/2.235, allocations: 156 kB / 0.8297 GB, free: 112 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01603/2.251, allocations: 8.6 MB / 0.8381 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.975e-06/2.251, allocations: 0 / 0.8381 GB, free: 111.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.006697/2.257, allocations: 3.316 MB / 0.8414 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003525/2.261, allocations: 0.5363 MB / 0.8419 GB, free: 111.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03013/2.291, allocations: 13.68 MB / 0.8552 GB, free: 109.1 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009915/2.301, allocations: 5.038 MB / 0.8602 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00237/2.303, allocations: 446.1 kB / 0.8606 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.754e-06/2.304, allocations: 0 / 0.8606 GB, free: 108.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.4844/2.788, allocations: 142.2 MB / 0.9995 GB, free: 132.9 MB / 0.5105 GB