Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009439/0.0009439, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 168.6 kB / 25 MB, free: 8.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9322/0.9322, allocations: 177.1 MB / 205.3 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.677e-05/2.835e-05, allocations: 2.312 kB / 273.1 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01516/0.01518, allocations: 12.83 MB / 285.9 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009743/0.02493, allocations: 4.591 MB / 290.5 MB, free: 348 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002235/0.02716, allocations: 99.5 kB / 290.6 MB, free: 248 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1194/0.1465, allocations: 4.362 MB / 295 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004368/0.1509, allocations: 2.169 MB / 297.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.1523, allocations: 0.9171 MB / 298 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004921/0.1572, allocations: 5.193 MB / 303.2 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003832/0.1611, allocations: 4.296 MB / 307.5 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004042/0.1651, allocations: 2.918 MB / 310.4 MB, free: 8.441 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003146/0.1683, allocations: 2.846 MB / 313.3 MB, free: 7.117 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001024/0.1693, allocations: 460.8 kB / 313.7 MB, free: 6.879 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001523/0.1708, allocations: 1.263 MB / 315 MB, free: 5.676 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001291/0.1721, allocations: 2.472 MB / 317.5 MB, free: 3.285 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001802/0.1739, allocations: 1.627 MB / 319.1 MB, free: 1.734 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005424/0.1793, allocations: 5.558 MB / 324.7 MB, free: 12.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1793, allocations: 0 / 324.7 MB, free: 12.52 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1793, allocations: 0 / 324.7 MB, free: 12.52 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001971/0.1795, allocations: 0 / 324.7 MB, free: 12.52 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.01635/0.1959, allocations: 7.746 MB / 332.4 MB, free: 4.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1959, allocations: 8.031 kB / 332.4 MB, free: 4.805 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008892/0.2048, allocations: 3.164 MB / 335.6 MB, free: 1.672 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00412/0.2089, allocations: 2.866 MB / 338.4 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.2091, allocations: 301.9 kB / 338.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005747/0.2097, allocations: 419.5 kB / 339.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01336/0.223, allocations: 7.876 MB / 347 MB, free: 5.609 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001055/0.2231, allocations: 49.31 kB / 347.1 MB, free: 5.582 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004414/0.2236, allocations: 196.8 kB / 347.3 MB, free: 5.426 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002452/0.226, allocations: 2.187 MB / 349.5 MB, free: 3.266 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0114/0.2374, allocations: 4.767 MB / 354.2 MB, free: 14.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03985/0.2773, allocations: 49.74 MB / 404 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/0.2893, allocations: 3.224 MB / 407.2 MB, free: 8.395 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001866/0.2912, allocations: 1.013 MB / 408.2 MB, free: 7.371 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004936/0.2917, allocations: 201.1 kB / 408.4 MB, free: 7.176 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.385e-05/0.2917, allocations: 58.7 kB / 408.4 MB, free: 7.109 MB / 362.7 MB Notification: Performance of pre-optimization done (n=214): time 4.869e-06/0.2917, allocations: 0 / 408.4 MB, free: 7.109 MB / 362.7 MB Notification: Performance of matching and sorting (n=252): time 0.05209/0.3438, allocations: 21.57 MB / 430 MB, free: 1.461 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.64e-05/0.3439, allocations: 209.9 kB / 430.2 MB, free: 1.211 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1164/0.4603, allocations: 3.798 MB / 434 MB, free: 118.5 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007928/0.4611, allocations: 72.5 kB / 434.1 MB, free: 118.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.4628, allocations: 3.748 MB / 437.8 MB, free: 117.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001039/0.4638, allocations: 1.036 MB / 438.9 MB, free: 116.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00236/0.4662, allocations: 1.742 MB / 440.6 MB, free: 116.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.098e-05/0.4662, allocations: 479.2 kB / 441.1 MB, free: 116 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002412/0.4686, allocations: 1.158 MB / 442.2 MB, free: 115.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003737/0.4724, allocations: 6.969 MB / 449.2 MB, free: 108.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006437/0.4788, allocations: 8.95 MB / 458.2 MB, free: 99.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001059/0.4789, allocations: 37.81 kB / 458.2 MB, free: 99.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.01191/0.4908, allocations: 8.135 MB / 466.3 MB, free: 97.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.216e-05/0.4909, allocations: 64.94 kB / 466.4 MB, free: 97.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001106/0.491, allocations: 139.5 kB / 466.5 MB, free: 97.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003528/0.4945, allocations: 1.615 MB / 468.1 MB, free: 97.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003434/0.498, allocations: 1.848 MB / 470 MB, free: 96.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007777/0.5058, allocations: 9.582 MB / 479.6 MB, free: 86.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004697/0.5104, allocations: 0.5133 MB / 480.1 MB, free: 86.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009117/0.5114, allocations: 0.5157 MB / 480.6 MB, free: 85.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.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 (826): * Single equations (assignments): 820 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002014/0.5134, allocations: 0.7157 MB / 481.3 MB, free: 85.25 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009423/0.5143, allocations: 476.6 kB / 481.8 MB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006393/0.5207, allocations: 4.359 MB / 486.1 MB, free: 80.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.826e-05/0.5207, allocations: 28 kB / 486.2 MB, free: 80.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/0.5208, allocations: 12 kB / 486.2 MB, free: 80.63 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.604e-05/0.5208, allocations: 11.95 kB / 486.2 MB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/0.5339, allocations: 9.656 MB / 495.9 MB, free: 70.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/0.5339, allocations: 4 kB / 495.9 MB, free: 70.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/0.5355, allocations: 0.6514 MB / 496.5 MB, free: 70.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003261/0.5388, allocations: 1.416 MB / 497.9 MB, free: 68.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002442/0.539, allocations: 155.5 kB / 498.1 MB, free: 68.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007108/0.5461, allocations: 8.502 MB / 0.4947 GB, free: 59.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.5461, allocations: 4 kB / 0.4947 GB, free: 59.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008317/0.5544, allocations: 5.538 MB / 0.5001 GB, free: 54.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009515/0.5554, allocations: 385.1 kB / 0.5005 GB, free: 53.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004518/0.5558, allocations: 48 kB / 0.5005 GB, free: 53.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/0.5574, allocations: 259.7 kB / 0.5008 GB, free: 53.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005482/0.558, allocations: 281.4 kB / 0.501 GB, free: 53.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002372/0.5582, allocations: 174.7 kB / 0.5012 GB, free: 53.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001861/0.5601, allocations: 1.698 MB / 0.5029 GB, free: 51.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.5601, allocations: 0 / 0.5029 GB, free: 51.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004791/0.5649, allocations: 1.508 MB / 0.5043 GB, free: 49.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (195): * Single equations (assignments): 189 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005002/0.5654, allocations: 215.4 kB / 0.5045 GB, free: 49.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00656/0.5719, allocations: 5.05 MB / 0.5095 GB, free: 44.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5719, allocations: 4.359 kB / 0.5095 GB, free: 44.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002483/0.5744, allocations: 2.292 MB / 0.5117 GB, free: 42.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/0.5764, allocations: 0.5662 MB / 0.5123 GB, free: 41.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.5883, allocations: 9.717 MB / 0.5218 GB, free: 31.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.5894, allocations: 1.481 MB / 0.5232 GB, free: 30.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003181/0.5926, allocations: 1.97 MB / 0.5251 GB, free: 28.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001319/0.5939, allocations: 0.6365 MB / 0.5258 GB, free: 27.87 MB / 378.7 MB Notification: Performance of SimCode: time 1.703e-06/0.5939, allocations: 0 / 0.5258 GB, free: 27.87 MB / 378.7 MB Notification: Performance of Templates: time 0.1858/0.7797, allocations: 76.43 MB / 0.6004 GB, free: 99.26 MB / 394.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Warning: Resultfile and Reference have different end time points! Reffile[2001]=0.400000 File[2502]=1.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.93400889984332]