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.001385/0.001385, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001487/0.001487, allocations: 161.7 kB / 24.27 MB, free: 172 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.48/1.48, allocations: 177.1 MB / 204.6 MB, free: 5.605 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.794e-06/1.794e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.017e-05/3.196e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01689/0.01692, allocations: 11.54 MB / 283.9 MB, free: 6.242 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.02784, allocations: 4.474 MB / 288.3 MB, free: 1.754 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.03006, allocations: 99.5 kB / 288.4 MB, free: 1.656 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.1508/0.1808, allocations: 4.224 MB / 292.7 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006687/0.1875, allocations: 2.169 MB / 294.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002568/0.1901, allocations: 0.9082 MB / 295.7 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0084/0.1985, allocations: 5.19 MB / 300.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005939/0.2044, allocations: 4.295 MB / 305.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004997/0.2094, allocations: 2.9 MB / 308.1 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003954/0.2134, allocations: 2.702 MB / 310.8 MB, free: 8.355 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009821/0.2144, allocations: 459.9 kB / 311.3 MB, free: 8.355 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.2167, allocations: 1.29 MB / 312.6 MB, free: 7.344 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001665/0.2183, allocations: 2.456 MB / 315 MB, free: 4.973 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001944/0.2203, allocations: 1.614 MB / 316.6 MB, free: 3.434 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01266/0.2329, allocations: 8.835 MB / 325.5 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.2329, allocations: 0 / 325.5 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2329, allocations: 0 / 325.5 MB, free: 10.94 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003474/0.2333, allocations: 0 / 325.5 MB, free: 10.94 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.03203/0.2653, allocations: 7.346 MB / 332.8 MB, free: 3.641 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.2654, allocations: 12.03 kB / 332.8 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0175/0.2829, allocations: 3.239 MB / 336.1 MB, free: 432 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008409/0.2913, allocations: 3.095 MB / 339.2 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003193/0.2916, allocations: 299.8 kB / 339.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001553/0.2931, allocations: 414.6 kB / 339.9 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02986/0.323, allocations: 13.52 MB / 353.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001384/0.3231, allocations: 52.53 kB / 353.4 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006398/0.3238, allocations: 201.6 kB / 353.6 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005109/0.3289, allocations: 2.203 MB / 355.8 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02959/0.3585, allocations: 12.86 MB / 368.7 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07553/0.434, allocations: 45.25 MB / 413.9 MB, free: 1.699 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02694/0.461, allocations: 6.165 MB / 420.1 MB, free: 11.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006012/0.467, allocations: 3.726 MB / 423.8 MB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009119/0.4679, allocations: 201.1 kB / 424 MB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.47e-05/0.468, allocations: 59.81 kB / 424.1 MB, free: 7.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=214): time 5.831e-06/0.468, allocations: 0 / 424.1 MB, free: 7.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=252): time 0.231/0.6989, allocations: 37.65 MB / 461.7 MB, free: 105.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.203e-05/0.699, allocations: 213.6 kB / 461.9 MB, free: 105.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004398/0.7034, allocations: 4.25 MB / 466.2 MB, free: 101.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006359/0.704, allocations: 73.7 kB / 466.3 MB, free: 101.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/0.7054, allocations: 3.543 MB / 469.8 MB, free: 98.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00104/0.7065, allocations: 0.9847 MB / 470.8 MB, free: 97.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001966/0.7084, allocations: 1.642 MB / 472.4 MB, free: 95.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.752e-05/0.7085, allocations: 312.3 kB / 472.7 MB, free: 95.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004622/0.7131, allocations: 4.374 MB / 477.1 MB, free: 90.99 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006111/0.7192, allocations: 8.265 MB / 485.4 MB, free: 80.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01261/0.7318, allocations: 13.39 MB / 498.8 MB, free: 65.91 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.393e-05/0.7319, allocations: 40 kB / 498.8 MB, free: 65.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02171/0.7536, allocations: 15.2 MB / 0.502 GB, free: 50.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.297e-05/0.7537, allocations: 64 kB / 0.502 GB, free: 50.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001004/0.7538, allocations: 132 kB / 0.5022 GB, free: 50.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007299/0.7611, allocations: 2.968 MB / 0.5051 GB, free: 47.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005994/0.7671, allocations: 1.852 MB / 0.5069 GB, free: 45.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01712/0.7842, allocations: 16.65 MB / 0.5231 GB, free: 28.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007186/0.7914, allocations: 0.5032 MB / 0.5236 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001123/0.7925, allocations: 0.5192 MB / 0.5241 GB, free: 27.69 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 609 * 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 (823): * Single equations (assignments): 817 * 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,15,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.00372/0.7962, allocations: 2.394 MB / 0.5265 GB, free: 25.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001326/0.7976, allocations: 465.5 kB / 0.5269 GB, free: 24.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01374/0.8113, allocations: 9.715 MB / 0.5364 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-05/0.8113, allocations: 28 kB / 0.5364 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/0.8113, allocations: 15.94 kB / 0.5364 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-05/0.8114, allocations: 13.08 kB / 0.5364 GB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02528/0.8367, allocations: 16.04 MB / 0.5521 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.166e-05/0.8367, allocations: 3.719 kB / 0.5521 GB, free: 15.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003599/0.8403, allocations: 0.6591 MB / 0.5528 GB, free: 14.35 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008964/0.8492, allocations: 2.741 MB / 0.5554 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008435/0.8501, allocations: 158.7 kB / 0.5556 GB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1571/1.007, allocations: 15.14 MB / 0.5704 GB, free: 114.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.007, allocations: 4.969 kB / 0.5704 GB, free: 114.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02032/1.027, allocations: 15.38 MB / 0.5854 GB, free: 109.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/1.029, allocations: 377.2 kB / 0.5858 GB, free: 109.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000717/1.029, allocations: 52.97 kB / 0.5858 GB, free: 109.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003048/1.032, allocations: 277.8 kB / 0.5861 GB, free: 109.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008304/1.033, allocations: 272.4 kB / 0.5863 GB, free: 109.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003374/1.033, allocations: 177.9 kB / 0.5865 GB, free: 109.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003022/1.036, allocations: 2.505 MB / 0.5889 GB, free: 108.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/1.036, allocations: 0 / 0.5889 GB, free: 108.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006382/1.043, allocations: 1.506 MB / 0.5904 GB, free: 108.3 MB / 394.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%), (5,17,88.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.0006454/1.044, allocations: 221.5 kB / 0.5906 GB, free: 108.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01277/1.056, allocations: 10.3 MB / 0.6007 GB, free: 100.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.056, allocations: 0 / 0.6007 GB, free: 100.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005377/1.062, allocations: 4.482 MB / 0.6051 GB, free: 96.84 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002906/1.065, allocations: 0.5654 MB / 0.6056 GB, free: 96.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0165/1.081, allocations: 13.66 MB / 0.619 GB, free: 82.96 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002972/1.084, allocations: 3.218 MB / 0.6221 GB, free: 79.72 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004811/1.089, allocations: 2.31 MB / 0.6244 GB, free: 77.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001911/1.091, allocations: 0.6286 MB / 0.625 GB, free: 76.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.983e-06/1.091, allocations: 0 / 0.625 GB, free: 76.77 MB / 394.7 MB Notification: Performance of Templates: time 0.09909/1.19, allocations: 75.2 MB / 0.6984 GB, free: 2.078 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=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[2502]=1.000000 " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.92447635892313]