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.001902/0.001902, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.002353/0.002353, allocations: 165.6 kB / 24.28 MB, free: 152 kB / 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 1.597/1.597, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.283e-06/1.283e-06, allocations: 0 / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.605e-05/2.733e-05, allocations: 6.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01834/0.01836, allocations: 12.79 MB / 285.1 MB, free: 4.969 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.02863, allocations: 4.586 MB / 289.7 MB, free: 380 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00177/0.0304, allocations: 99.5 kB / 289.8 MB, free: 280 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1196/0.15, allocations: 4.362 MB / 294.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005284/0.1553, allocations: 2.168 MB / 296.3 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001763/0.157, allocations: 0.9183 MB / 297.3 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006082/0.1631, allocations: 5.195 MB / 302.4 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0041/0.1672, allocations: 4.295 MB / 306.7 MB, free: 10.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003237/0.1704, allocations: 2.923 MB / 309.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003177/0.1736, allocations: 2.84 MB / 312.5 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001124/0.1747, allocations: 457.9 kB / 313 MB, free: 6.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002298/0.177, allocations: 1.273 MB / 314.2 MB, free: 5.68 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001525/0.1786, allocations: 2.468 MB / 316.7 MB, free: 3.293 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001613/0.1802, allocations: 1.621 MB / 318.3 MB, free: 1.746 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0107/0.1909, allocations: 8.841 MB / 327.2 MB, free: 9.242 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1909, allocations: 4 kB / 327.2 MB, free: 9.238 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1909, allocations: 0 / 327.2 MB, free: 9.238 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002075/0.1911, allocations: 0 / 327.2 MB, free: 9.238 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.03326/0.2244, allocations: 8.257 MB / 335.4 MB, free: 1.02 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.2244, allocations: 16.03 kB / 335.4 MB, free: 1.004 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01995/0.2443, allocations: 3.156 MB / 338.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00916/0.2535, allocations: 2.912 MB / 341.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000337/0.2538, allocations: 300.5 kB / 341.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001652/0.2555, allocations: 417.3 kB / 342.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02582/0.2813, allocations: 8.492 MB / 350.7 MB, free: 1.156 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001705/0.2815, allocations: 43.2 kB / 350.7 MB, free: 1.137 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008685/0.2824, allocations: 195.3 kB / 350.9 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005083/0.2874, allocations: 2.197 MB / 353.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02152/0.309, allocations: 5.274 MB / 358.4 MB, free: 9.609 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0799/0.3889, allocations: 53.81 MB / 412.2 MB, free: 2.613 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02337/0.4122, allocations: 3.373 MB / 415.6 MB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002812/0.415, allocations: 1.057 MB / 416.6 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008555/0.4159, allocations: 189 kB / 416.8 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.409e-05/0.416, allocations: 58.7 kB / 416.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=214): time 4.809e-06/0.416, allocations: 0 / 416.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=252): time 0.2168/0.6328, allocations: 22.14 MB / 439 MB, free: 111.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.177e-05/0.6329, allocations: 214.2 kB / 439.2 MB, free: 111 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006191/0.639, allocations: 4.798 MB / 444 MB, free: 110.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005916/0.6396, allocations: 70.11 kB / 444.1 MB, free: 110.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001902/0.6415, allocations: 3.971 MB / 448.1 MB, free: 108.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001231/0.6428, allocations: 1.097 MB / 449.2 MB, free: 107.6 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002437/0.6452, allocations: 2.01 MB / 451.2 MB, free: 106.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.398e-05/0.6453, allocations: 483.1 kB / 451.6 MB, free: 106.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002716/0.648, allocations: 1.285 MB / 452.9 MB, free: 106 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004716/0.6527, allocations: 7.33 MB / 460.3 MB, free: 97.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008903/0.6616, allocations: 9.606 MB / 469.9 MB, free: 88.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001145/0.6617, allocations: 39 kB / 469.9 MB, free: 88.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.01857/0.6803, allocations: 8.423 MB / 478.3 MB, free: 84.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.545e-05/0.6804, allocations: 64 kB / 478.4 MB, free: 84.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/0.6805, allocations: 136 kB / 478.5 MB, free: 84.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006343/0.6869, allocations: 1.665 MB / 480.2 MB, free: 83.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00646/0.6933, allocations: 1.848 MB / 482 MB, free: 81.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01254/0.7059, allocations: 10.01 MB / 492 MB, free: 71.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007172/0.713, allocations: 0.4994 MB / 492.5 MB, free: 70.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001375/0.7144, allocations: 0.5192 MB / 493.1 MB, free: 70.14 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.003029/0.7174, allocations: 0.825 MB / 493.9 MB, free: 69.3 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001345/0.7188, allocations: 473.4 kB / 494.3 MB, free: 68.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01111/0.7299, allocations: 4.52 MB / 498.9 MB, free: 64.29 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.267e-05/0.7299, allocations: 28 kB / 498.9 MB, free: 64.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.313e-05/0.73, allocations: 14.38 kB / 498.9 MB, free: 64.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.169e-05/0.73, allocations: 11.95 kB / 498.9 MB, free: 64.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02393/0.7539, allocations: 10.91 MB / 0.4979 GB, free: 53.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.737e-05/0.7539, allocations: 4 kB / 0.4979 GB, free: 53.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003053/0.757, allocations: 0.6474 MB / 0.4985 GB, free: 52.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005926/0.7629, allocations: 1.444 MB / 0.4999 GB, free: 51.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004747/0.7634, allocations: 151.8 kB / 0.5001 GB, free: 51.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.7746, allocations: 8.91 MB / 0.5088 GB, free: 41.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7746, allocations: 0 / 0.5088 GB, free: 41.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01287/0.7875, allocations: 5.887 MB / 0.5145 GB, free: 35.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/0.7889, allocations: 377.2 kB / 0.5149 GB, free: 35.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007615/0.7897, allocations: 55.92 kB / 0.5149 GB, free: 35.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003129/0.7928, allocations: 267.7 kB / 0.5152 GB, free: 35.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007538/0.7935, allocations: 265.5 kB / 0.5154 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000338/0.7939, allocations: 179.8 kB / 0.5156 GB, free: 34.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002893/0.7968, allocations: 2.042 MB / 0.5176 GB, free: 32.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.7968, allocations: 0 / 0.5176 GB, free: 32.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006803/0.8036, allocations: 1.511 MB / 0.5191 GB, free: 31.23 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.0006854/0.8043, allocations: 214.7 kB / 0.5193 GB, free: 31.01 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009296/0.8136, allocations: 5.519 MB / 0.5247 GB, free: 25.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.8136, allocations: 448 / 0.5247 GB, free: 25.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004035/0.8176, allocations: 2.428 MB / 0.527 GB, free: 22.97 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003038/0.8206, allocations: 0.5599 MB / 0.5276 GB, free: 22.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/0.8348, allocations: 9.864 MB / 0.5372 GB, free: 12.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002811/0.8376, allocations: 2.93 MB / 0.5401 GB, free: 9.551 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004464/0.8421, allocations: 1.962 MB / 0.542 GB, free: 7.582 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/0.8441, allocations: 0.6365 MB / 0.5426 GB, free: 6.945 MB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.8441, allocations: 0 / 0.5426 GB, free: 6.945 MB / 378.7 MB Notification: Performance of Templates: time 0.2305/1.075, allocations: 75.52 MB / 0.6164 GB, free: 75 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","/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[2502]=1.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.817309882026166]