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.001232/0.001232, 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.0008835/0.0008835, allocations: 168.7 kB / 24.91 MB, free: 9.195 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.9823/0.9823, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.593e-06/1.593e-06, allocations: 3.938 kB / 273.5 MB, free: 1.312 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.182e-05/2.341e-05, allocations: 6.312 kB / 273.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.009702/0.009726, allocations: 12.48 MB / 285.9 MB, free: 4.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1407/0.1505, allocations: 4.757 MB / 290.7 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002472/0.1529, allocations: 97.53 kB / 290.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006046/0.159, allocations: 4.361 MB / 295.2 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005462/0.1644, allocations: 2.193 MB / 297.3 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.1664, allocations: 0.9269 MB / 298.3 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006713/0.1731, allocations: 5.173 MB / 303.4 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004896/0.178, allocations: 4.397 MB / 307.8 MB, free: 9.941 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005301/0.1833, allocations: 3.569 MB / 311.4 MB, free: 8.008 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003171/0.1864, allocations: 2.528 MB / 313.9 MB, free: 6.324 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009806/0.1874, allocations: 440 kB / 314.4 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002016/0.1894, allocations: 1.253 MB / 315.6 MB, free: 4.699 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001486/0.1909, allocations: 2.444 MB / 318.1 MB, free: 2.332 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002154/0.1931, allocations: 1.594 MB / 319.7 MB, free: 0.8125 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005897/0.199, allocations: 5.48 MB / 325.1 MB, free: 11.68 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.199, allocations: 0 / 325.1 MB, free: 11.68 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.199, allocations: 7.938 kB / 325.1 MB, free: 11.67 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001912/0.1992, allocations: 0 / 325.1 MB, free: 11.67 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.007994/0.2072, allocations: 5.916 MB / 331.1 MB, free: 6.141 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.2072, allocations: 16.03 kB / 331.1 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003557/0.2108, allocations: 1.311 MB / 332.4 MB, free: 4.863 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003142/0.2139, allocations: 2.215 MB / 334.6 MB, free: 2.781 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.2141, allocations: 296 kB / 334.9 MB, free: 2.527 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005594/0.2146, allocations: 418.2 kB / 335.3 MB, free: 2.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007565/0.2222, allocations: 5.775 MB / 341.1 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000108/0.2223, allocations: 49.45 kB / 341.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003672/0.2227, allocations: 187.2 kB / 341.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001585/0.2242, allocations: 1.738 MB / 343 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006018/0.2303, allocations: 2.792 MB / 345.8 MB, free: 7.504 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03298/0.2632, allocations: 34.37 MB / 380.2 MB, free: 4.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003792/0.267, allocations: 1.557 MB / 381.8 MB, free: 2.621 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005667/0.2676, allocations: 390.3 kB / 382.2 MB, free: 2.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004985/0.2726, allocations: 3.469 MB / 385.6 MB, free: 14.74 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.2726, allocations: 47.56 kB / 385.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=155): time 4.399e-06/0.2726, allocations: 0 / 385.7 MB, free: 14.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=165): time 0.01641/0.289, allocations: 6.694 MB / 392.4 MB, free: 7.926 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.925e-05/0.2891, allocations: 196.9 kB / 392.6 MB, free: 7.691 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003375/0.2925, allocations: 3.524 MB / 396.1 MB, free: 4.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.2926, allocations: 45.7 kB / 396.1 MB, free: 4.082 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001568/0.2942, allocations: 3.497 MB / 399.6 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005344/0.2947, allocations: 0.6825 MB / 400.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001069/0.2958, allocations: 1.251 MB / 401.6 MB, free: 14.6 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.762e-05/0.2959, allocations: 308.8 kB / 401.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.2971, allocations: 0.8341 MB / 402.7 MB, free: 13.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003142/0.3003, allocations: 4.803 MB / 407.5 MB, free: 6.609 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005057/0.3053, allocations: 6.158 MB / 413.7 MB, free: 14.43 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.769e-05/0.3054, allocations: 44 kB / 413.7 MB, free: 14.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=850) (initialization): time 0.006391/0.3118, allocations: 4.754 MB / 418.4 MB, free: 9.609 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.504e-05/0.3119, allocations: 67.98 kB / 418.5 MB, free: 9.543 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.687e-05/0.312, allocations: 144 kB / 418.7 MB, free: 9.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001481/0.3135, allocations: 0.6077 MB / 419.3 MB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002448/0.3159, allocations: 1.462 MB / 420.7 MB, free: 7.316 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002837/0.3187, allocations: 2.634 MB / 423.4 MB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002809/0.3215, allocations: 299.6 kB / 423.7 MB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003351/0.3219, allocations: 348 kB / 424 MB, free: 3.953 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.001398/0.3233, allocations: 0.6571 MB / 424.6 MB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004184/0.3237, allocations: 227.8 kB / 424.9 MB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/0.3257, allocations: 1.293 MB / 426.2 MB, free: 1.738 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.819e-05/0.3258, allocations: 23.98 kB / 426.2 MB, free: 1.715 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.3258, allocations: 4 kB / 426.2 MB, free: 1.711 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.3258, allocations: 7.922 kB / 426.2 MB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006329/0.3321, allocations: 3.902 MB / 430.1 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/0.3321, allocations: 0 / 430.1 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000633/0.3327, allocations: 231.7 kB / 430.3 MB, free: 13.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001434/0.3342, allocations: 0.5936 MB / 430.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.284e-05/0.3343, allocations: 31.98 kB / 431 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/0.3369, allocations: 2.094 MB / 433 MB, free: 10.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3369, allocations: 3.938 kB / 433.1 MB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002769/0.3396, allocations: 2.061 MB / 435.1 MB, free: 8.598 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005776/0.3402, allocations: 321.4 kB / 435.4 MB, free: 8.281 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002516/0.3405, allocations: 31.94 kB / 435.5 MB, free: 8.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006614/0.3411, allocations: 43.92 kB / 435.5 MB, free: 8.207 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/0.3413, allocations: 92.94 kB / 435.6 MB, free: 8.117 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-05/0.3414, allocations: 39.97 kB / 435.6 MB, free: 8.078 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001274/0.3427, allocations: 1.322 MB / 437 MB, free: 6.738 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3427, allocations: 0 / 437 MB, free: 6.738 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003623/0.3463, allocations: 1.168 MB / 438.1 MB, free: 5.57 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.0003995/0.3467, allocations: 168 kB / 438.3 MB, free: 5.395 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00361/0.3503, allocations: 2.835 MB / 441.1 MB, free: 2.559 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001488/0.3505, allocations: 100.2 kB / 441.2 MB, free: 2.453 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001242/0.3517, allocations: 0.8079 MB / 442 MB, free: 1.625 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/0.3537, allocations: 0.6671 MB / 442.7 MB, free: 0.9648 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1286/0.4823, allocations: 8.402 MB / 451.1 MB, free: 124 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001949/0.4843, allocations: 1.401 MB / 452.5 MB, free: 123.8 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001684/0.4859, allocations: 0.5294 MB / 453 MB, free: 123.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001003/0.4869, allocations: 0.5781 MB / 453.6 MB, free: 123.7 MB / 394.7 MB Notification: Performance of SimCode: time 2.304e-06/0.4869, allocations: 0 / 453.6 MB, free: 123.7 MB / 394.7 MB Notification: Performance of Templates: time 0.05257/0.5395, allocations: 37.57 MB / 491.2 MB, free: 99.4 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.123106311075389]