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.0008269/0.0008269, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003663/0.003663, allocations: 160.6 kB / 24.7 MB, free: 9.43 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.8279/0.8279, allocations: 177.1 MB / 205 MB, free: 5.75 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 2.034e-06/2.034e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.419e-05/2.622e-05, allocations: 2.281 kB / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.009016/0.009042, allocations: 11.55 MB / 337.4 MB, free: 3.812 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00825/0.01729, allocations: 4.478 MB / 341.9 MB, free: 15.32 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.01913, allocations: 103.5 kB / 342 MB, free: 15.21 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004037/0.02316, allocations: 4.162 MB / 346.1 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004083/0.02725, allocations: 2.169 MB / 348.3 MB, free: 8.859 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001443/0.02869, allocations: 0.8926 MB / 349.2 MB, free: 7.965 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004546/0.03324, allocations: 5.199 MB / 354.4 MB, free: 2.754 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003475/0.03671, allocations: 4.179 MB / 358.6 MB, free: 14.51 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002861/0.03957, allocations: 2.9 MB / 361.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002205/0.04178, allocations: 2.728 MB / 364.2 MB, free: 8.871 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004131/0.04219, allocations: 456 kB / 364.6 MB, free: 8.426 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001622/0.04381, allocations: 1.276 MB / 365.9 MB, free: 7.148 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001256/0.04507, allocations: 2.451 MB / 368.4 MB, free: 4.691 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.04628, allocations: 1.612 MB / 370 MB, free: 3.074 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006346/0.05263, allocations: 8.817 MB / 378.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.81e-06/0.05263, allocations: 0 / 378.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.05263, allocations: 0 / 378.8 MB, free: 10.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001222/0.05275, allocations: 0 / 378.8 MB, free: 10.23 MB / 346.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.0162/0.06896, allocations: 7.338 MB / 386.1 MB, free: 2.828 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.069, allocations: 12.03 kB / 386.2 MB, free: 2.816 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00786/0.07686, allocations: 2.653 MB / 388.8 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004324/0.08118, allocations: 3.073 MB / 391.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001389/0.08132, allocations: 295.8 kB / 392.2 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005252/0.08185, allocations: 415.8 kB / 392.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01514/0.09699, allocations: 13.5 MB / 406.1 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-05/0.09707, allocations: 43.58 kB / 406.1 MB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003834/0.09745, allocations: 199.9 kB / 406.3 MB, free: 13.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002602/0.1001, allocations: 2.19 MB / 408.5 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.1158, allocations: 12.83 MB / 421.3 MB, free: 14.79 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1927/0.3084, allocations: 46.19 MB / 467.5 MB, free: 84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01237/0.3208, allocations: 6.14 MB / 473.7 MB, free: 83.28 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002737/0.3235, allocations: 3.716 MB / 477.4 MB, free: 82.06 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000403/0.3239, allocations: 181.4 kB / 477.5 MB, free: 82.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.324, allocations: 55.31 kB / 477.6 MB, free: 81.99 MB / 410.7 MB Notification: Performance of pre-optimization done (n=214): time 5.451e-06/0.324, allocations: 2.5 kB / 477.6 MB, free: 81.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.05014/0.3741, allocations: 37.21 MB / 0.5027 GB, free: 48.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.3742, allocations: 202.9 kB / 0.5029 GB, free: 48.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003265/0.3774, allocations: 4.283 MB / 0.5071 GB, free: 44.19 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002252/0.3777, allocations: 69.7 kB / 0.5072 GB, free: 44.11 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009526/0.3786, allocations: 3.564 MB / 0.5107 GB, free: 40.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005396/0.3792, allocations: 0.9871 MB / 0.5116 GB, free: 39.85 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001302/0.3805, allocations: 1.647 MB / 0.5132 GB, free: 38.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.498e-05/0.3805, allocations: 305.1 kB / 0.5135 GB, free: 37.89 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003233/0.3837, allocations: 4.355 MB / 0.5178 GB, free: 33.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004337/0.3881, allocations: 8.298 MB / 0.5259 GB, free: 23.37 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008616/0.3967, allocations: 13.44 MB / 0.539 GB, free: 8.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.111e-05/0.3967, allocations: 40 kB / 0.539 GB, free: 8.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.01446/0.4112, allocations: 14.84 MB / 0.5535 GB, free: 9.195 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.122e-05/0.4112, allocations: 64.97 kB / 0.5536 GB, free: 9.133 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001125/0.4113, allocations: 136 kB / 0.5537 GB, free: 9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00366/0.415, allocations: 2.448 MB / 0.5561 GB, free: 6.543 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003247/0.4183, allocations: 1.861 MB / 0.5579 GB, free: 4.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0137/0.432, allocations: 16.48 MB / 0.574 GB, free: 3.898 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003849/0.4358, allocations: 0.5149 MB / 0.5745 GB, free: 3.383 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005304/0.4363, allocations: 0.5154 MB / 0.575 GB, free: 2.867 MB / 442.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.003269/0.4396, allocations: 2.401 MB / 0.5774 GB, free: 468 kB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005951/0.4402, allocations: 389.4 kB / 0.5778 GB, free: 76 kB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009797/0.45, allocations: 9.696 MB / 0.5872 GB, free: 6.352 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/0.45, allocations: 27.91 kB / 0.5873 GB, free: 6.328 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-05/0.45, allocations: 12 kB / 0.5873 GB, free: 6.316 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.4501, allocations: 11.95 kB / 0.5873 GB, free: 6.305 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01819/0.4683, allocations: 16.65 MB / 0.6035 GB, free: 5.668 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.4683, allocations: 0 / 0.6035 GB, free: 5.668 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00152/0.4698, allocations: 0.6547 MB / 0.6042 GB, free: 5.016 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003342/0.4731, allocations: 2.238 MB / 0.6064 GB, free: 2.77 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002429/0.4734, allocations: 159.8 kB / 0.6065 GB, free: 2.613 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01245/0.4858, allocations: 15.15 MB / 0.6213 GB, free: 3.191 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4858, allocations: 3.75 kB / 0.6213 GB, free: 3.191 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1631/0.6489, allocations: 15.25 MB / 0.6362 GB, free: 172.2 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008505/0.6497, allocations: 393.1 kB / 0.6366 GB, free: 172.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003771/0.6501, allocations: 47.19 kB / 0.6366 GB, free: 172.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.6516, allocations: 272.9 kB / 0.6369 GB, free: 172.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004822/0.6521, allocations: 272.9 kB / 0.6371 GB, free: 172.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002322/0.6523, allocations: 172.3 kB / 0.6373 GB, free: 172.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002328/0.6547, allocations: 2.519 MB / 0.6398 GB, free: 171.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 2e-07/0.6547, allocations: 1.75 kB / 0.6398 GB, free: 171.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0039/0.6586, allocations: 1.507 MB / 0.6412 GB, free: 171.1 MB / 490.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.0004368/0.659, allocations: 218.2 kB / 0.6414 GB, free: 170.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007984/0.667, allocations: 10.14 MB / 0.6513 GB, free: 163.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.667, allocations: 0 / 0.6513 GB, free: 163.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003249/0.6702, allocations: 4.441 MB / 0.6557 GB, free: 160 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/0.672, allocations: 458.2 kB / 0.6561 GB, free: 159.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.6839, allocations: 13.75 MB / 0.6695 GB, free: 147.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001995/0.6859, allocations: 3.214 MB / 0.6727 GB, free: 143.8 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001326/0.6872, allocations: 0.6717 MB / 0.6733 GB, free: 143.1 MB / 490.7 MB Notification: Performance of SimCode: time 9.92e-07/0.6872, allocations: 7.391 kB / 0.6733 GB, free: 143.1 MB / 490.7 MB Notification: Performance of Templates: time 0.232/0.9192, allocations: 148 MB / 0.8178 GB, free: 166 MB / 490.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.diff",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[13603]=1.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.898288593627512]