Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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.3_cpp_ModelicaTest.MultiBody.Forces.Torque3") 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.3_cpp_ModelicaTest.MultiBody.Forces.Torque3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002435/0.002439, allocations: 186.3 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.981/1.981, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001062/0.001062, allocations: 99.47 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5069/0.5069, allocations: 43.55 MB / 362.7 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006313/0.0006314, allocations: 16 kB / 431.4 MB, free: 5.926 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1255, allocations: 58.85 MB / 490.2 MB, free: 10.99 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4964/0.622, allocations: 110.1 MB / 0.5862 GB, free: 8.418 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003216/0.6224, allocations: 79.95 kB / 0.5863 GB, free: 8.34 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.206/1.828, allocations: 224.5 MB / 0.8056 GB, free: 43.08 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.206e-06/1.828, allocations: 0 / 0.8056 GB, free: 43.08 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000812/1.829, allocations: 236 kB / 0.8058 GB, free: 42.85 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4187 * Number of variables: 4187 Notification: Performance of Generate backend data structure: time 0.05631/1.885, allocations: 12.28 MB / 0.8178 GB, free: 30.46 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/1.886, allocations: 8.031 kB / 0.8178 GB, free: 30.45 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09296/1.978, allocations: 12.63 MB / 0.8302 GB, free: 17.78 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04316/2.022, allocations: 12.62 MB / 0.8425 GB, free: 5.082 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001254/2.023, allocations: 0.9026 MB / 0.8434 GB, free: 4.176 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00691/2.03, allocations: 1.21 MB / 0.8446 GB, free: 2.965 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4936/2.524, allocations: 28.39 MB / 0.8723 GB, free: 54.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001216/2.525, allocations: 135.5 kB / 0.8724 GB, free: 54.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006798/2.532, allocations: 0.5552 MB / 0.873 GB, free: 54.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006714/2.538, allocations: 2.688 MB / 0.8756 GB, free: 54.4 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07864/2.617, allocations: 23.57 MB / 0.8986 GB, free: 54.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2182/2.835, allocations: 117 MB / 1.013 GB, free: 15.42 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06218/2.898, allocations: 13.72 MB / 1.026 GB, free: 11.45 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004361/2.902, allocations: 2.344 MB / 1.029 GB, free: 9.391 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000178/2.902, allocations: 98.94 kB / 1.029 GB, free: 9.309 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=559): time 1.007e-05/2.902, allocations: 0 / 1.029 GB, free: 9.309 MB / 0.5261 GB Notification: Performance of matching and sorting (n=643): time 0.717/3.619, allocations: 62.86 MB / 1.09 GB, free: 100.1 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001631/3.62, allocations: 329.2 kB / 1.09 GB, free: 99.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02475/3.644, allocations: 9.091 MB / 1.099 GB, free: 99.12 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.00194/3.646, allocations: 125 kB / 1.099 GB, free: 99.09 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.007164/3.653, allocations: 7.317 MB / 1.106 GB, free: 95.18 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.00426/3.658, allocations: 2.346 MB / 1.109 GB, free: 93.78 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003316/3.661, allocations: 288.3 kB / 1.109 GB, free: 93.78 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00133/3.662, allocations: 0.9165 MB / 1.11 GB, free: 93.44 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01821/3.681, allocations: 6.536 MB / 1.116 GB, free: 93.41 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02538/3.706, allocations: 14.11 MB / 1.13 GB, free: 83.79 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02457/3.731, allocations: 9.429 MB / 1.139 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005651/3.731, allocations: 74.16 kB / 1.139 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1864) (initialization): time 0.072/3.803, allocations: 23.12 MB / 1.162 GB, free: 76 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002386/3.804, allocations: 115.8 kB / 1.162 GB, free: 76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004564/3.804, allocations: 268.4 kB / 1.162 GB, free: 76 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01558/3.82, allocations: 3.269 MB / 1.166 GB, free: 75.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02519/3.845, allocations: 3.504 MB / 1.169 GB, free: 75.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04342/3.889, allocations: 23.23 MB / 1.192 GB, free: 62.66 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01866/3.907, allocations: 0.8695 MB / 1.192 GB, free: 62.42 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004069/3.911, allocations: 0.8092 MB / 1.193 GB, free: 62.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1204 * Number of states: 0 () * Number of discrete variables: 108 (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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1744): * Single equations (assignments): 1737 * 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 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01663/3.928, allocations: 5.339 MB / 1.198 GB, free: 59.85 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003067/3.931, allocations: 0.9481 MB / 1.199 GB, free: 59.33 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04593/3.977, allocations: 14.61 MB / 1.214 GB, free: 48.12 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.9e-05/3.977, allocations: 69.98 kB / 1.214 GB, free: 48.06 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.807e-05/3.977, allocations: 16 kB / 1.214 GB, free: 48.04 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001752/3.977, allocations: 31.55 kB / 1.214 GB, free: 48.04 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09581/4.073, allocations: 31.29 MB / 1.244 GB, free: 22.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.234e-05/4.073, allocations: 11.94 kB / 1.244 GB, free: 22.87 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01237/4.086, allocations: 1.217 MB / 1.246 GB, free: 21.92 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01289/4.099, allocations: 2.839 MB / 1.248 GB, free: 19.96 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001851/4.101, allocations: 119.1 kB / 1.248 GB, free: 19.85 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04252/4.143, allocations: 21.71 MB / 1.27 GB, free: 492 kB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.808e-06/4.143, allocations: 11.94 kB / 1.27 GB, free: 480 kB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4938/4.637, allocations: 24.01 MB / 1.293 GB, free: 89.11 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008314/4.645, allocations: 2.04 MB / 1.295 GB, free: 89.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003744/4.649, allocations: 113.5 kB / 1.295 GB, free: 89.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01111/4.66, allocations: 492.4 kB / 1.296 GB, free: 89.02 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002733/4.663, allocations: 387.4 kB / 1.296 GB, free: 89.02 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001869/4.665, allocations: 166.7 kB / 1.296 GB, free: 89.02 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01875/4.684, allocations: 6.523 MB / 1.303 GB, free: 88.73 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.062e-06/4.684, allocations: 3.219 kB / 1.303 GB, free: 88.73 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02123/4.705, allocations: 2.941 MB / 1.305 GB, free: 88.73 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (554): * Single equations (assignments): 547 * 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.002429/4.708, allocations: 295 kB / 1.306 GB, free: 88.64 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04145/4.749, allocations: 16.29 MB / 1.322 GB, free: 88.01 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/4.749, allocations: 0 / 1.322 GB, free: 88.01 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02074/4.77, allocations: 7.165 MB / 1.329 GB, free: 87.45 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01166/4.782, allocations: 1.205 MB / 1.33 GB, free: 87.41 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08613/4.868, allocations: 34.3 MB / 1.363 GB, free: 70.75 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02327/4.891, allocations: 8.316 MB / 1.371 GB, free: 68.31 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006729/4.898, allocations: 0.7638 MB / 1.372 GB, free: 68.28 MB / 0.5417 GB Notification: Performance of SimCode: time 1.272e-06/4.898, allocations: 0 / 1.372 GB, free: 68.28 MB / 0.5417 GB Notification: Performance of Templates: time 1.498/6.396, allocations: 347.4 MB / 1.711 GB, free: 163.4 MB / 0.6198 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque3/Torque3.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches