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.Torque3.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.Torque3,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|Revolute5.phi|Revolute5.w|Revolute6.phi|Revolute6.w|Revolute7.phi|Revolute7.w|Revolute8.phi|Revolute8.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque3") Notification: Performance of loadModel(ModelicaTest): time 2.269/2.269, allocations: 235.1 MB / 243 MB, free: 9.594 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.089e-05/2.096e-05, allocations: 4 kB / 303.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2765, allocations: 54.85 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1563/0.4329, allocations: 103.2 MB / 461.3 MB, free: 7.582 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/0.4331, allocations: 71.97 kB / 461.3 MB, free: 7.512 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.266/1.699, allocations: 218.1 MB / 0.6635 GB, free: 42.05 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.961e-06/1.699, allocations: 0 / 0.6635 GB, free: 42.05 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006278/1.7, allocations: 244 kB / 0.6638 GB, free: 42.04 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 0.03754/1.737, allocations: 11.38 MB / 0.6749 GB, free: 37.87 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/1.737, allocations: 11.19 kB / 0.6749 GB, free: 37.87 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06703/1.804, allocations: 12.64 MB / 0.6872 GB, free: 37.07 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03562/1.84, allocations: 12.53 MB / 0.6995 GB, free: 35.78 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006908/1.841, allocations: 394.2 kB / 0.6998 GB, free: 35.78 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005045/1.846, allocations: 0.7042 MB / 0.7005 GB, free: 35.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03612/1.882, allocations: 16.72 MB / 0.7169 GB, free: 35.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05603/1.938, allocations: 24.45 MB / 0.7407 GB, free: 21.95 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007109/1.939, allocations: 139.6 kB / 0.7409 GB, free: 21.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004378/1.943, allocations: 66.19 kB / 0.7409 GB, free: 21.8 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004425/1.948, allocations: 2.676 MB / 0.7435 GB, free: 19.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5155/2.463, allocations: 110.4 MB / 0.8513 GB, free: 25.76 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01631/2.479, allocations: 10.82 MB / 0.8619 GB, free: 24.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01174/2.491, allocations: 7.539 MB / 0.8693 GB, free: 24.44 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003053/2.494, allocations: 2.338 MB / 0.8716 GB, free: 22.46 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001047/2.495, allocations: 95.39 kB / 0.8717 GB, free: 22.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=541): time 1.281e-05/2.495, allocations: 0 / 0.8717 GB, free: 22.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=629): time 0.1619/2.656, allocations: 56.9 MB / 0.9272 GB, free: 11.24 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/2.657, allocations: 320.3 kB / 0.9275 GB, free: 10.92 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01654/2.673, allocations: 7.048 MB / 0.9344 GB, free: 8.41 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001437/2.675, allocations: 29.67 kB / 0.9344 GB, free: 8.379 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005515/2.68, allocations: 7.65 MB / 0.9419 GB, free: 2.848 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003266/2.683, allocations: 2.229 MB / 0.9441 GB, free: 1.168 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002304/2.686, allocations: 0 / 0.9441 GB, free: 1.168 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001411/2.687, allocations: 0.9339 MB / 0.945 GB, free: 0.5898 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02142/2.709, allocations: 6.624 MB / 0.9515 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02338/2.732, allocations: 14.01 MB / 0.9651 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02029/2.752, allocations: 9.215 MB / 0.9741 GB, free: 8.27 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003116/2.753, allocations: 80 kB / 0.9742 GB, free: 8.191 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1919) (initialization): time 0.05907/2.812, allocations: 21.37 MB / 0.9951 GB, free: 7.098 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000256/2.812, allocations: 124 kB / 0.9952 GB, free: 6.977 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004664/2.813, allocations: 278.5 kB / 0.9955 GB, free: 6.707 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01167/2.824, allocations: 3.276 MB / 0.9987 GB, free: 4.285 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01769/2.842, allocations: 3.612 MB / 1.002 GB, free: 1.266 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04215/2.884, allocations: 21.31 MB / 1.023 GB, free: 14.32 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01557/2.9, allocations: 0.6017 MB / 1.024 GB, free: 13.88 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004012/2.904, allocations: 0.8438 MB / 1.024 GB, free: 13.07 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1255 * Number of states: 0 () * Number of discrete variables: 105 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],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],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 (1799): * Single equations (assignments): 1792 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005918/2.91, allocations: 0.8291 MB / 1.025 GB, free: 12.24 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003534/2.914, allocations: 0.8215 MB / 1.026 GB, free: 11.41 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03814/2.952, allocations: 13.75 MB / 1.039 GB, free: 288 kB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001393/2.952, allocations: 64 kB / 1.04 GB, free: 224 kB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.711e-05/2.952, allocations: 16 kB / 1.04 GB, free: 208 kB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001385/2.952, allocations: 33.53 kB / 1.04 GB, free: 204 kB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4044/3.356, allocations: 27.65 MB / 1.067 GB, free: 144 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.38e-05/3.357, allocations: 5.594 kB / 1.067 GB, free: 144 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008668/3.365, allocations: 1.229 MB / 1.068 GB, free: 144 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01013/3.375, allocations: 2.804 MB / 1.071 GB, free: 144 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00157/3.377, allocations: 18.27 kB / 1.071 GB, free: 144 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03259/3.41, allocations: 19.66 MB / 1.09 GB, free: 138.9 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.141e-05/3.41, allocations: 9.922 kB / 1.09 GB, free: 138.9 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04551/3.455, allocations: 21.53 MB / 1.111 GB, free: 135 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006305/3.462, allocations: 1.832 MB / 1.113 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003205/3.465, allocations: 7.969 kB / 1.113 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007735/3.473, allocations: 384.6 kB / 1.113 GB, free: 134.5 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00209/3.475, allocations: 367.5 kB / 1.113 GB, free: 134.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001346/3.476, allocations: 158.7 kB / 1.113 GB, free: 134.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0119/3.488, allocations: 4.757 MB / 1.118 GB, free: 132.7 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.512e-06/3.488, allocations: 0 / 1.118 GB, free: 132.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01848/3.507, allocations: 2.526 MB / 1.121 GB, free: 132.7 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (540): * Single equations (assignments): 533 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(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.001775/3.508, allocations: 188.5 kB / 1.121 GB, free: 132.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.03241/3.541, allocations: 15.85 MB / 1.136 GB, free: 127.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/3.541, allocations: 3.906 kB / 1.136 GB, free: 127.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01536/3.556, allocations: 6.715 MB / 1.143 GB, free: 124.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007325/3.564, allocations: 0.8661 MB / 1.144 GB, free: 124.4 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06192/3.626, allocations: 24.78 MB / 1.168 GB, free: 105.3 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02048/3.646, allocations: 8.318 MB / 1.176 GB, free: 99.34 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005645/3.652, allocations: 0.7136 MB / 1.177 GB, free: 98.67 MB / 0.573 GB Notification: Performance of SimCode: time 3.164e-06/3.652, allocations: 0 / 1.177 GB, free: 98.67 MB / 0.573 GB Notification: Performance of Templates: time 1.175/4.827, allocations: 338.2 MB / 1.507 GB, free: 130.1 MB / 0.573 GB