Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.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.Torque2,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.Torque2") translateModel(ModelicaTest.MultiBody.Forces.Torque2,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.Torque2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001531/0.001534, allocations: 181.7 kB / 13.66 MB, free: 1.664 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.955/1.955, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001085/0.001084, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2738/0.2738, allocations: 43.5 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.17e-05/3.172e-05, allocations: 4 kB / 425.3 MB, free: 23.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.113, allocations: 58.85 MB / 484.1 MB, free: 12.49 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5122/0.6253, allocations: 111.5 MB / 0.5816 GB, free: 8.5 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.6256, allocations: 70.53 kB / 0.5817 GB, free: 8.469 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.454/2.08, allocations: 241.4 MB / 0.8175 GB, free: 76.36 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.645e-06/2.08, allocations: 7.938 kB / 0.8175 GB, free: 76.35 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0009137/2.081, allocations: 260 kB / 0.8177 GB, free: 76.09 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4457 * Number of variables: 4457 Notification: Performance of Generate backend data structure: time 0.05186/2.132, allocations: 12.34 MB / 0.8298 GB, free: 63.65 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/2.132, allocations: 11.97 kB / 0.8298 GB, free: 63.64 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09283/2.225, allocations: 12.82 MB / 0.8423 GB, free: 50.78 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04774/2.273, allocations: 13.31 MB / 0.8553 GB, free: 37.36 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001446/2.275, allocations: 0.9548 MB / 0.8562 GB, free: 36.41 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007303/2.282, allocations: 1.277 MB / 0.8575 GB, free: 35.13 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09595/2.378, allocations: 29.95 MB / 0.8867 GB, free: 2.902 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009779/2.379, allocations: 150.5 kB / 0.8869 GB, free: 2.754 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006209/2.385, allocations: 0.5896 MB / 0.8874 GB, free: 2.164 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006573/2.392, allocations: 2.864 MB / 0.8902 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.483/2.875, allocations: 24.31 MB / 0.914 GB, free: 77.93 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2223/3.097, allocations: 127.9 MB / 1.039 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06163/3.159, allocations: 13.96 MB / 1.052 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01667/3.176, allocations: 7.956 MB / 1.06 GB, free: 12.11 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05759/3.233, allocations: 19.84 MB / 1.08 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001196/3.233, allocations: 94.91 kB / 1.08 GB, free: 0.543 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=562): time 9.618e-06/3.233, allocations: 3.062 kB / 1.08 GB, free: 0.543 MB / 0.5261 GB Notification: Performance of matching and sorting (n=646): time 0.8111/4.045, allocations: 59.75 MB / 1.138 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001942/4.045, allocations: 382 kB / 1.138 GB, free: 121.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03201/4.077, allocations: 10.63 MB / 1.149 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.001827/4.079, allocations: 121.8 kB / 1.149 GB, free: 120.9 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007673/4.086, allocations: 8.03 MB / 1.157 GB, free: 117.2 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.004134/4.091, allocations: 2.382 MB / 1.159 GB, free: 115.8 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003121/4.094, allocations: 315.7 kB / 1.159 GB, free: 115.8 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.00158/4.095, allocations: 0.9684 MB / 1.16 GB, free: 115.4 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01705/4.113, allocations: 6.629 MB / 1.167 GB, free: 115.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02299/4.136, allocations: 15.07 MB / 1.182 GB, free: 104.7 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02303/4.159, allocations: 9.892 MB / 1.191 GB, free: 103.4 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00044/4.159, allocations: 82.38 kB / 1.191 GB, free: 103.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=2020) (initialization): time 0.0673/4.226, allocations: 24.07 MB / 1.215 GB, free: 95.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002607/4.227, allocations: 132.3 kB / 1.215 GB, free: 95.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004491/4.227, allocations: 293.4 kB / 1.215 GB, free: 95.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01366/4.241, allocations: 3.313 MB / 1.218 GB, free: 95.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02508/4.266, allocations: 3.763 MB / 1.222 GB, free: 94.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0411/4.307, allocations: 22.58 MB / 1.244 GB, free: 79.66 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02057/4.328, allocations: 0.9427 MB / 1.245 GB, free: 78.89 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004051/4.332, allocations: 0.8851 MB / 1.246 GB, free: 78.04 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1346 * Number of states: 0 () * Number of discrete variables: 120 (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],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[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],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.groundColor[3],world.groundColor[2],world.groundColor[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 (1900): * Single equations (assignments): 1893 * 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.006842/4.339, allocations: 1.286 MB / 1.247 GB, free: 76.76 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003623/4.342, allocations: 1.076 MB / 1.248 GB, free: 75.67 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04397/4.386, allocations: 14.59 MB / 1.262 GB, free: 63.84 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001123/4.387, allocations: 72 kB / 1.263 GB, free: 63.77 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.746e-05/4.387, allocations: 19 kB / 1.263 GB, free: 63.76 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001861/4.387, allocations: 32.81 kB / 1.263 GB, free: 63.76 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.103/4.49, allocations: 32.41 MB / 1.294 GB, free: 37.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.895e-05/4.49, allocations: 12 kB / 1.294 GB, free: 37.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01389/4.504, allocations: 1.279 MB / 1.296 GB, free: 36.63 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01324/4.517, allocations: 2.83 MB / 1.298 GB, free: 34.64 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001889/4.519, allocations: 127.4 kB / 1.298 GB, free: 34.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04178/4.561, allocations: 21.08 MB / 1.319 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.596e-05/4.561, allocations: 19.89 kB / 1.319 GB, free: 15.62 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4995/5.061, allocations: 26.08 MB / 1.344 GB, free: 111.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009761/5.07, allocations: 2.186 MB / 1.347 GB, free: 111 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005326/5.076, allocations: 125.3 kB / 1.347 GB, free: 111 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01233/5.088, allocations: 449.2 kB / 1.347 GB, free: 111 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002761/5.091, allocations: 411.8 kB / 1.348 GB, free: 111 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001844/5.093, allocations: 171.3 kB / 1.348 GB, free: 111 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.02221/5.115, allocations: 7.658 MB / 1.355 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.073e-06/5.115, allocations: 0 / 1.355 GB, free: 110.6 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.02205/5.137, allocations: 3.114 MB / 1.358 GB, free: 110.6 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (553): * Single equations (assignments): 546 * 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.002614/5.14, allocations: 303.3 kB / 1.359 GB, free: 110.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04058/5.18, allocations: 16.59 MB / 1.375 GB, free: 109.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.061e-05/5.181, allocations: 2.938 kB / 1.375 GB, free: 109.9 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0205/5.201, allocations: 7.013 MB / 1.382 GB, free: 108.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01311/5.214, allocations: 1.344 MB / 1.383 GB, free: 107.7 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08377/5.298, allocations: 27.13 MB / 1.409 GB, free: 97.71 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02489/5.323, allocations: 8.896 MB / 1.418 GB, free: 93.62 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007399/5.331, allocations: 0.8397 MB / 1.419 GB, free: 92.83 MB / 0.5573 GB Notification: Performance of SimCode: time 1.383e-06/5.331, allocations: 1.859 kB / 1.419 GB, free: 92.83 MB / 0.5573 GB Notification: Performance of Templates: time 1.642/6.972, allocations: 373.6 MB / 1.784 GB, free: 162.5 MB / 0.6198 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Torque2/Torque2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Torque2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches