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.002113/0.002113, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.016/2.016, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00109/0.00109, allocations: 96.92 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2985/0.2985, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.222e-05/2.231e-05, allocations: 4.219 kB / 418.2 MB, free: 41.05 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4011/0.4011, allocations: 58.86 MB / 477.1 MB, free: 5.254 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2977/0.6989, allocations: 110.8 MB / 0.5741 GB, free: 4.469 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002936/0.6992, allocations: 83.95 kB / 0.5742 GB, free: 4.387 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.236/1.935, allocations: 235.4 MB / 0.8041 GB, free: 2.586 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.405e-06/1.935, allocations: 0 / 0.8041 GB, free: 2.586 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0008718/1.936, allocations: 259.9 kB / 0.8043 GB, free: 2.332 MB / 475.1 MB 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.05537/1.992, allocations: 12.36 MB / 0.8164 GB, free: 5.871 MB / 491.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/1.992, allocations: 8.031 kB / 0.8164 GB, free: 5.863 MB / 491.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.4804/2.472, allocations: 12.81 MB / 0.8289 GB, free: 45.8 MB / 491.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05264/2.525, allocations: 13.29 MB / 0.8419 GB, free: 45.2 MB / 491.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009896/2.526, allocations: 418.6 kB / 0.8423 GB, free: 45.2 MB / 491.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007535/2.533, allocations: 0.7529 MB / 0.843 GB, free: 45.19 MB / 491.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04611/2.58, allocations: 17.54 MB / 0.8601 GB, free: 45.13 MB / 491.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06992/2.65, allocations: 26.04 MB / 0.8856 GB, free: 39.11 MB / 491.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009309/2.651, allocations: 145 kB / 0.8857 GB, free: 39.1 MB / 491.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005869/2.657, allocations: 66.53 kB / 0.8858 GB, free: 39.1 MB / 491.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006527/2.663, allocations: 2.861 MB / 0.8886 GB, free: 39.07 MB / 491.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2253/2.888, allocations: 122 MB / 1.008 GB, free: 13.64 MB / 0.5421 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02349/2.912, allocations: 10.78 MB / 1.018 GB, free: 3.695 MB / 0.5421 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4285/3.341, allocations: 7.997 MB / 1.026 GB, free: 103.4 MB / 0.5421 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002467/3.343, allocations: 1.094 MB / 1.027 GB, free: 102.6 MB / 0.5421 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001105/3.343, allocations: 99.95 kB / 1.027 GB, free: 102.5 MB / 0.5421 GB Notification: Performance of pre-optimization done (n=548): time 1.053e-05/3.343, allocations: 0 / 1.027 GB, free: 102.5 MB / 0.5421 GB Notification: Performance of matching and sorting (n=636): time 0.2202/3.563, allocations: 61.5 MB / 1.087 GB, free: 90.41 MB / 0.5421 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000158/3.564, allocations: 375.8 kB / 1.088 GB, free: 90.04 MB / 0.5421 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02147/3.585, allocations: 8.041 MB / 1.096 GB, free: 89.38 MB / 0.5421 GB Notification: Performance of collectPreVariables (initialization): time 0.001947/3.587, allocations: 32.36 kB / 1.096 GB, free: 89.35 MB / 0.5421 GB Notification: Performance of collectInitialEqns (initialization): time 0.00723/3.594, allocations: 8.395 MB / 1.104 GB, free: 84.59 MB / 0.5421 GB Notification: Performance of collectInitialBindings (initialization): time 0.004134/3.599, allocations: 2.279 MB / 1.106 GB, free: 83.21 MB / 0.5421 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003182/3.602, allocations: 0 / 1.106 GB, free: 83.21 MB / 0.5421 GB Notification: Performance of setup shared object (initialization): time 0.001947/3.604, allocations: 0.9889 MB / 1.107 GB, free: 82.86 MB / 0.5421 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01697/3.621, allocations: 6.447 MB / 1.113 GB, free: 82.82 MB / 0.5421 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02252/3.643, allocations: 15.12 MB / 1.128 GB, free: 69.3 MB / 0.5421 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02214/3.666, allocations: 9.744 MB / 1.138 GB, free: 66.2 MB / 0.5421 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004268/3.666, allocations: 90.75 kB / 1.138 GB, free: 66.2 MB / 0.5421 GB Notification: Performance of matching and sorting (n=2084) (initialization): time 0.06466/3.731, allocations: 22.49 MB / 1.16 GB, free: 54.85 MB / 0.5421 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002208/3.731, allocations: 137 kB / 1.16 GB, free: 54.71 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004729/3.732, allocations: 308 kB / 1.16 GB, free: 54.41 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01378/3.745, allocations: 3.324 MB / 1.163 GB, free: 51.94 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02633/3.772, allocations: 3.883 MB / 1.167 GB, free: 48.66 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04215/3.814, allocations: 21.38 MB / 1.188 GB, free: 29.6 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01932/3.833, allocations: 0.6444 MB / 1.189 GB, free: 29.12 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004318/3.838, allocations: 0.917 MB / 1.189 GB, free: 28.23 MB / 0.5421 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1400 * 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 (1964): * Single equations (assignments): 1957 * 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.007039/3.845, allocations: 0.9171 MB / 1.19 GB, free: 27.32 MB / 0.5421 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002848/3.848, allocations: 0.9063 MB / 1.191 GB, free: 26.4 MB / 0.5421 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03937/3.887, allocations: 13.79 MB / 1.205 GB, free: 15.32 MB / 0.5421 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001316/3.887, allocations: 68.62 kB / 1.205 GB, free: 15.25 MB / 0.5421 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.199e-05/3.887, allocations: 16 kB / 1.205 GB, free: 15.24 MB / 0.5421 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001592/3.887, allocations: 36.19 kB / 1.205 GB, free: 15.23 MB / 0.5421 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5402/4.428, allocations: 29.14 MB / 1.233 GB, free: 80.92 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.498e-05/4.428, allocations: 9.938 kB / 1.233 GB, free: 80.92 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01321/4.441, allocations: 1.222 MB / 1.234 GB, free: 80.92 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01373/4.455, allocations: 2.813 MB / 1.237 GB, free: 80.88 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001818/4.457, allocations: 30.17 kB / 1.237 GB, free: 80.88 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04033/4.497, allocations: 19.79 MB / 1.257 GB, free: 75.8 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.354e-05/4.497, allocations: 8.969 kB / 1.257 GB, free: 75.8 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0532/4.55, allocations: 23.37 MB / 1.279 GB, free: 72.77 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008425/4.559, allocations: 1.922 MB / 1.281 GB, free: 72.68 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003884/4.563, allocations: 18.55 kB / 1.281 GB, free: 72.67 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01106/4.574, allocations: 350.6 kB / 1.282 GB, free: 72.67 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002745/4.577, allocations: 389.7 kB / 1.282 GB, free: 72.66 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002099/4.579, allocations: 166 kB / 1.282 GB, free: 72.66 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.01543/4.594, allocations: 5.437 MB / 1.287 GB, free: 72.41 MB / 0.5421 GB Notification: Performance of sort global known variables: time 8.72e-07/4.594, allocations: 0 / 1.287 GB, free: 72.41 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.02268/4.617, allocations: 2.679 MB / 1.29 GB, free: 72.41 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 16 (Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,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 (547): * Single equations (assignments): 540 * 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.002413/4.62, allocations: 203 kB / 1.29 GB, free: 72.32 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.03977/4.659, allocations: 16.39 MB / 1.306 GB, free: 70.14 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 1.565e-05/4.659, allocations: 4 kB / 1.306 GB, free: 70.13 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.01858/4.678, allocations: 6.828 MB / 1.313 GB, free: 67.5 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01025/4.688, allocations: 0.9721 MB / 1.314 GB, free: 67.12 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07487/4.763, allocations: 26.47 MB / 1.34 GB, free: 57.51 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0229/4.786, allocations: 8.914 MB / 1.348 GB, free: 53 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007091/4.793, allocations: 0.7677 MB / 1.349 GB, free: 52.28 MB / 0.5421 GB Notification: Performance of SimCode: time 1.793e-06/4.793, allocations: 2.953 kB / 1.349 GB, free: 52.28 MB / 0.5421 GB Notification: Performance of Templates: time 1.576/6.369, allocations: 362.7 MB / 1.703 GB, free: 145.5 MB / 0.6202 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