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.0009415/0.0009415, allocations: 80.8 kB / 21.49 MB, free: 2.992 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.001116/0.001116, allocations: 168.8 kB / 24.91 MB, free: 9.191 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.9085/0.9085, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.272e-06/1.272e-06, allocations: 0 / 273.5 MB, free: 1.262 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.875e-05/2.002e-05, allocations: 2.312 kB / 273.5 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01204/0.01206, allocations: 12.53 MB / 286 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1221/0.1342, allocations: 4.748 MB / 290.8 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002363/0.1366, allocations: 101.8 kB / 290.9 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005417/0.142, allocations: 4.287 MB / 295.2 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004786/0.1468, allocations: 2.177 MB / 297.3 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.1482, allocations: 0.906 MB / 298.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005305/0.1536, allocations: 5.179 MB / 303.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00382/0.1574, allocations: 4.289 MB / 307.7 MB, free: 9.949 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004095/0.1615, allocations: 3.537 MB / 311.2 MB, free: 8.035 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.1642, allocations: 2.529 MB / 313.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006651/0.1649, allocations: 440 kB / 314.2 MB, free: 6.066 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001631/0.1665, allocations: 1.288 MB / 315.5 MB, free: 4.836 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00122/0.1677, allocations: 2.444 MB / 317.9 MB, free: 2.469 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00144/0.1692, allocations: 1.596 MB / 319.5 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005106/0.1743, allocations: 5.477 MB / 325 MB, free: 11.81 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.1743, allocations: 0 / 325 MB, free: 11.81 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1743, allocations: 4 kB / 325 MB, free: 11.81 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001915/0.1745, allocations: 0 / 325 MB, free: 11.81 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.008666/0.1832, allocations: 5.924 MB / 330.9 MB, free: 6.273 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.1832, allocations: 12.03 kB / 331 MB, free: 6.262 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003964/0.1872, allocations: 1.315 MB / 332.3 MB, free: 4.996 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003695/0.1909, allocations: 2.219 MB / 334.5 MB, free: 2.91 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002019/0.1911, allocations: 299.8 kB / 334.8 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006618/0.1917, allocations: 415.2 kB / 335.2 MB, free: 2.289 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008523/0.2002, allocations: 5.77 MB / 341 MB, free: 12.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001203/0.2004, allocations: 43.48 kB / 341 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004181/0.2008, allocations: 194.4 kB / 341.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001883/0.2027, allocations: 1.732 MB / 342.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006644/0.2093, allocations: 2.793 MB / 345.7 MB, free: 7.625 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03381/0.2431, allocations: 34.38 MB / 380.1 MB, free: 4.324 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00483/0.2479, allocations: 1.553 MB / 381.6 MB, free: 2.73 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006676/0.2486, allocations: 390.4 kB / 382 MB, free: 2.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004606/0.2532, allocations: 3.461 MB / 385.5 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.2533, allocations: 51.56 kB / 385.5 MB, free: 14.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=155): time 3.777e-06/0.2533, allocations: 0 / 385.5 MB, free: 14.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=165): time 0.01494/0.2682, allocations: 6.729 MB / 392.3 MB, free: 8.004 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.2683, allocations: 204.9 kB / 392.5 MB, free: 7.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002878/0.2711, allocations: 3.517 MB / 396 MB, free: 4.211 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.096e-05/0.2712, allocations: 53.7 kB / 396 MB, free: 4.152 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.2726, allocations: 3.493 MB / 399.5 MB, free: 0.625 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004281/0.273, allocations: 0.6862 MB / 400.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009769/0.274, allocations: 1.243 MB / 401.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003046/0.2743, allocations: 309.1 kB / 401.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001216/0.2755, allocations: 0.838 MB / 402.6 MB, free: 13.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003215/0.2787, allocations: 4.807 MB / 407.4 MB, free: 6.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004527/0.2833, allocations: 6.155 MB / 413.6 MB, free: 14.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.676e-05/0.2833, allocations: 43.94 kB / 413.6 MB, free: 14.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.005832/0.2892, allocations: 4.751 MB / 418.4 MB, free: 9.684 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.633e-05/0.2892, allocations: 68 kB / 418.4 MB, free: 9.617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/0.2893, allocations: 148.2 kB / 418.6 MB, free: 9.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00163/0.291, allocations: 0.6066 MB / 419.2 MB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002897/0.2939, allocations: 1.532 MB / 420.7 MB, free: 7.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002861/0.2967, allocations: 2.648 MB / 423.4 MB, free: 4.578 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002545/0.2993, allocations: 303.6 kB / 423.6 MB, free: 4.281 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000366/0.2996, allocations: 348 kB / 424 MB, free: 3.941 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 656 * 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 (808): * Single equations (assignments): 802 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001284/0.3009, allocations: 0.6455 MB / 424.6 MB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004165/0.3013, allocations: 243.7 kB / 424.9 MB, free: 3.047 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001969/0.3033, allocations: 1.274 MB / 426.1 MB, free: 1.742 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.3033, allocations: 20 kB / 426.2 MB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.3033, allocations: 7.938 kB / 426.2 MB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.3033, allocations: 11.97 kB / 426.2 MB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006219/0.3096, allocations: 3.898 MB / 430.1 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.163e-06/0.3096, allocations: 4 kB / 430.1 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009814/0.3105, allocations: 438 kB / 430.5 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001274/0.3118, allocations: 427.7 kB / 430.9 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-05/0.3119, allocations: 24 kB / 431 MB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002499/0.3144, allocations: 2.117 MB / 433.1 MB, free: 10.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3144, allocations: 4 kB / 433.1 MB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002555/0.317, allocations: 2.069 MB / 435.1 MB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004109/0.3174, allocations: 317.6 kB / 435.5 MB, free: 8.238 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002445/0.3176, allocations: 24 kB / 435.5 MB, free: 8.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006343/0.3182, allocations: 44.05 kB / 435.5 MB, free: 8.172 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001965/0.3184, allocations: 96.81 kB / 435.6 MB, free: 8.078 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.519e-05/0.3185, allocations: 47.91 kB / 435.7 MB, free: 8.031 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001091/0.3196, allocations: 1.322 MB / 437 MB, free: 6.691 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3196, allocations: 4 kB / 437 MB, free: 6.688 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003068/0.3227, allocations: 1.168 MB / 438.2 MB, free: 5.52 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (132): * Single equations (assignments): 126 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,8,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000331/0.323, allocations: 168 kB / 438.3 MB, free: 5.344 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003241/0.3262, allocations: 2.826 MB / 441.1 MB, free: 2.516 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001471/0.3264, allocations: 100.2 kB / 441.2 MB, free: 2.41 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.3276, allocations: 0.8001 MB / 442 MB, free: 1.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001935/0.3295, allocations: 0.6653 MB / 442.7 MB, free: 0.9297 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1071/0.4366, allocations: 8.411 MB / 451.1 MB, free: 124.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001375/0.438, allocations: 1.401 MB / 452.5 MB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00143/0.4394, allocations: 0.5329 MB / 453.1 MB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009128/0.4404, allocations: 0.5772 MB / 453.6 MB, free: 124 MB / 394.7 MB Notification: Performance of SimCode: time 1.433e-06/0.4404, allocations: 0 / 453.6 MB, free: 124 MB / 394.7 MB Notification: Performance of Templates: time 0.05227/0.4926, allocations: 37.62 MB / 491.2 MB, free: 99.64 MB / 394.7 MB " [Timeout remaining time 660] 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 -s gbode -gbm=radauIIA3 -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: 3.8178109149448574]