Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009529/0.0009529, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001176/0.001176, allocations: 168.9 kB / 24.91 MB, free: 8.762 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9319/0.9319, allocations: 177 MB / 205.2 MB, free: 5.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 273.4 MB, free: 1.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.244e-05/2.422e-05, allocations: 2.312 kB / 273.4 MB, free: 1.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01466/0.01468, allocations: 12.5 MB / 285.9 MB, free: 4.648 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1251/0.1397, allocations: 4.744 MB / 290.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001879/0.1416, allocations: 102.2 kB / 290.7 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004594/0.1462, allocations: 4.364 MB / 295.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003688/0.1499, allocations: 2.199 MB / 297.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.1511, allocations: 0.916 MB / 298.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004458/0.1555, allocations: 5.17 MB / 303.4 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003383/0.1589, allocations: 4.397 MB / 307.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00364/0.1625, allocations: 3.577 MB / 311.3 MB, free: 8.117 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002461/0.165, allocations: 2.528 MB / 313.9 MB, free: 6.379 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007094/0.1657, allocations: 444 kB / 314.3 MB, free: 5.945 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.1672, allocations: 1.243 MB / 315.6 MB, free: 4.758 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001119/0.1684, allocations: 2.445 MB / 318 MB, free: 2.391 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001438/0.1698, allocations: 1.59 MB / 319.6 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004553/0.1744, allocations: 5.482 MB / 325.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1744, allocations: 8 kB / 325.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1744, allocations: 0 / 325.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001964/0.1746, allocations: 0 / 325.1 MB, free: 11.73 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.008846/0.1834, allocations: 5.927 MB / 331 MB, free: 6.191 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.1834, allocations: 11.98 kB / 331 MB, free: 6.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004376/0.1878, allocations: 1.315 MB / 332.3 MB, free: 4.914 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002922/0.1907, allocations: 2.221 MB / 334.6 MB, free: 2.828 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003024/0.191, allocations: 300.8 kB / 334.8 MB, free: 2.57 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005675/0.1916, allocations: 410.7 kB / 335.2 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007146/0.1988, allocations: 5.774 MB / 341 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/0.1989, allocations: 48.05 kB / 341.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004023/0.1993, allocations: 187 kB / 341.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00201/0.2013, allocations: 1.735 MB / 343 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005539/0.2068, allocations: 2.802 MB / 345.8 MB, free: 7.543 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02985/0.2367, allocations: 34.37 MB / 380.2 MB, free: 4.238 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004505/0.2412, allocations: 1.557 MB / 381.7 MB, free: 2.637 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000447/0.2416, allocations: 390.3 kB / 382.1 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004033/0.2456, allocations: 3.469 MB / 385.6 MB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.2457, allocations: 55.44 kB / 385.6 MB, free: 14.69 MB / 346.7 MB Notification: Performance of pre-optimization done (n=155): time 3.606e-06/0.2457, allocations: 0 / 385.6 MB, free: 14.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=165): time 0.01497/0.2606, allocations: 6.691 MB / 392.3 MB, free: 7.938 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.029e-05/0.2607, allocations: 200.9 kB / 392.5 MB, free: 7.699 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002697/0.2634, allocations: 3.517 MB / 396 MB, free: 4.148 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.661e-05/0.2635, allocations: 53.69 kB / 396.1 MB, free: 4.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001341/0.2648, allocations: 3.485 MB / 399.6 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00051/0.2653, allocations: 0.6902 MB / 400.2 MB, free: 15.87 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009428/0.2663, allocations: 1.247 MB / 401.5 MB, free: 14.61 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.11e-05/0.2663, allocations: 312.9 kB / 401.8 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.2675, allocations: 0.8341 MB / 402.6 MB, free: 13.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00281/0.2703, allocations: 4.807 MB / 407.4 MB, free: 6.617 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003884/0.2742, allocations: 6.16 MB / 413.6 MB, free: 14.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.6e-05/0.2743, allocations: 40 kB / 413.6 MB, free: 14.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.005046/0.2793, allocations: 4.753 MB / 418.4 MB, free: 9.617 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.304e-05/0.2794, allocations: 68 kB / 418.5 MB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.294e-05/0.2794, allocations: 148.2 kB / 418.6 MB, free: 9.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001343/0.2808, allocations: 0.5999 MB / 419.2 MB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002222/0.283, allocations: 1.466 MB / 420.7 MB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/0.2856, allocations: 2.63 MB / 423.3 MB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.2875, allocations: 299.6 kB / 423.6 MB, free: 4.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002797/0.2877, allocations: 356 kB / 423.9 MB, free: 3.957 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.001037/0.2888, allocations: 0.6494 MB / 424.6 MB, free: 3.293 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002999/0.2891, allocations: 231.8 kB / 424.8 MB, free: 3.066 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001971/0.291, allocations: 1.286 MB / 426.1 MB, free: 1.754 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.2911, allocations: 20 kB / 426.1 MB, free: 1.734 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.253e-06/0.2911, allocations: 4 kB / 426.1 MB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.2911, allocations: 15.91 kB / 426.1 MB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005181/0.2963, allocations: 3.898 MB / 430 MB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.2963, allocations: 4 kB / 430 MB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005692/0.2968, allocations: 223.7 kB / 430.3 MB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00134/0.2982, allocations: 0.6013 MB / 430.9 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.558e-05/0.2982, allocations: 28 kB / 430.9 MB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/0.3007, allocations: 2.082 MB / 433 MB, free: 10.72 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.3007, allocations: 4 kB / 433 MB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.3032, allocations: 2.069 MB / 435 MB, free: 8.609 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003307/0.3035, allocations: 321.5 kB / 435.4 MB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002321/0.3038, allocations: 31.94 kB / 435.4 MB, free: 8.262 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006423/0.3044, allocations: 39.98 kB / 435.4 MB, free: 8.223 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.3046, allocations: 108.7 kB / 435.5 MB, free: 8.117 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.487e-05/0.3046, allocations: 28 kB / 435.6 MB, free: 8.09 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001026/0.3056, allocations: 1.326 MB / 436.9 MB, free: 6.746 MB / 394.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3056, allocations: 0 / 436.9 MB, free: 6.746 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003011/0.3087, allocations: 1.172 MB / 438.1 MB, free: 5.574 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.0003269/0.309, allocations: 168.8 kB / 438.2 MB, free: 5.398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003149/0.3121, allocations: 2.823 MB / 441 MB, free: 2.582 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001417/0.3123, allocations: 100.2 kB / 441.1 MB, free: 2.477 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001148/0.3134, allocations: 0.8034 MB / 441.9 MB, free: 1.648 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001671/0.3151, allocations: 0.6754 MB / 442.6 MB, free: 0.9766 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.11/0.4251, allocations: 8.405 MB / 451 MB, free: 124.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001781/0.4269, allocations: 1.406 MB / 452.4 MB, free: 124.4 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001944/0.4288, allocations: 0.5262 MB / 453 MB, free: 124.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/0.43, allocations: 0.5759 MB / 453.5 MB, free: 124.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.203e-06/0.43, allocations: 0 / 453.5 MB, free: 124.3 MB / 394.7 MB Notification: Performance of Templates: time 0.05512/0.4851, allocations: 37.56 MB / 491.1 MB, free: 99.9 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.901212690398097]