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.001091/0.001091, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001187/0.001187, allocations: 161 kB / 24.56 MB, free: 16 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 0.9609/0.9609, allocations: 177.1 MB / 205 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.443e-06/1.443e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.181e-05/2.325e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.0104/0.01043, allocations: 12.88 MB / 285.9 MB, free: 4.605 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1249/0.1353, allocations: 4.607 MB / 290.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002073/0.1374, allocations: 95.62 kB / 290.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005603/0.143, allocations: 4.374 MB / 294.9 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00483/0.1478, allocations: 2.171 MB / 297.1 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001615/0.1494, allocations: 0.9127 MB / 298 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007232/0.1566, allocations: 5.198 MB / 303.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005809/0.1624, allocations: 4.298 MB / 307.5 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00477/0.1672, allocations: 2.923 MB / 310.4 MB, free: 8.355 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003507/0.1707, allocations: 2.834 MB / 313.3 MB, free: 7.039 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001054/0.1718, allocations: 459 kB / 313.7 MB, free: 6.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002096/0.1739, allocations: 1.276 MB / 315 MB, free: 5.445 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001812/0.1757, allocations: 2.466 MB / 317.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002095/0.1778, allocations: 1.62 MB / 319.1 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006962/0.1847, allocations: 5.569 MB / 324.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.713e-06/0.1848, allocations: 0 / 324.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.562e-06/0.1848, allocations: 4 kB / 324.7 MB, free: 12.28 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002295/0.185, allocations: 0 / 324.7 MB, free: 12.28 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.02114/0.2061, allocations: 7.737 MB / 332.4 MB, free: 4.578 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.2062, allocations: 11.31 kB / 332.4 MB, free: 4.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01136/0.2175, allocations: 3.161 MB / 335.6 MB, free: 1.441 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005159/0.2227, allocations: 2.867 MB / 338.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/0.2229, allocations: 305.8 kB / 338.7 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007791/0.2237, allocations: 416.9 kB / 339.1 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01382/0.2375, allocations: 7.874 MB / 347 MB, free: 5.375 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001322/0.2376, allocations: 47.36 kB / 347.1 MB, free: 5.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004568/0.2381, allocations: 194 kB / 347.3 MB, free: 5.188 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002552/0.2406, allocations: 2.199 MB / 349.5 MB, free: 2.996 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01303/0.2537, allocations: 4.764 MB / 354.2 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04532/0.299, allocations: 49.73 MB / 403.9 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01159/0.3106, allocations: 3.228 MB / 407.2 MB, free: 8.055 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001902/0.3125, allocations: 1.021 MB / 408.2 MB, free: 7.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004625/0.3129, allocations: 201 kB / 408.4 MB, free: 6.824 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.313, allocations: 54.7 kB / 408.4 MB, free: 6.762 MB / 362.7 MB Notification: Performance of pre-optimization done (n=214): time 4.207e-06/0.313, allocations: 0 / 408.4 MB, free: 6.762 MB / 362.7 MB Notification: Performance of matching and sorting (n=252): time 0.05381/0.3668, allocations: 21.57 MB / 430 MB, free: 1.117 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.3669, allocations: 213.8 kB / 430.2 MB, free: 0.8633 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1279/0.4948, allocations: 3.8 MB / 434 MB, free: 112.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008711/0.4957, allocations: 72.3 kB / 434.1 MB, free: 112.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002131/0.4978, allocations: 3.75 MB / 437.8 MB, free: 110.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001443/0.4992, allocations: 1.035 MB / 438.9 MB, free: 110.4 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003014/0.5023, allocations: 1.742 MB / 440.6 MB, free: 110.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.724e-05/0.5023, allocations: 481.9 kB / 441.1 MB, free: 109.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002466/0.5048, allocations: 1.155 MB / 442.2 MB, free: 109.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004052/0.5088, allocations: 6.962 MB / 449.2 MB, free: 102.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007555/0.5164, allocations: 8.952 MB / 458.2 MB, free: 94.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001338/0.5165, allocations: 39.38 kB / 458.2 MB, free: 94.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.01352/0.53, allocations: 8.136 MB / 466.3 MB, free: 92.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.773e-05/0.5301, allocations: 63.27 kB / 466.4 MB, free: 92.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.5302, allocations: 137.8 kB / 466.5 MB, free: 92.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003643/0.5339, allocations: 1.623 MB / 468.2 MB, free: 92.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004097/0.538, allocations: 1.853 MB / 470 MB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007604/0.5456, allocations: 9.571 MB / 479.6 MB, free: 83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0046/0.5502, allocations: 0.5097 MB / 480.1 MB, free: 82.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008366/0.551, allocations: 0.5177 MB / 480.6 MB, free: 82.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.001826/0.5528, allocations: 0.7188 MB / 481.3 MB, free: 81.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008365/0.5537, allocations: 475.9 kB / 481.8 MB, free: 80.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00607/0.5597, allocations: 4.368 MB / 486.2 MB, free: 77.44 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.286e-05/0.5598, allocations: 28 kB / 486.2 MB, free: 77.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.006e-05/0.5598, allocations: 12 kB / 486.2 MB, free: 77.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.5598, allocations: 11.95 kB / 486.2 MB, free: 77.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0128/0.5726, allocations: 9.647 MB / 495.9 MB, free: 67.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.5726, allocations: 4 kB / 495.9 MB, free: 67.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.5741, allocations: 0.6475 MB / 496.5 MB, free: 67.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003058/0.5772, allocations: 1.419 MB / 497.9 MB, free: 65.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002082/0.5774, allocations: 155.8 kB / 498.1 MB, free: 65.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006472/0.5838, allocations: 8.49 MB / 0.4947 GB, free: 56.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.5838, allocations: 11.83 kB / 0.4947 GB, free: 56.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00784/0.5917, allocations: 5.535 MB / 0.5001 GB, free: 51.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008408/0.5925, allocations: 377.3 kB / 0.5005 GB, free: 50.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003935/0.5929, allocations: 51.62 kB / 0.5005 GB, free: 50.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.5944, allocations: 263.7 kB / 0.5008 GB, free: 50.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004476/0.5949, allocations: 277.4 kB / 0.501 GB, free: 50.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000218/0.5951, allocations: 179.8 kB / 0.5012 GB, free: 49.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001871/0.597, allocations: 1.698 MB / 0.5029 GB, free: 48.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.597, allocations: 0 / 0.5029 GB, free: 48.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004225/0.6012, allocations: 1.518 MB / 0.5043 GB, free: 46.78 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.0004586/0.6017, allocations: 210.7 kB / 0.5045 GB, free: 46.57 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006281/0.6079, allocations: 5.049 MB / 0.5095 GB, free: 41.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6079, allocations: 0 / 0.5095 GB, free: 41.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002399/0.6103, allocations: 2.274 MB / 0.5117 GB, free: 39.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001883/0.6122, allocations: 0.5668 MB / 0.5123 GB, free: 38.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.6237, allocations: 9.731 MB / 0.5218 GB, free: 28.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001078/0.6247, allocations: 1.485 MB / 0.5232 GB, free: 27.31 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003111/0.6278, allocations: 1.97 MB / 0.5251 GB, free: 25.33 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/0.6293, allocations: 0.6287 MB / 0.5257 GB, free: 24.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.623e-06/0.6293, allocations: 0 / 0.5257 GB, free: 24.7 MB / 378.7 MB Notification: Performance of Templates: time 0.189/0.8183, allocations: 76.45 MB / 0.6004 GB, free: 95.43 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.961093530058861]